diff options
author | Mike Frysinger <vapier@gentoo.org> | 2013-01-21 08:21:46 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2013-01-21 08:21:46 +0000 |
commit | 822b8bf46be64f9055e3d4b944323881f102fd8d (patch) | |
tree | e8b00fa47c0eaf9683ba6fd5fc4fd398df163b21 /ld/emultempl/elf32.em | |
parent | e16fc3da2318eba5a25777fa2ce028cb053986fa (diff) | |
download | gdb-822b8bf46be64f9055e3d4b944323881f102fd8d.zip gdb-822b8bf46be64f9055e3d4b944323881f102fd8d.tar.gz gdb-822b8bf46be64f9055e3d4b944323881f102fd8d.tar.bz2 |
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/emultempl/elf32.em')
-rw-r--r-- | ld/emultempl/elf32.em | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 53d4e24..60611f9 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 |