summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2020-07-25 15:25:51 +0300
committerAndreas K. Hüttel <dilfridge@gentoo.org>2020-07-25 15:25:51 +0300
commita74c34d8ec1f197f9c80861e0d6271ac63403993 (patch)
tree9582a8388b63b5481ca6e898e7d6676877fa88c3
parentTextrel warnings have been enabled upstream, drop patches (2) (diff)
downloadbinutils-patches-a74c34d8ec1f197f9c80861e0d6271ac63403993.tar.gz
binutils-patches-a74c34d8ec1f197f9c80861e0d6271ac63403993.tar.bz2
binutils-patches-a74c34d8ec1f197f9c80861e0d6271ac63403993.zip
Textrel warnings have been enabled upstream, drop patches (3)
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
-rw-r--r--9999/0009-Gentoo-Pass-hash-style-sysv.patch (renamed from 9999/0009-Gentoo-Pass-hash-style-sysv-and-no-warn-shared-textr.patch)11
1 files changed, 5 insertions, 6 deletions
diff --git a/9999/0009-Gentoo-Pass-hash-style-sysv-and-no-warn-shared-textr.patch b/9999/0009-Gentoo-Pass-hash-style-sysv.patch
index 4ff406f..8ebb911 100644
--- a/9999/0009-Gentoo-Pass-hash-style-sysv-and-no-warn-shared-textr.patch
+++ b/9999/0009-Gentoo-Pass-hash-style-sysv.patch
@@ -1,8 +1,7 @@
From 2055e278cb6e984760dbf8627efef2158e215449 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20K=2E=20H=C3=BCttel?= <dilfridge@gentoo.org>
Date: Wed, 18 Oct 2017 00:44:49 +0200
-Subject: [PATCH 9/9] Gentoo: Pass --hash-style=sysv and
- --no-warn-shared-textrel to ld in the testsuite
+Subject: Gentoo: Pass --hash-style=sysv to ld in the testsuite
---
binutils/testsuite/lib/binutils-common.exp | 2 +-
@@ -18,7 +17,7 @@ index b9e3c6d817..bb4ef987b3 100644
# Add -L$srcdir/$subdir so that the linker command can use
# linker scripts in the source directory.
- set cmd "$LD $ld_extra_opt $LDFLAGS -L$srcdir/$subdir \
-+ set cmd "$LD --hash-style=sysv --no-warn-shared-textrel $ld_extra_opt $LDFLAGS -L$srcdir/$subdir \
++ set cmd "$LD --hash-style=sysv $ld_extra_opt $LDFLAGS -L$srcdir/$subdir \
$opts(ld) -o $objfile $objfiles $opts(ld_after_inputfiles)"
# If needed then check for, or add a -Map option.
@@ -31,7 +30,7 @@ index 015eda6eb9..0b945b539d 100644
remote_file host delete $target
- return [run_host_cmd_yesno "$ld" "$HOSTING_EMU -o $target -r $objects"]
-+ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv --no-warn-shared-textrel -o $target -r $objects"]
++ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -o $target -r $objects"]
}
# Check to see if ld is being invoked with a non-endian output format
@@ -46,9 +45,9 @@ index 015eda6eb9..0b945b539d 100644
+ # - ld-new -> we're working with the new linker
+ # - otherwise -> we're likely working with the system compiler
+ if {[regexp {ld-new$} $ld]} {
-+ set gentoosysv "--hash-style=sysv --no-warn-shared-textrel"
++ set gentoosysv "--hash-style=sysv"
+ } else {
-+ set gentoosysv "-Wl,--hash-style=sysv -Wl,--no-warn-shared-textrel"
++ set gentoosysv "-Wl,--hash-style=sysv"
+ }
+
remote_file host delete $target