This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH v2 11/12] 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>, <palmer at dabbelt dot com>, <darius at bluespec dot com>, <andrew at sifive dot com>, <dj at redhat dot com>, <rth at twiddle dot net>, <libc-alpha at sourceware dot org>
- Cc: <rth7680 at gmail dot com>, <zongbox at gmail dot com>, Zong Li <zong at andestech dot com>
- Date: Tue, 17 Jul 2018 13:07:57 +0800
- Subject: [PATCH v2 11/12] Fix the ld flags not be applied to tst-execstack-mod.so
- References: <cover.1531801545.git.zong@andestech.com>
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