summaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2013-01-21 08:21:45 +0000
committerMike Frysinger <vapier@gentoo.org>2013-01-21 08:21:45 +0000
commit9e3072ad67f8b6d092e9e4dbfc6f8c9141aabe0c (patch)
tree3033587859edccd8d2ccf786616fd76400a1976b /ld
parent8e1b1acbf6063ec6e7dcfab00d5fb5cc396beed5 (diff)
downloadbinutils-redhat-9e3072ad67f8b6d092e9e4dbfc6f8c9141aabe0c.tar.gz
ld: enable new dtags by default for linux/gnu targets
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>
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/NEWS2
-rw-r--r--ld/emultempl/elf32.em10
3 files changed, 18 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index bf3d2109c0..d611f53ee8 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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 1e07605e00..6b30b2f873 100644
--- 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.
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 53d4e24d47..60611f9a48 100644
--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -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