PE image base fallout
authorAlan Modra <amodra@gmail.com>
Thu, 11 Mar 2021 11:10:02 +0000 (21:40 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 12 Mar 2021 00:11:34 +0000 (10:41 +1030)
commit68cb21837f09fd9c12fe4ced7b14f892be929c4f
tree2aac19510c37a1f4cc14fca7a0be91f2a7091ac8
parent1e1e17e5e2395bb94a9c0062c1cb991d1eecd04c
PE image base fallout

Fixes x86_64-w64-mingw32 tests that failed with the recent diagnosis
for out of range RVA, and a couple of other gc-sections tests that failed
for other reasons.

* testsuite/ld-gc/gc.exp: Pass "-image-base 0" to ld for PE, and
arrange to define __main for some run_dump_test tests.
* testsuite/ld-gc/pr13683.d: Accept more symbols.
* testsuite/ld-gc/pr14265.d: Likewise, and ordering.
* testsuite/ld-scripts/crossref.exp: Pass "-image-base 0" to ld for PE.
* testsuite/ld-srec/srec.exp: Likewise.
* testsuite/lib/ld-lib.exp (ld_link_defsyms): Use is_pecoff_format.
ld/ChangeLog
ld/testsuite/ld-gc/gc.exp
ld/testsuite/ld-gc/pr13683.d
ld/testsuite/ld-gc/pr14265.d
ld/testsuite/ld-scripts/crossref.exp
ld/testsuite/ld-srec/srec.exp
ld/testsuite/lib/ld-lib.exp