diff options
author | Alan Modra <amodra@gmail.com> | 2020-07-07 12:58:12 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-07-07 18:26:34 +0930 |
commit | 231b7382c061721f291d850a7a075d47e97de13c (patch) | |
tree | 480bd99be2d24b5930371e3fd946c7029b5d8024 /ld/testsuite/ld-scripts/provide.exp | |
parent | 7193487fa8d496a1df20eb8ea5007e9b43ac07cb (diff) | |
download | fsf-binutils-gdb-231b7382c061721f291d850a7a075d47e97de13c.zip fsf-binutils-gdb-231b7382c061721f291d850a7a075d47e97de13c.tar.gz fsf-binutils-gdb-231b7382c061721f291d850a7a075d47e97de13c.tar.bz2 |
Use is_pecoff_format in ld testsuite
--image-base 0 is not just for x86_64 mingw. This patch fixes that,
and a case where a changed LDFLAGS leaked out of one script to the next.
* testsuite/ld-scripts/align.exp: Use is_pecoff_format.
* testsuite/ld-scripts/defined.exp: Likewise.
* testsuite/ld-scripts/provide.exp: Likewise.
* testsuite/ld-scripts/weak.exp: Likewise.
* testsuite/ld-scripts/empty-address.exp: Likewise. Reset LDFLAGS
on exit.
* testsuite/ld-scripts/expr.exp: Set LDFLAGS earlier, and with
--image-base for PE.
* testsuite/ld-scripts/include.exp: Set LDFLAGS for PE.
* testsuite/ld-scripts/script.exp: Use is_pecoff_format, and
set LDFLAGS as well as flags.
Diffstat (limited to 'ld/testsuite/ld-scripts/provide.exp')
-rw-r--r-- | ld/testsuite/ld-scripts/provide.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ld/testsuite/ld-scripts/provide.exp b/ld/testsuite/ld-scripts/provide.exp index a4aee52..34aed40 100644 --- a/ld/testsuite/ld-scripts/provide.exp +++ b/ld/testsuite/ld-scripts/provide.exp @@ -31,8 +31,8 @@ if {[istarget "powerpc*-*-aix*"] || [istarget "rs6000-*-aix*"] || [is_aout_forma } set saved_LDFLAGS "$LDFLAGS" -if [istarget "x86_64-*-mingw*"] then { - set LDFLAGS "$LDFLAGS --image-base 0" +if { [is_pecoff_format] } then { + set LDFLAGS "$LDFLAGS --image-base 0" } set test_list [lsort [glob -nocomplain $srcdir/$subdir/provide-*.d]] |