This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Fix the ld flags not be applied to tst-execstack-mod.so
- From: Zong Li <zong at andestech dot com>
- To: <joseph at codesourcery dot com>, <libc-alpha at sourceware dot org>
- Cc: <zongbox at gmail dot com>, Zong Li <zong at andestech dot com>
- Date: Thu, 12 Jul 2018 16:19:04 +0800
- Subject: [PATCH] Fix the ld flags not be applied to tst-execstack-mod.so
Fix the ld flags for applying the 'execstack' option correctly.
---
elf/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elf/Makefile b/elf/Makefile
index 41cc368..15483a9 100644
--- a/elf/Makefile
+++ b/elf/Makefile
@@ -1004,7 +1004,7 @@ $(objpfx)tst-execstack: $(libdl)
$(objpfx)tst-execstack.out: $(objpfx)tst-execstack-mod.so
CPPFLAGS-tst-execstack.c += -DUSE_PTHREADS=0
LDFLAGS-tst-execstack = -Wl,-z,noexecstack
-LDFLAGS-tst-execstack-mod = -Wl,-z,execstack
+LDFLAGS-tst-execstack-mod.so = -Wl,-z,execstack
$(objpfx)tst-execstack-needed: $(objpfx)tst-execstack-mod.so
LDFLAGS-tst-execstack-needed = -Wl,-z,noexecstack
--
2.7.4