aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2018-06-03 21:40:36 +0200
committerSergei Trofimovich <slyfox@gentoo.org>2020-02-01 20:46:08 +0000
commit4e5dde17a245dbb930fa0405f33af99cc3a5ef1f (patch)
tree26f9f1f923994f2fdbb75b0c520ea9906af7fccb /ld/testsuite/lib/ld-lib.exp
parentGentoo: Pass --hash-style=sysv to ld in its testsuite (diff)
downloadbinutils-gdb-4e5dde17a245dbb930fa0405f33af99cc3a5ef1f.tar.gz
binutils-gdb-4e5dde17a245dbb930fa0405f33af99cc3a5ef1f.tar.bz2
binutils-gdb-4e5dde17a245dbb930fa0405f33af99cc3a5ef1f.zip
Gentoo: Pass --no-warn-shared-textrel to ld in its testsuite
Diffstat (limited to 'ld/testsuite/lib/ld-lib.exp')
-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 5d76b1de33f..80d3a86b245 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.