diff options
author | Alan Modra <amodra@gmail.com> | 2020-12-24 22:52:51 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-12-24 22:58:14 +1030 |
commit | 99d8bab0c125618005b96cbca9bae94919ae93b7 (patch) | |
tree | 9a6bdae140b1f9e97125f2f6d0ecd4566924d059 | |
parent | dccc31dee37b559219708c8d0accc7d512d51c1f (diff) | |
download | gdb-99d8bab0c125618005b96cbca9bae94919ae93b7.zip gdb-99d8bab0c125618005b96cbca9bae94919ae93b7.tar.gz gdb-99d8bab0c125618005b96cbca9bae94919ae93b7.tar.bz2 |
SHF_GNU_RETAIN 7a and 7b tests
* testsuite/ld-elf/retain7a.d: Don't run on hppa-linux.
* testsuite/ld-elf/retain7b.d: Correct name. Don't run on tic6x.
Allow OSABI FreeBSD.
-rw-r--r-- | ld/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/retain7a.d | 3 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/retain7b.d | 6 |
3 files changed, 11 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index 7d67ef2..f14a0b2 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,5 +1,11 @@ 2020-12-24 Alan Modra <amodra@gmail.com> + * testsuite/ld-elf/retain7a.d: Don't run on hppa-linux. + * testsuite/ld-elf/retain7b.d: Correct name. Don't run on tic6x. + Allow OSABI FreeBSD. + +2020-12-24 Alan Modra <amodra@gmail.com> + PR 27100 * ldlang.h (lang_output_section_statement_type): Add dup_output. * ldlang.c (lang_output_section_statement_lookup): Set dup_output. diff --git a/ld/testsuite/ld-elf/retain7a.d b/ld/testsuite/ld-elf/retain7a.d index 544ff8a..314fe0f 100644 --- a/ld/testsuite/ld-elf/retain7a.d +++ b/ld/testsuite/ld-elf/retain7a.d @@ -1,7 +1,8 @@ #name: SHF_GNU_RETAIN 7a #source: retain7.s #ld: -e _start --gc-sections -#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] +# hppa-linux chooses ELFOSABI_GNU regardless of GNU feature use +#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] hppa-*-linux* #readelf: -h #failif diff --git a/ld/testsuite/ld-elf/retain7b.d b/ld/testsuite/ld-elf/retain7b.d index 0e5b12b..ed158f8 100644 --- a/ld/testsuite/ld-elf/retain7b.d +++ b/ld/testsuite/ld-elf/retain7b.d @@ -1,10 +1,10 @@ -#name: SHF_GNU_RETAIN 7a +#name: SHF_GNU_RETAIN 7b #source: retain7.s #ld: -r -#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] +#notarget: ![supports_gnu_osabi] ![check_gc_sections_available] tic6x-*-* #readelf: -h ELF Header: #... - OS/ABI: UNIX - GNU + OS/ABI: UNIX - (GNU|FreeBSD) #pass |