bfd: don't silently wrap or truncate PE image section RVAs
[deliverable/binutils-gdb.git] / ld / testsuite / ld-scripts / alignof.exp
index b94f22762ad968558957bd6822a0786f4eb80b7f..44aa93146c4e47a50effe223cc439d02f7b39065 100644 (file)
@@ -32,7 +32,14 @@ if ![ld_assemble $as $srcdir/$subdir/alignof.s tmpdir/alignof.o] {
     return
 }
 
-if ![ld_link $ld tmpdir/alignof "-T $srcdir/$subdir/alignof.t tmpdir/alignof.o"] {
+if { [is_pecoff_format] } {
+    set IMAGE_BASE "--image-base 0"
+} else {
+    set IMAGE_BASE ""
+}
+
+if ![ld_link $ld tmpdir/alignof "-T $srcdir/$subdir/alignof.t \
+       $IMAGE_BASE tmpdir/alignof.o"] {
     fail $testname
     return
 }
This page took 0.022912 seconds and 4 git commands to generate.