SHF_GNU_RETAIN 7a and 7b tests
authorAlan Modra <amodra@gmail.com>
Thu, 24 Dec 2020 12:22:51 +0000 (22:52 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 24 Dec 2020 12:28:14 +0000 (22:58 +1030)
* 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.

ld/ChangeLog
ld/testsuite/ld-elf/retain7a.d
ld/testsuite/ld-elf/retain7b.d

index 7d67ef200a7e08d5c8fa51bc0236cc3a99ad78ff..f14a0b28ee15af0274c1f1a98bf38e55ac59073c 100644 (file)
@@ -1,3 +1,9 @@
+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
index 544ff8a17356c9f1a284543368e6c2f7d4d86284..314fe0f5733f87fd3805ef5dcc29cd7502058487 100644 (file)
@@ -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
index 0e5b12b335afda64c83ffd06cbd9f8d764d692c8..ed158f81f5698a36b17fe2511cd1f602aad87a60 100644 (file)
@@ -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