public inbox for libc-alpha@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Fix the ld flags not be applied to tst-execstack-mod.so
@ 2018-07-20 10:15 Zong Li
  2018-07-25 18:54 ` Vineet Gupta
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Zong Li @ 2018-07-20 10:15 UTC (permalink / raw)
  To: joseph, libc-alpha; +Cc: zongbox, Zong Li

The Makefile variable name loses the file extension (.so). It causes
the linker option not applies to the corresponding file that it's
file name matchs with the variable without LDFLAGS- prefix.

	* elf/Makefile (LDFLAGS-tst-execstack-mod): Change variable name by
	adding the file extension (.so).
---
 ChangeLog    | 5 +++++
 elf/Makefile | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index b45c83b..f87b32c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-07-20  Zong Li  <zong@andestech.com>
+
+	* elf/Makefile (LDFLAGS-tst-execstack-mod): Change variable name by
+	adding the file extension (.so).
+
 2018-07-20  Samuel Thibault  <samuel.thibault@ens-lyon.org>
 
 	* sysdeps/mach/hurd/i386/tls.h (_hurd_tls_init): Set multiple_threads
diff --git a/elf/Makefile b/elf/Makefile
index cd07713..ecc8ea2 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

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [PATCH] Fix the ld flags not be applied to tst-execstack-mod.so
@ 2018-07-12  8:19 Zong Li
  0 siblings, 0 replies; 14+ messages in thread
From: Zong Li @ 2018-07-12  8:19 UTC (permalink / raw)
  To: joseph, libc-alpha; +Cc: zongbox, Zong Li

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

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2018-10-25 11:12 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-20 10:15 [PATCH] Fix the ld flags not be applied to tst-execstack-mod.so Zong Li
2018-07-25 18:54 ` Vineet Gupta
2018-07-25 20:22   ` Joseph Myers
2018-07-25 20:54     ` Vineet Gupta
2018-07-25 20:56       ` Joseph Myers
2018-07-26  1:19         ` Zong Li
2018-07-26 15:01           ` Joseph Myers
2018-10-15 12:43             ` Zong Li
2018-10-15 13:53               ` Joseph Myers
2018-10-15 17:01 ` Zong Li
2018-10-24 11:01 ` Florian Weimer
2018-10-24 15:59   ` Zong Li
2018-10-25 12:22     ` Florian Weimer
  -- strict thread matches above, loose matches on Subject: below --
2018-07-12  8:19 Zong Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).