Re: [PATCH v2] tools/nolibc: add support for constructors and destructors

From: Willy Tarreau
Date: Sat Oct 07 2023 - 06:37:14 EST


On Sat, Oct 07, 2023 at 12:01:39PM +0200, Thomas Weißschuh wrote:
> With the startup code moved to C, implementing support for
> constructors and deconstructors is fairly easy to implement.
>
> Examples for code size impact:
>
> text data bss dec hex filename
> 21837 104 88 22029 560d nolibc-test.before
> 22135 120 88 22343 5747 nolibc-test.after
> 21970 104 88 22162 5692 nolibc-test.after-only-crt.h-changes
>
> The sections are defined by [0].
>
> [0] https://refspecs.linuxfoundation.org/elf/gabi4+/ch5.dynamic.html
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>

Acked-by: Willy Tarreau <w@xxxxxx>

Thanks!
Willy