Use is_pecoff_format in ld testsuite
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / include.exp
index 81bd72b320b7f4e920f566b79ffcfdd9addad18e..c7e2ee58a0366f9810bfe0f1204cc9a072c7d8c9 100644 (file)
@@ -1,5 +1,5 @@
 # Test for proper diagnosis of overflowed memory regions.
-# Copyright (C) 2008-2019 Free Software Foundation, Inc.
+# Copyright (C) 2008-2020 Free Software Foundation, Inc.
 #
 # This file is part of the GNU Binutils.
 #
 # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston,
 # MA 02110-1301, USA.
 
-load_lib ld-lib.exp
-
 if [is_aout_format] {
     return
 }
 
 set old_ldflags $LDFLAGS
-if { [istarget spu*-*-*] } {
+if { [istarget spu*-*-*] } then {
     set LDFLAGS "$LDFLAGS --local-store 0:0 --no-overlays"
+} elseif { [is_pecoff_format] } then {
+    set LDFLAGS "$LDFLAGS --image-base 0"
 }
 
 set test_list [lsort [glob -nocomplain $srcdir/$subdir/include*.d]]
This page took 0.025173 seconds and 4 git commands to generate.