public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] ld: Enable --warn-textrel by default for Linux/x86 targets
@ 2020-05-28 11:26 H.J. Lu
  0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2020-05-28 11:26 UTC (permalink / raw)
  To: binutils

	* configure.tgt (ac_default_ld_textrel_check): Set to if unset
	for Linux/x86 targets.
---
 ld/configure.tgt | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ld/configure.tgt b/ld/configure.tgt
index 0b6ee8bc87..c166da885b 100644
--- a/ld/configure.tgt
+++ b/ld/configure.tgt
@@ -1116,11 +1116,14 @@ frv-*-* | hppa*-*-* | ia64-*-* | mips*-*-*)
   ;;
 esac
 
-# Enable -z separate-code by default for Linux/x86.
+# Enable -z separate-code and --warn-textrel by default for Linux/x86.
 case "${target}" in
 i[3-7]86-*-linux-* | x86_64-*-linux-*)
   if test ${ac_default_ld_z_separate_code} = unset; then
     ac_default_ld_z_separate_code=1
   fi
+  if test ${ac_default_ld_textrel_check} = unset; then
+    ac_default_ld_textrel_check=yes
+  fi
   ;;
 esac
-- 
2.26.2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-05-28 11:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 11:26 [PATCH] ld: Enable --warn-textrel by default for Linux/x86 targets H.J. Lu

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).