]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: enable new dtags by default for linux/gnu targets
authorMike Frysinger <vapier@gentoo.org>
Mon, 21 Jan 2013 08:21:46 +0000 (08:21 +0000)
committerMike Frysinger <vapier@gentoo.org>
Mon, 21 Jan 2013 08:21:46 +0000 (08:21 +0000)
The "new" dtags options have been around for 14+ years now, so for Linux
and GNU targets, enable them by default.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
ld/ChangeLog
ld/NEWS
ld/emultempl/elf32.em

index bf3d2109c0092985c3977b868cfa8d0fb7e8985e..d611f53ee842e509eac82558eb90c68d97ca36dd 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-21  Mike Frysinger  <vapier@gentoo.org>
+
+       * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
+       link_info.new_dtags to TRUE for linux/gnu targets.
+       * NEWS: Mention new dtags default.
+
 2013-01-19  H.J. Lu  <hongjiu.lu@intel.com>
 
        * Makefile.am (HOSTING_SCRT0): New.
diff --git a/ld/NEWS b/ld/NEWS
index 1e07605e00894ec512a6685efaf4fa3e0c30e9dd..6b30b2f8737c65695e39ec1d558b76c25a7498cf 100644 (file)
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -4,6 +4,8 @@
 
 * --enable-new-dtags no longer generates old dtags in addition to new dtags.
 
+* For Linux/GNU targets, new dtags is now the default.
+
 Changes in 2.23:
 
 * Enable compressed debug section feature for x86/x86_64 pe-coff.
index 53d4e24d47051a70c57914c2951333ed8711dc69..60611f9a487ab0ec1db782e95bef58c1ecceac0b 100644 (file)
@@ -105,6 +105,16 @@ gld${EMULATION_NAME}_before_parse (void)
   input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
   config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
   config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
+EOF
+
+case ${target} in
+  *-*-linux-* | *-*-k*bsd*-* | *-*-gnu*)
+    fragment <<EOF
+  link_info.new_dtags = TRUE;
+EOF
+    ;;
+esac
+fragment <<EOF
 }
 
 EOF