aboutsummaryrefslogtreecommitdiff
path: root/nptl
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-11-20 09:22:25 +0100
committerFlorian Weimer <fweimer@redhat.com>2023-11-20 09:22:25 +0100
commite21aa9b9cc6083d3b1da72c81e7a4e81662e32ba (patch)
treee534610545acd073fe3192a2e84d1cd3ca7f6ffe /nptl
parent8c8eff33e4e492d95f87dd49cfdc2d4de25693eb (diff)
downloadglibc-e21aa9b9cc6083d3b1da72c81e7a4e81662e32ba.zip
glibc-e21aa9b9cc6083d3b1da72c81e7a4e81662e32ba.tar.gz
glibc-e21aa9b9cc6083d3b1da72c81e7a4e81662e32ba.tar.bz2
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 <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl')
-rw-r--r--nptl/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 015295e..067b01e 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"