ld-gc tests on underscore targets
authorAlan Modra <amodra@gmail.com>
Wed, 3 Mar 2021 06:55:28 +0000 (17:25 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 3 Mar 2021 07:16:36 +0000 (17:46 +1030)
commit270f32fc50b465e84c214a17d4ad3aebc3161bae
treed8f6a240063357e746463638b44f507836a7bf47
parentdc83f2d20e964f9a7fd9a97ba9d3950b908752a1
ld-gc tests on underscore targets

Adjust tests to reference __start and __stop syms with an extra
leading underscore when appropriate, and run tests on more targets.

* testsuite/ld-gc/gc.exp: Define UNDERSCORE in ASFLAGS.
Move tests with ELF section directives to is_elf_format block.
* testsuite/ld-gc/abi-note.d: Run on more targets.
* testsuite/ld-gc/pr19167.d: Likewise and adjust xfails.
* testsuite/ld-gc/start.d: Likewise.
* testsuite/ld-gc/start2.d: Likewise.
* testsuite/ld-gc/stop.d: Likewise.
* testsuite/ld-gc/pr19167a.s: Add support for underscore targets.
* testsuite/ld-gc/start.s: Likewise.
* testsuite/ld-gc/start2.s: Likewise.
ld/ChangeLog
ld/testsuite/ld-gc/abi-note.d
ld/testsuite/ld-gc/gc.exp
ld/testsuite/ld-gc/pr19167.d
ld/testsuite/ld-gc/pr19167a.s
ld/testsuite/ld-gc/start.d
ld/testsuite/ld-gc/start.s
ld/testsuite/ld-gc/start2.d
ld/testsuite/ld-gc/start2.s
ld/testsuite/ld-gc/stop.d