From: Alan Modra Date: Thu, 24 Dec 2020 12:22:51 +0000 (+1030) Subject: SHF_GNU_RETAIN 7a and 7b tests X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=99d8bab0c125618005b96cbca9bae94919ae93b7;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 7d67ef200a7..f14a0b28ee1 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2020-12-24 Alan Modra + + * 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 PR 27100 diff --git a/ld/testsuite/ld-elf/retain7a.d b/ld/testsuite/ld-elf/retain7a.d index 544ff8a1735..314fe0f5733 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 0e5b12b335a..ed158f81f56 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