Hi Thomas,
On Mon, Jun 09, 2025 at 09:39:16AM +0200, Thomas Weißschuh wrote:
nolibc only supports symbol-based stackprotectors, based on the global variable __stack_chk_guard. Support for this differs between architectures and toolchains. Some use the symbol mode by default, some require a flag to enable it and some don't support it at all.
Before the nolibc test Makefile required the availability of "-mstack-protector-guard=global" to enable stackprotectors. While this flag makes sure that the correct mode is available it doesn't work where the correct mode is the only supported one and therefore the flag is not implemented.
Switch to a more dynamic probing mechanism. This correctly enables stack protectors for mips, loongarch and m68k.
Signed-off-by: Thomas Weißschuh linux@weissschuh.net
Acked-by: Willy Tarreau w@1wt.eu
Thanks, Willy