diff options
author | Alan Modra <amodra@gmail.com> | 2021-03-03 17:25:28 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-03-03 17:46:36 +1030 |
commit | 270f32fc50b465e84c214a17d4ad3aebc3161bae (patch) | |
tree | d8f6a240063357e746463638b44f507836a7bf47 /ld/testsuite/ld-gc/start2.d | |
parent | dc83f2d20e964f9a7fd9a97ba9d3950b908752a1 (diff) | |
download | binutils-270f32fc50b465e84c214a17d4ad3aebc3161bae.zip binutils-270f32fc50b465e84c214a17d4ad3aebc3161bae.tar.gz binutils-270f32fc50b465e84c214a17d4ad3aebc3161bae.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-gc/start2.d')
-rw-r--r-- | ld/testsuite/ld-gc/start2.d | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ld/testsuite/ld-gc/start2.d b/ld/testsuite/ld-gc/start2.d index 480dc74..b893ba2 100644 --- a/ld/testsuite/ld-gc/start2.d +++ b/ld/testsuite/ld-gc/start2.d @@ -1,10 +1,10 @@ #name: --gc-sections with -z start-stop-gc #ld: --gc-sections -e _start -z start-stop-gc #nm: -n -#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: bfin-*-*linux* frv-*-* +#notarget: [uses_genelf] +#xfail: bfin-*-*linux* frv-*-*linux* #failif #... -[0-9a-f]+ D +__start__foo +[0-9a-f]+ D +_?__start__foo #... |