]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: Enable --warn-textrel by default for Linux/x86 targets
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 28 May 2020 11:27:08 +0000 (04:27 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 28 May 2020 11:27:30 +0000 (04:27 -0700)
* configure.tgt (ac_default_ld_textrel_check): Set to if unset
for Linux/x86 targets.

ld/ChangeLog
ld/configure.tgt

index aac749cadaad116bab6a504852728fb4b2c4f621..01a281c968f6a75ccf0c92786faacafd32082722 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-28  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure.tgt (ac_default_ld_textrel_check): Set to if unset
+       for Linux/x86 targets.
+
 2020-05-28  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR ld/20824
index 0b6ee8bc874df47e7a9a7f994166a01fd6b374f6..c166da885b6152409cb0f7a5873b589518606783 100644 (file)
@@ -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