From 939b95c77bf273b252a49334844c469bd28356a9 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 9 Jul 2020 08:29:25 -0700 Subject: [PATCH] Linux/x86: Configure gas with --enable-x86-used-note by default * configure.ac: Configure with --enable-x86-used-note by default for Linux/x86. * configure: Regenerated. --- gas/ChangeLog | 7 +++++++ gas/NEWS | 2 ++ gas/configure | 7 +++++++ gas/configure.ac | 7 +++++++ 4 files changed, 23 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index 0b73294e4f..5a713bc1b5 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2020-07-09 H.J. Lu + + * 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 * config/obj-coff.h: Remove TE_PE support. diff --git a/gas/NEWS b/gas/NEWS index 737bbffead..a7b21c55a3 100644 --- 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. diff --git a/gas/configure b/gas/configure index 9f0c9c2b13..d6ad62559f 100755 --- a/gas/configure +++ b/gas/configure @@ -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] \ diff --git a/gas/configure.ac b/gas/configure.ac index b65108fecb..8d968defb6 100644 --- a/gas/configure.ac +++ b/gas/configure.ac @@ -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]] \ -- 2.34.1