summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2021-07-06 07:50:56 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2021-07-06 08:02:43 +0100
commit2fb3fe47ca8e417f56687d05fc91a112ae08b813 (patch)
tree444e412c0e9e4f9225e983716f50199da205c804
parentNeed new 9999 patch since 2.36 (diff)
downloadbinutils-patches-2fb3fe47ca8e417f56687d05fc91a112ae08b813.tar.gz
binutils-patches-2fb3fe47ca8e417f56687d05fc91a112ae08b813.tar.bz2
binutils-patches-2fb3fe47ca8e417f56687d05fc91a112ae08b813.zip
9999: refresh 0007-...-ld-enable-new-dtags-...patch
Closes: https://bugs.gentoo.org/800254 Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
-rw-r--r--9999/0007-Gentoo-ld-enable-new-dtags-by-default-for-linux-gnu-.patch10
1 files changed, 5 insertions, 5 deletions
diff --git a/9999/0007-Gentoo-ld-enable-new-dtags-by-default-for-linux-gnu-.patch b/9999/0007-Gentoo-ld-enable-new-dtags-by-default-for-linux-gnu-.patch
index b4c5a74..f16e13d 100644
--- a/9999/0007-Gentoo-ld-enable-new-dtags-by-default-for-linux-gnu-.patch
+++ b/9999/0007-Gentoo-ld-enable-new-dtags-by-default-for-linux-gnu-.patch
@@ -27,20 +27,20 @@ index 356f34538b..579e52253e 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`;
+ 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;
++ link_info.new_dtags = true;
+EOF
+ ;;
+esac
+fragment <<EOF
- link_info.check_relocs_after_open_input = TRUE;
+ link_info.check_relocs_after_open_input = true;
EOF
if test -n "$COMMONPAGESIZE"; then
--