aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2018-06-03 21:40:36 +0200
committerAndreas K. Hüttel <dilfridge@gentoo.org>2019-10-13 05:48:13 +0200
commitff48e34994ab26997399d96a25111f38666e23a2 (patch)
tree75c6300ee8155e57ee2ecb815f597b2636d12502
parentGentoo: Pass --hash-style=sysv to ld in its testsuite (diff)
downloadbinutils-gdb-ff48e34994ab26997399d96a25111f38666e23a2.tar.gz
binutils-gdb-ff48e34994ab26997399d96a25111f38666e23a2.tar.bz2
binutils-gdb-ff48e34994ab26997399d96a25111f38666e23a2.zip
Gentoo: Pass --no-warn-shared-textrel to ld in its testsuite
(cherry picked from commit 47c5a106fe455b935e159c8418178f4051f1dbbf)
-rw-r--r--ld/testsuite/lib/ld-lib.exp8
1 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 80ec3a1a70..d355078d0d 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -165,7 +165,7 @@ proc default_ld_relocate { ld target objects } {
global HOSTING_EMU
remote_file host delete $target
- return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -o $target -r $objects"]
+ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv --no-warn-shared-textrel -o $target -r $objects"]
}
# Check to see if ld is being invoked with a non-endian output format
@@ -203,9 +203,9 @@ proc default_ld_link { ld target objects } {
# - .*ld/ld-new -> we're working with the new linker
# - otherwise -> we're likely working with the system compiler
if {[regexp {ld/ld-new$} $ld]} {
- set gentoosysv "--hash-style=sysv"
+ set gentoosysv "--hash-style=sysv --no-warn-shared-textrel"
} else {
- set gentoosysv "-Wl,--hash-style=sysv"
+ set gentoosysv "-Wl,--hash-style=sysv -Wl,--no-warn-shared-textrel"
}
remote_file host delete $target
@@ -972,7 +972,7 @@ proc run_dump_test { name {extra_options {}} } {
# Add -L$srcdir/$subdir so that the linker command can use
# linker scripts in the source directory.
- set cmd "$LD --hash-style=sysv $ld_extra_opt $LDFLAGS -L$srcdir/$subdir \
+ set cmd "$LD --hash-style=sysv --no-warn-shared-textrel $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.