diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2019-10-13 05:25:28 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-02-08 23:55:40 +0200 |
commit | c804420eb1fdd9f04b9ce2620b2bd73bf1d773c8 (patch) | |
tree | 6d12dedc59cde5def2e7c4e10311f7d695f303b5 | |
parent | Gentoo: add --with-extra-soversion-suffix= option (diff) | |
download | binutils-gdb-c804420eb1fdd9f04b9ce2620b2bd73bf1d773c8.tar.gz binutils-gdb-c804420eb1fdd9f04b9ce2620b2bd73bf1d773c8.tar.bz2 binutils-gdb-c804420eb1fdd9f04b9ce2620b2bd73bf1d773c8.zip |
Gentoo: ld: enable new dtags by default for linux/gnu targets
Original author: Mike Frysinger <vapier@gentoo.org>
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.
-rw-r--r-- | ld/emultempl/elf.em | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em index 5e59f3853ee..31e0b8c7e0c 100644 --- a/ld/emultempl/elf.em +++ b/ld/emultempl/elf.em @@ -81,6 +81,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 link_info.check_relocs_after_open_input = TRUE; EOF if test -n "$COMMONPAGESIZE"; then |