]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld: enable new dtags by default for linux/gnu targets
authorMike Frysinger <vapier@gentoo.org>
Fri, 7 Jan 2005 05:15:53 +0000 (00:15 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 3 Mar 2017 18:03:20 +0000 (11:03 -0700)
The "new" dtags options have been around for 14+ years now, so for Linux
and GNU targets, enable them by default.

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-22  Roland McGrath  <mcgrathr@google.com>

* emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
new_dtags to TRUE for *-*-nacl* targets.

ld/emultempl/elf32.em

index 84adaef6dfe181b8e3b09e306702b916e1bcfb21..92b7e4aabd0b214c563191be6450cf21dc730e90 100644 (file)
@@ -103,6 +103,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* | *-*-nacl*)
+    fragment <<EOF
+  link_info.new_dtags = TRUE;
+EOF
+    ;;
+esac
+fragment <<EOF
   `if test -n "$CALL_NOP_BYTE" ; then echo link_info.call_nop_byte = $CALL_NOP_BYTE; fi`;
   link_info.check_relocs_after_open_input = `if test "x${CHECK_RELOCS_AFTER_OPEN_INPUT}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
   link_info.relro = DEFAULT_LD_Z_RELRO;