From: Florian Weimer Date: Mon, 20 Nov 2023 08:22:25 +0000 (+0100) Subject: nptl: Link tst-execstack-threads-mod.so with -z execstack X-Git-Tag: glibc-2.39~274 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e21aa9b9cc6083d3b1da72c81e7a4e81662e32ba;p=thirdparty%2Fglibc.git nptl: Link tst-execstack-threads-mod.so with -z execstack This ensures that the test still links with a linker that refuses to create an executable stack marker automatically. Reviewed-by: Adhemerval Zanella --- diff --git a/nptl/Makefile b/nptl/Makefile index 015295e45c0..067b01ea8ec 100644 --- a/nptl/Makefile +++ b/nptl/Makefile @@ -671,6 +671,7 @@ tst-exec4-ARGS = $(host-test-program-cmd) $(objpfx)tst-execstack-threads.out: $(objpfx)tst-execstack-threads-mod.so LDFLAGS-tst-execstack-threads = -Wl,-z,noexecstack +LDFLAGS-tst-execstack-threads-mod.so = -Wl,-z,execstack CFLAGS-tst-execstack-threads-mod.c += -Wno-trampolines tst-stackguard1-ARGS = --command "$(host-test-program-cmd) --child"