• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

修訂da0140fb5c8a9bccd0c66166c8e21cb3e37e2f1d (tree)
時間2017-03-04 03:03:20
作者Mike Frysinger <vapier@gent...>
CommiterMike Frysinger

Log Message

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.

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.

Change Summary

差異

--- a/ld/emultempl/elf32.em
+++ b/ld/emultempl/elf32.em
@@ -103,6 +103,16 @@ gld${EMULATION_NAME}_before_parse (void)
103103 input_flags.dynamic = ${DYNAMIC_LINK-TRUE};
104104 config.has_shared = `if test -n "$GENERATE_SHLIB_SCRIPT" ; then echo TRUE ; else echo FALSE ; fi`;
105105 config.separate_code = `if test "x${SEPARATE_CODE}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
106+EOF
107+
108+case ${target} in
109+ *-*-linux-* | *-*-k*bsd*-* | *-*-gnu* | *-*-nacl*)
110+ fragment <<EOF
111+ link_info.new_dtags = TRUE;
112+EOF
113+ ;;
114+esac
115+fragment <<EOF
106116 `if test -n "$CALL_NOP_BYTE" ; then echo link_info.call_nop_byte = $CALL_NOP_BYTE; fi`;
107117 link_info.check_relocs_after_open_input = `if test "x${CHECK_RELOCS_AFTER_OPEN_INPUT}" = xyes ; then echo TRUE ; else echo FALSE ; fi`;
108118 link_info.relro = DEFAULT_LD_Z_RELRO;