]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
nptl: Link tst-execstack-threads-mod.so with -z execstack
authorFlorian Weimer <fweimer@redhat.com>
Mon, 20 Nov 2023 08:22:25 +0000 (09:22 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 20 Nov 2023 08:22:25 +0000 (09:22 +0100)
This ensures that the test still links with a linker that refuses
to create an executable stack marker automatically.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
nptl/Makefile

index 015295e45c06188d7b7a88b1764e6f716ab68034..067b01ea8ec2b1a504f32044021a4950ec63bd35 100644 (file)
@@ -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"