Re: [PATCH] selftests/nolibc: only use libgcc when really necessary
From: Willy Tarreau
Date: Sat Apr 04 2026 - 09:44:29 EST
On Sat, Apr 04, 2026 at 02:59:03PM +0200, Thomas Weißschuh wrote:
> nolibc should work without libgcc to be compatible with as many
> toolchains as possible. Currently the functionality tested by
> nolibc-test does not contain any dependencies, make sure it stays
> this way by not linking libgcc anymore.
>
> On the ppc target GCC always emits references to '_restgpr_' functions,
> so keep linking libgcc there.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
Yeah, it's a good idea to enforce this, as it's very easy to get trapped
into unwanted dependencies again.
Acked-by: Willy Tarreau <w@xxxxxx>
Willy