about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--nptl/Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/nptl/Makefile b/nptl/Makefile
index 015295e45c..067b01ea8e 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"