+2021-03-04 Jan Beulich <jbeulich@suse.com>
+
+ * testsuite/ld-scripts/map-address.exp: Set image base to zero
+ for PE/COFF.
+ * testsuite/ld-scripts/map-address.t: Place .text.
+
2021-03-04 Jan Beulich <jbeulich@suse.com>
* ldexp.c (ldexp_is_final_sym_absolute): New.
return
}
+if { [is_pecoff_format] } then {
+ set IMAGE_BASE "--image-base 0"
+} else {
+ set IMAGE_BASE ""
+}
+
if {![ld_link $ld tmpdir/map-address \
"$LDFLAGS -T $srcdir/$subdir/map-address.t \
- tmpdir/map-address.o \
+ $IMAGE_BASE tmpdir/map-address.o \
-Map tmpdir/map-address.map"]} {
fail $testname
return
if {![ld_link $ld tmpdir/map-address \
"$LDFLAGS -T $srcdir/$subdir/map-address.t \
- tmpdir/map-address.o \
+ $IMAGE_BASE tmpdir/map-address.o \
-Map tmpdir --output fred"]} {
fail $testname
return
if {![ld_link $ld tmpdir/map-address \
"$LDFLAGS -T $srcdir/$subdir/map-address.t \
- tmpdir/map-address.o \
+ $IMAGE_BASE tmpdir/map-address.o \
-Map=tmpdir/% --output fred"]} {
fail $testname
return
if {![ld_link $ld tmpdir/map-address \
"$LDFLAGS -T $srcdir/$subdir/map-address.t \
- tmpdir/map-address.o \
+ $IMAGE_BASE tmpdir/map-address.o \
-Map=tmpdir/%.foo --output fred"]} {
fail $testname
return