Linux/x86: Configure gas with --enable-x86-used-note by default
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jul 2020 15:29:25 +0000 (08:29 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 9 Jul 2020 15:29:25 +0000 (08:29 -0700)
* configure.ac: Configure with --enable-x86-used-note by default
for Linux/x86.
* configure: Regenerated.

gas/ChangeLog
gas/NEWS
gas/configure
gas/configure.ac

index 0b73294e4f579aae8ae30d1b434094dc64e3586d..5a713bc1b5228842d7bb18c4f64c29600a43ffeb 100644 (file)
@@ -1,3 +1,10 @@
+2020-07-09  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * NEWS: Mention --enable-x86-used-note.
+       * configure.ac: Configure with --enable-x86-used-note by default
+       for Linux/x86.
+       * configure: Regenerated.
+
 2020-07-09  Alan Modra  <amodra@gmail.com>
 
        * config/obj-coff.h: Remove TE_PE support.
index 737bbffeaddec3c9be72bde702e7821ae84652f9..a7b21c55a3cbdcd52e35ce3a68af9ea40552e149 100644 (file)
--- a/gas/NEWS
+++ b/gas/NEWS
@@ -1,5 +1,7 @@
 -*- text -*-
 
+* Configure with --enable-x86-used-note by default for Linux/x86.
+
 Changes in 2.35:
 
 * X86 NaCl target support is removed.
index 9f0c9c2b13fecf780e3b26beffe44e26fe79b8c9..d6ad62559ff22a7086bcf92bbfcb0ef946c93569 100755 (executable)
@@ -12636,6 +12636,13 @@ $as_echo "#define STRICTCOFF 1" >>confdefs.h
 
        ;;
 
+      i386-*-linux-* | x86_64-*-linux-*)
+       if test ${this_target} = $target \
+          && test ${ac_default_generate_x86_used_note} = unset; then
+         ac_default_generate_x86_used_note=1
+       fi
+       ;;
+
       i386-*-solaris2 \
       | x86_64-*-solaris2 \
       | i386-*-solaris2.[0-9] \
index b65108fecb21e81768c94659f04a6fb46bfb6bc5..8d968defb62f6503ed935e041da2d3a3ea638b92 100644 (file)
@@ -242,6 +242,13 @@ for this_target in $target $canon_targets ; do
        AC_DEFINE(STRICTCOFF, 1, [Using strict COFF?])
        ;;
 
+      i386-*-linux-* | x86_64-*-linux-*)
+       if test ${this_target} = $target \
+          && test ${ac_default_generate_x86_used_note} = unset; then
+         ac_default_generate_x86_used_note=1
+       fi
+       ;;
+
       i386-*-solaris2 \
       | x86_64-*-solaris2 \
       | i386-*-solaris2.[[0-9]] \