aarch64 and arm testsuite fixes for targets lacking shared libs
authorAlan Modra <amodra@gmail.com>
Thu, 7 Nov 2019 00:30:26 +0000 (11:00 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 7 Nov 2019 01:25:28 +0000 (11:55 +1030)
* testsuite/ld-aarch64/aarch64-elf.exp: Run tests requiring pie
or shared library support only when check_shared_lib_support.
* testsuite/ld-aarch64/bti-pac-plt-1.d: Likewise.
* testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
* testsuite/ld-aarch64/bti-plt-1.d: Likewise.
* testsuite/ld-aarch64/bti-plt-2.d: Likewise.
* testsuite/ld-aarch64/bti-plt-3.d: Likewise.
* testsuite/ld-aarch64/bti-plt-4.d: Likewise.
* testsuite/ld-aarch64/bti-plt-6.d: Likewise.
* testsuite/ld-aarch64/bti-plt-7.d: Likewise.
* testsuite/ld-aarch64/bti-warn.d: Likewise.
* testsuite/ld-aarch64/dt_textrel.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-258-dyn-bad.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-259-dyn-bad.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-264-bad.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-266-bad.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-268-bad.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-269-bad.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-515.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise.
* testsuite/ld-aarch64/emit-relocs-516.d: Likewise.
* testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
* testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
* testsuite/ld-aarch64/gc-plt-relocs.d: Likewise.
* testsuite/ld-aarch64/gc-relocs-257-dyn.d: Likewise.
* testsuite/ld-aarch64/ifunc-1-local.d: Likewise.
* testsuite/ld-aarch64/ifunc-1.d: Likewise.
* testsuite/ld-aarch64/ifunc-12.d: Likewise.
* testsuite/ld-aarch64/ifunc-13.d: Likewise.
* testsuite/ld-aarch64/ifunc-14a.d: Likewise.
* testsuite/ld-aarch64/ifunc-14b.d: Likewise.
* testsuite/ld-aarch64/ifunc-14c.d: Likewise.
* testsuite/ld-aarch64/ifunc-14d.d: Likewise.
* testsuite/ld-aarch64/ifunc-14e.d: Likewise.
* testsuite/ld-aarch64/ifunc-14f.d: Likewise.
* testsuite/ld-aarch64/ifunc-15.d: Likewise.
* testsuite/ld-aarch64/ifunc-16.d: Likewise.
* testsuite/ld-aarch64/ifunc-18a.d: Likewise.
* testsuite/ld-aarch64/ifunc-18b.d: Likewise.
* testsuite/ld-aarch64/ifunc-19a.d: Likewise.
* testsuite/ld-aarch64/ifunc-19b.d: Likewise.
* testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
* testsuite/ld-aarch64/ifunc-2.d: Likewise.
* testsuite/ld-aarch64/ifunc-20.d: Likewise.
* testsuite/ld-aarch64/ifunc-21.d: Likewise.
* testsuite/ld-aarch64/ifunc-3a.d: Likewise.
* testsuite/ld-aarch64/ifunc-3b.d: Likewise.
* testsuite/ld-aarch64/ifunc-5b-local.d: Likewise.
* testsuite/ld-aarch64/ifunc-5b.d: Likewise.
* testsuite/ld-aarch64/ifunc-6b.d: Likewise.
* testsuite/ld-aarch64/ifunc-7b.d: Likewise.
* testsuite/ld-aarch64/ifunc-7c.d: Likewise.
* testsuite/ld-aarch64/pac-plt-1.d: Likewise.
* testsuite/ld-aarch64/pac-plt-2.d: Likewise.
* testsuite/ld-aarch64/pcrel_pic_defined.d: Likewise.
* testsuite/ld-aarch64/pcrel_pic_undefined.d: Likewise.
* testsuite/ld-aarch64/pie-bind-locally.d: Likewise.
* testsuite/ld-aarch64/plt_mapping_symbol.d: Likewise.
* testsuite/ld-aarch64/pr20402.d: Likewise.
* testsuite/ld-aarch64/pr22764.d: Likewise.
* testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
* testsuite/ld-aarch64/protected-data.d: Likewise.
* testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise.
* testsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise.
* testsuite/ld-aarch64/rela-abs-relative.d: Likewise.
* testsuite/ld-aarch64/relasz.d: Likewise.
* testsuite/ld-aarch64/relocs-1027-symbolic-func.d: Likewise.
* testsuite/ld-aarch64/tls-desc-ie-ilp32.d: Likewise.
* testsuite/ld-aarch64/tls-desc-ie.d: Likewise.
* testsuite/ld-aarch64/tls-large-desc-be.d: Likewise.
* testsuite/ld-aarch64/tls-large-desc.d: Likewise.
* testsuite/ld-aarch64/tls-large-ie-be.d: Likewise.
* testsuite/ld-aarch64/tls-large-ie.d: Likewise.
* testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
* testsuite/ld-aarch64/tls-small-ld.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-desc.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-ie.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
* testsuite/ld-aarch64/tlsle-symbol-offset.d: Likewise.
* testsuite/ld-aarch64/tlsle.d: Likewise.
* testsuite/ld-aarch64/variant_pcs-now.d: Likewise.
* testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
* testsuite/ld-arm/arm-elf.exp: Likewise.  Remove --hash-style=sysv
from static tests.  Consolidate armelftests_common_* vars into one.
* testsuite/ld-arm/gc-hidden-1.d: Require check_shared_lib_support.
* testsuite/ld-arm/movw-shared-1.d: Likewise.
* testsuite/ld-arm/movw-shared-2.d: Likewise.
* testsuite/ld-arm/movw-shared-3.d: Likewise.
* testsuite/ld-arm/movw-shared-4.d: Likewise.
* testsuite/ld-arm/pie-bind-locally.d: Likewise.
* testsuite/ld-arm/protected-data.d: Likewise.
* testsuite/ld-arm/rel32-reject-pie.d: Likewise.
* testsuite/ld-arm/rel32-reject.d: Likewise.
* testsuite/ld-arm/thumb2-bl-undefweak.d: Likewise.
* testsuite/ld-arm/thumb2-bl-undefweak1.d: Likewise.

96 files changed:
ld/ChangeLog
ld/testsuite/ld-aarch64/aarch64-elf.exp
ld/testsuite/ld-aarch64/bti-pac-plt-1.d
ld/testsuite/ld-aarch64/bti-pac-plt-2.d
ld/testsuite/ld-aarch64/bti-plt-1.d
ld/testsuite/ld-aarch64/bti-plt-2.d
ld/testsuite/ld-aarch64/bti-plt-3.d
ld/testsuite/ld-aarch64/bti-plt-4.d
ld/testsuite/ld-aarch64/bti-plt-6.d
ld/testsuite/ld-aarch64/bti-plt-7.d
ld/testsuite/ld-aarch64/bti-warn.d
ld/testsuite/ld-aarch64/dt_textrel.d
ld/testsuite/ld-aarch64/emit-relocs-258-dyn-bad.d
ld/testsuite/ld-aarch64/emit-relocs-259-dyn-bad.d
ld/testsuite/ld-aarch64/emit-relocs-264-bad.d
ld/testsuite/ld-aarch64/emit-relocs-266-bad.d
ld/testsuite/ld-aarch64/emit-relocs-268-bad.d
ld/testsuite/ld-aarch64/emit-relocs-269-bad.d
ld/testsuite/ld-aarch64/emit-relocs-515-be.d
ld/testsuite/ld-aarch64/emit-relocs-515.d
ld/testsuite/ld-aarch64/emit-relocs-516-be.d
ld/testsuite/ld-aarch64/emit-relocs-516.d
ld/testsuite/ld-aarch64/farcall-b-plt.d
ld/testsuite/ld-aarch64/farcall-bl-plt.d
ld/testsuite/ld-aarch64/gc-plt-relocs.d
ld/testsuite/ld-aarch64/gc-relocs-257-dyn.d
ld/testsuite/ld-aarch64/ifunc-1-local.d
ld/testsuite/ld-aarch64/ifunc-1.d
ld/testsuite/ld-aarch64/ifunc-12.d
ld/testsuite/ld-aarch64/ifunc-13.d
ld/testsuite/ld-aarch64/ifunc-14a.d
ld/testsuite/ld-aarch64/ifunc-14b.d
ld/testsuite/ld-aarch64/ifunc-14c.d
ld/testsuite/ld-aarch64/ifunc-14d.d
ld/testsuite/ld-aarch64/ifunc-14e.d
ld/testsuite/ld-aarch64/ifunc-14f.d
ld/testsuite/ld-aarch64/ifunc-15.d
ld/testsuite/ld-aarch64/ifunc-16.d
ld/testsuite/ld-aarch64/ifunc-18a.d
ld/testsuite/ld-aarch64/ifunc-18b.d
ld/testsuite/ld-aarch64/ifunc-19a.d
ld/testsuite/ld-aarch64/ifunc-19b.d
ld/testsuite/ld-aarch64/ifunc-2-local.d
ld/testsuite/ld-aarch64/ifunc-2.d
ld/testsuite/ld-aarch64/ifunc-20.d
ld/testsuite/ld-aarch64/ifunc-21.d
ld/testsuite/ld-aarch64/ifunc-3a.d
ld/testsuite/ld-aarch64/ifunc-3b.d
ld/testsuite/ld-aarch64/ifunc-5b-local.d
ld/testsuite/ld-aarch64/ifunc-5b.d
ld/testsuite/ld-aarch64/ifunc-6b.d
ld/testsuite/ld-aarch64/ifunc-7b.d
ld/testsuite/ld-aarch64/ifunc-7c.d
ld/testsuite/ld-aarch64/pac-plt-1.d
ld/testsuite/ld-aarch64/pac-plt-2.d
ld/testsuite/ld-aarch64/pcrel_pic_defined.d
ld/testsuite/ld-aarch64/pcrel_pic_undefined.d
ld/testsuite/ld-aarch64/pie-bind-locally.d
ld/testsuite/ld-aarch64/plt_mapping_symbol.d
ld/testsuite/ld-aarch64/pr20402.d
ld/testsuite/ld-aarch64/pr22764.d
ld/testsuite/ld-aarch64/property-bti-pac1.d
ld/testsuite/ld-aarch64/protected-data.d
ld/testsuite/ld-aarch64/rela-abs-relative-be.d
ld/testsuite/ld-aarch64/rela-abs-relative-opt.d
ld/testsuite/ld-aarch64/rela-abs-relative.d
ld/testsuite/ld-aarch64/relasz.d
ld/testsuite/ld-aarch64/relocs-1027-symbolic-func.d
ld/testsuite/ld-aarch64/tls-desc-ie-ilp32.d
ld/testsuite/ld-aarch64/tls-desc-ie.d
ld/testsuite/ld-aarch64/tls-large-desc-be.d
ld/testsuite/ld-aarch64/tls-large-desc.d
ld/testsuite/ld-aarch64/tls-large-ie-be.d
ld/testsuite/ld-aarch64/tls-large-ie.d
ld/testsuite/ld-aarch64/tls-relax-gdesc-le-now.d
ld/testsuite/ld-aarch64/tls-small-ld.d
ld/testsuite/ld-aarch64/tls-tiny-desc.d
ld/testsuite/ld-aarch64/tls-tiny-gd.d
ld/testsuite/ld-aarch64/tls-tiny-ie.d
ld/testsuite/ld-aarch64/tls-tiny-ld.d
ld/testsuite/ld-aarch64/tlsle-symbol-offset.d
ld/testsuite/ld-aarch64/tlsle.d
ld/testsuite/ld-aarch64/variant_pcs-now.d
ld/testsuite/ld-aarch64/variant_pcs-shared.d
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-arm/gc-hidden-1.d
ld/testsuite/ld-arm/movw-shared-1.d
ld/testsuite/ld-arm/movw-shared-2.d
ld/testsuite/ld-arm/movw-shared-3.d
ld/testsuite/ld-arm/movw-shared-4.d
ld/testsuite/ld-arm/pie-bind-locally.d
ld/testsuite/ld-arm/protected-data.d
ld/testsuite/ld-arm/rel32-reject-pie.d
ld/testsuite/ld-arm/rel32-reject.d
ld/testsuite/ld-arm/thumb2-bl-undefweak.d
ld/testsuite/ld-arm/thumb2-bl-undefweak1.d

index f3aa29817fa8ebabf65d6f3ad6f84a4ee8ad19ba..f97cba222372ec597cbb4c8c9b51dceb4f12510a 100644 (file)
@@ -1,3 +1,103 @@
+2019-11-07  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-aarch64/aarch64-elf.exp: Run tests requiring pie
+       or shared library support only when check_shared_lib_support.
+       * testsuite/ld-aarch64/bti-pac-plt-1.d: Likewise.
+       * testsuite/ld-aarch64/bti-pac-plt-2.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-1.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-2.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-3.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-4.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-6.d: Likewise.
+       * testsuite/ld-aarch64/bti-plt-7.d: Likewise.
+       * testsuite/ld-aarch64/bti-warn.d: Likewise.
+       * testsuite/ld-aarch64/dt_textrel.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-258-dyn-bad.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-259-dyn-bad.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-264-bad.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-266-bad.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-268-bad.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-269-bad.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-515-be.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-515.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-516-be.d: Likewise.
+       * testsuite/ld-aarch64/emit-relocs-516.d: Likewise.
+       * testsuite/ld-aarch64/farcall-b-plt.d: Likewise.
+       * testsuite/ld-aarch64/farcall-bl-plt.d: Likewise.
+       * testsuite/ld-aarch64/gc-plt-relocs.d: Likewise.
+       * testsuite/ld-aarch64/gc-relocs-257-dyn.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-1-local.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-1.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-12.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-13.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-14a.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-14b.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-14c.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-14d.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-14e.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-14f.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-15.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-16.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-18a.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-18b.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-19a.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-19b.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-2.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-20.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-21.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-3b.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-5b-local.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-5b.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-6b.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-7b.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-7c.d: Likewise.
+       * testsuite/ld-aarch64/pac-plt-1.d: Likewise.
+       * testsuite/ld-aarch64/pac-plt-2.d: Likewise.
+       * testsuite/ld-aarch64/pcrel_pic_defined.d: Likewise.
+       * testsuite/ld-aarch64/pcrel_pic_undefined.d: Likewise.
+       * testsuite/ld-aarch64/pie-bind-locally.d: Likewise.
+       * testsuite/ld-aarch64/plt_mapping_symbol.d: Likewise.
+       * testsuite/ld-aarch64/pr20402.d: Likewise.
+       * testsuite/ld-aarch64/pr22764.d: Likewise.
+       * testsuite/ld-aarch64/property-bti-pac1.d: Likewise.
+       * testsuite/ld-aarch64/protected-data.d: Likewise.
+       * testsuite/ld-aarch64/rela-abs-relative-be.d: Likewise.
+       * testsuite/ld-aarch64/rela-abs-relative-opt.d: Likewise.
+       * testsuite/ld-aarch64/rela-abs-relative.d: Likewise.
+       * testsuite/ld-aarch64/relasz.d: Likewise.
+       * testsuite/ld-aarch64/relocs-1027-symbolic-func.d: Likewise.
+       * testsuite/ld-aarch64/tls-desc-ie-ilp32.d: Likewise.
+       * testsuite/ld-aarch64/tls-desc-ie.d: Likewise.
+       * testsuite/ld-aarch64/tls-large-desc-be.d: Likewise.
+       * testsuite/ld-aarch64/tls-large-desc.d: Likewise.
+       * testsuite/ld-aarch64/tls-large-ie-be.d: Likewise.
+       * testsuite/ld-aarch64/tls-large-ie.d: Likewise.
+       * testsuite/ld-aarch64/tls-relax-gdesc-le-now.d: Likewise.
+       * testsuite/ld-aarch64/tls-small-ld.d: Likewise.
+       * testsuite/ld-aarch64/tls-tiny-desc.d: Likewise.
+       * testsuite/ld-aarch64/tls-tiny-gd.d: Likewise.
+       * testsuite/ld-aarch64/tls-tiny-ie.d: Likewise.
+       * testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
+       * testsuite/ld-aarch64/tlsle-symbol-offset.d: Likewise.
+       * testsuite/ld-aarch64/tlsle.d: Likewise.
+       * testsuite/ld-aarch64/variant_pcs-now.d: Likewise.
+       * testsuite/ld-aarch64/variant_pcs-shared.d: Likewise.
+       * testsuite/ld-arm/arm-elf.exp: Likewise.  Remove --hash-style=sysv
+       from static tests.  Consolidate armelftests_common_* vars into one.
+       * testsuite/ld-arm/gc-hidden-1.d: Require check_shared_lib_support.
+       * testsuite/ld-arm/movw-shared-1.d: Likewise.
+       * testsuite/ld-arm/movw-shared-2.d: Likewise.
+       * testsuite/ld-arm/movw-shared-3.d: Likewise.
+       * testsuite/ld-arm/movw-shared-4.d: Likewise.
+       * testsuite/ld-arm/pie-bind-locally.d: Likewise.
+       * testsuite/ld-arm/protected-data.d: Likewise.
+       * testsuite/ld-arm/rel32-reject-pie.d: Likewise.
+       * testsuite/ld-arm/rel32-reject.d: Likewise.
+       * testsuite/ld-arm/thumb2-bl-undefweak.d: Likewise.
+       * testsuite/ld-arm/thumb2-bl-undefweak1.d: Likewise.
+
 2019-11-06  Christian Eggers  <ceggers@gmx.de>
 
        * ldlang.c (print_input_section): Shift printed size by opb_shift.
index 631fde0f31079cad8d7258fd39005bc881954280..2b053d1ee79e6a4aef9eb55edd07c76b75b5a00a 100644 (file)
@@ -37,11 +37,14 @@ set aarch64elftests {
      "--fix-cortex-a53-835769" "" "" {erratum835769.s}
      {{objdump -dr erratum835769.d}}
      "erratum835769"}
+}
+set tmp {
     {"Erratum 835769 dump test -shared"
      "--fix-cortex-a53-835769 -shared" "" "" {erratum835769.s}
      {{objdump -dr erratum835769.d}}
      "erratum835769"}
 }
+if [check_shared_lib_support] { append aarch64elftests $tmp }
 
 proc aarch64_choose_ilp32_emul {} {
     if [istarget *linux*] then {
@@ -410,7 +413,9 @@ set aarch64elflinktests {
     {} "libbti-plt-so.so"}
 }
 
-run_ld_link_tests $aarch64elflinktests
+if [check_shared_lib_support] {
+    run_ld_link_tests $aarch64elflinktests
+}
 
 run_dump_test "bti-plt-3"
 run_dump_test "bti-plt-4"
index e1c6eb7f25d6b9e536f511cd5635d41b3247e48e..495b304be2414353889ddd3af29af2637090e1ae 100644 (file)
@@ -1,4 +1,5 @@
 #source: bti-plt-1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64
 #ld: -shared -z force-bti -z pac-plt -T bti-plt.ld
 #objdump: -dr -j .plt
index 0c67615ac41c8370acc331957a422eedda35157e..ed39e21ed8d8c57466f1cb597f1998530d8ddbeb 100644 (file)
@@ -1,4 +1,5 @@
 #source: bti-plt-1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64
 #ld: -z force-bti -z pac-plt -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
 #objdump: -dr -j .plt
index f8414a0164546528bcc5f1adb748e963858f10af..9fd7c6b2ce727b003b55dd870d9694e97c35ca5e 100644 (file)
@@ -1,5 +1,6 @@
 #name: Check -z force-bti emits BTI PLT (shared)
 #source: bti-plt-1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64
 #ld: -shared -z force-bti -T bti-plt.ld
 #objdump: -dr -j .plt
index f1c90b92c9a81bb3c30a10f9c9e60e59ec5ae06b..c34ab47bf541329ca977a7708d0572ca4c934b03 100644 (file)
@@ -1,6 +1,7 @@
 #name: Check -z force-bti emits BTI feature (shared)
 #source: bti-plt-1.s
 #source: bti-plt-2.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64
 #ld: -shared -z force-bti -T bti-plt.ld
 #readelf: -n
index 82f08a9869edb2dcd946f30da64aec9ccaed482d..c82878e1eb5d57a7a4337e5bec174be60a82a9ab 100644 (file)
@@ -1,5 +1,6 @@
 #name: Check -z force-bti emits BTI PLT (exec)
 #source: bti-plt-1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64
 #ld: -z force-bti -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
 #objdump: -dr -j .plt
index 496e1242152e17af95990f107bdbff946fdf876f..04d3c7d963f1fbc58851d0d85ba2635765b17acf 100644 (file)
@@ -1,5 +1,6 @@
 #name: Check -z force-bti emits BTI feature (exec)
 #source: bti-plt-1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64
 #ld: -z force-bti -e _start -T bti-plt.ld -L./tmpdir -lbti-plt-so
 #readelf: -n
index efb368ba151b2ef6555097e48c06766b949ee3e3..df5c063431773061e86ed790b0bca450efcb1d56 100644 (file)
@@ -1,6 +1,7 @@
 #name: Warn with one missing GNU NOTE BTI input
 #source: property-bti-pac2.s
 #source: property-bti-pac1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64 -defsym __property_pac__=1
 #ld: -shared -z force-bti
 #warning: .*property-bti-pac2.*: warning: BTI turned on by -z force-bti.*$
index e3e84c32f0d8eda799a99386dff4951dd7f51954..4d232902437b53526ceea04fe4dd6e2b37a021f5 100644 (file)
@@ -1,6 +1,7 @@
 #name: Warn when neither inputs has GNU NOTE BTI
 #source: property-bti-pac2.s
 #source: plt_mapping_symbol.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64
 #ld: -shared -z force-bti
 #warning: .*plt_mapping_symbol.*: warning: BTI turned on by -z force-bti.*
index 0e3954d0600122052abe4a7532eb8650b72a6ea8..d10cd104006b664b74889ae027a2a980f4c14b91 100644 (file)
@@ -1,6 +1,7 @@
 #name: Warn when both have GNU prop but neither BTI
 #source: property-bti-pac2.s
 #source: bti-plt-1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64 --defsym __guard_property_bti__=1 --defsym __property_pac__=1
 #ld: -shared -z force-bti
 #warning: .*property-bti-pac2.*: warning: BTI turned on by -z force-bti.*
index e28d16469971e303cc9da3e19145a1e15258628e..356fea8c400b1098321ea2c84550ad7874d24adb 100644 (file)
@@ -1,4 +1,5 @@
 #source: dt_textrel.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #readelf: -d
 #...
index 4de6e55d0bd8fa327ee8d11b1ae8e2dab6b6ea33..54a8dce69f902a4ace7e414fb25cb4bdd21b0dc5 100644 (file)
@@ -1,4 +1,5 @@
 #name: LP64 R_AARCH64_ABS32 shared library test
 #source: emit-relocs-258.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #error: .*: relocation R_AARCH64_ABS32 against `dummy' can not be used when making a shared object
index f133e8991eafdb5ec65a81d276319adefc01742b..eaa249833d0288780ee901a243f3af52f3091389 100644 (file)
@@ -1,4 +1,5 @@
 #name: R_AARCH64_ABS16 shared library test
 #source: emit-relocs-259.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #error: .*: relocation R_AARCH64_ABS16 against `dummy' can not be used when making a shared object
index 22718cad60909dc0651e2204f8b2e29e476ba407..26e16e1d8380560ad2d5ee59f0177bb8958e2bce 100644 (file)
@@ -1,3 +1,4 @@
 #source: emit-relocs-264.s
+#target: [check_shared_lib_support]
 #ld: -T relocs.ld --defsym tempy=0x11000 --defsym tempy2=0x45000 --defsym tempy3=0x1234  -e0 -shared
 #error: .*relocation R_AARCH64_MOVW_UABS_G0_NC.*can not.*shared object.*fPIC
index 886494df51ede329798d151c38ecadf9cd0e6e71..b27ab4cd16af23c993f2e20058704a5fb4e446fe 100644 (file)
@@ -1,3 +1,4 @@
 #source: emit-relocs-266.s
+#target: [check_shared_lib_support]
 #ld: -T relocs.ld --defsym tempy=0x11000 --defsym tempy2=0x45000 --defsym tempy3=0x1234  -e0 -shared
 #error: .*relocation R_AARCH64_MOVW_UABS_G1_NC.*can not.*shared object.*fPIC
index ea97541c8628547cb531aa183626420a55621425..bdc4a7de242529544873eacda40252eee1960119 100644 (file)
@@ -1,3 +1,4 @@
 #source: emit-relocs-268.s
+#target: [check_shared_lib_support]
 #ld: -T relocs.ld --defsym tempy=0x11000 --defsym tempy2=0x45000 --defsym tempy3=0x1234  -e0 -shared
 #error: .*relocation R_AARCH64_MOVW_UABS_G2_NC.*can not.*shared object.*fPIC
index 9292855f73aeb946889fc8a123fd3ca4ba4e2429..b201fc7239e517f1f692e2ad6c39db8da27013b9 100644 (file)
@@ -1,3 +1,4 @@
 #source: emit-relocs-269.s
+#target: [check_shared_lib_support]
 #ld: -T relocs.ld --defsym tempy=0x11000 --defsym tempy2=0x45000 --defsym tempy3=0x1234  -e0 -shared
 #error: .*relocation R_AARCH64_MOVW_UABS_G3.*can not.*shared object.*fPIC
index 82d5bd688bdf0a83ee415debf610e6de1b636be5..7de1fb0c842f30a3fb1714a4915cfd81d4804ddc 100644 (file)
@@ -1,4 +1,5 @@
 #source: emit-relocs-515.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64-*-*
 #objdump: -dr
index 9d84bf16e6983dcd6c99b834c85095c43c02135f..535f5f5bd024fc99942af51b9ba46ed0f4bec6db 100644 (file)
@@ -1,4 +1,5 @@
 #source: emit-relocs-515.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64_be-*-*
 #objdump: -dr
index 23332b0b940d95b272a83a4a015bcb9e0f546942..5a0b05cadc8f97478fd8456488c9263f8dfe2c45 100644 (file)
@@ -1,4 +1,5 @@
 #source: emit-relocs-516.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64-*-*
 #objdump: -dr
index e2ad1d6bd69908c205edca7fe83cba588156bc63..72b36312cd86cdfb99df548ccaf7ec4fe7bc1c8e 100644 (file)
@@ -1,4 +1,5 @@
 #source: emit-relocs-516.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64_be-*-*
 #objdump: -dr
index e20b9c39464a7a2166d6b42d98a4359f4188cd91..90dc243b68b998c77c3e7c8fb26cec38483e560c 100644 (file)
@@ -1,5 +1,6 @@
 #name: aarch64-farcall-b-plt
 #source: farcall-b-plt.s
+#target: [check_shared_lib_support]
 #as:
 #ld: -shared
 #objdump: -dr
index 7c3de4a4467cc2a179c86ab2e92df43054f60658..a8d78d389758934f599181be5c25ed9ebb455fc9 100644 (file)
@@ -1,5 +1,6 @@
 #name: aarch64-farcall-bl-plt
 #source: farcall-bl-plt.s
+#target: [check_shared_lib_support]
 #as:
 #ld: -shared
 #objdump: -dr
index 07c92ddf1f785781c375017dfb6abeb30aaefb2c..5c9b5fe5577d9289b8471d6edaebd5ce629c3906 100644 (file)
@@ -2,6 +2,7 @@
 #source: gc-plt-main.s
 #source: gc-plt-hidden.s
 #source: gc-plt2.s
+#target: [check_shared_lib_support]
 #ld: --gc-sections -T aarch64.ld --shared --hash-style=sysv
 #objdump: -dT
 
index f1f7eb6d5b5baa69d8389731645f5758569a8679..56fcfa4fdc4cac2b2d8ea09193ed49db7c79543f 100644 (file)
@@ -1,5 +1,6 @@
 #source: gc-start.s
 #source: gc-relocs-257.s
+#target: [check_shared_lib_support]
 #ld: --defsym tempy=0x11012 --defsym tempy2=0x45034 --defsym tempy3=0x1234   -T aarch64.ld   -shared  --gc-sections
 #objdump: -R -d
 
index 178363786542be857f738c4fd1765b0cb42006c0..0d4a92ce437887aa367fef4db57ed6e033c81181 100644 (file)
@@ -1,6 +1,6 @@
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv
 #objdump: -dw
-#target: aarch64*-*-*
 
 #...
 0+(110|180|1a0) <(__GI_)?foo>:
index 0274ac0094e42300b2bde89041a6aae426e23ceb..0f7a3fab3355b140a8eba80bce08eb08e454c50a 100644 (file)
@@ -1,6 +1,6 @@
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv
 #objdump: -dw
-#target: aarch64*-*-*
 
 #...
 0+(130|1a0|1c8) <foo>:
index 8fa8ce0f35e53f7096f32e72049ca4376f1b23c4..7d01e766ea17e460eeb4565334b829bd359d3901 100644 (file)
@@ -1,5 +1,5 @@
+#target: [check_shared_lib_support]
 #ld: -shared -e bar --gc-sections
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 There are no relocations in this file.
index 75ba03ff3fd8f89628fd11af96289b3b10372427..7c0b7acc0457ff40c409b2bf2cd915d1f8462338 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-13a.s
 #source: ifunc-13b.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.ifunc' at offset 0x[0-9a-f]+ contains 1 entry:
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index ff580d0a3c3054cce1793f3296e513da4100a028..959b495180003bc0da6f03e22834413085ef7794 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-14a.s
 #source: ifunc-14b.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -d
-#target: aarch64*-*-*
 
 #failif
 #...
index 52ed2b4e1e00246e3a1040f3ae790b55b6be6f57..ac4db0bdc2fa9b4b75e0c2b1cd2c0b371daebbfa 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-14b.s
 #source: ifunc-14a.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -d
-#target: aarch64*-*-*
 
 #failif
 #...
index a83126f807151b79a0e3f36152b861bada25db6d..0618a22ea758be70609cfa610a76fc949be56b45 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-14a.s
 #source: ifunc-14b.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 #failif
 #...
index 4ae88d22ea62dc717c1a36f83ec5f5e449d8fe86..0aa505c27633bbbb6d5fb7f498d4946dc37f93b8 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-14b.s
 #source: ifunc-14a.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 #failif
 #...
index 62de35ece4371b8a85090af23e2aa00c21512268..0224bd094527a4cdf71c554ba2f06b21dc82ba48 100644 (file)
@@ -1,9 +1,9 @@
 #source: ifunc-14a.s
 #source: ifunc-14c.s
 #source: ifunc-14b.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 #failif
 #...
index ab8bdbfed7318b70b5f6e0fcbe38e60e8b68d90c..f4b4a645035ff8aa050e6720b8c1f858172db1b6 100644 (file)
@@ -1,9 +1,9 @@
 #source: ifunc-14a.s
 #source: ifunc-14b.s
 #source: ifunc-14c.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 #failif
 #...
index 66bb988abd8a4db3f7d4e55f3184d1ffc324d587..43ae8c59aa661eaf7b94c3d913edb11b34b7a139 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-15.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.got' at offset 0x[0-9a-f]+ contains 1 entry:
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 9a20b617f6853baa3007620580bdc670dbecc004..eb49cfb15bf750b7958bceab1e99ea71e353dd32 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-16.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 3db91d3486c4129733db2a0ddb0065b182252d29..0dcb09ee6889f0d8ec996843cecf5e6c4c37947f 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-18a.s
 #source: ifunc-18b.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index b27f5263658b34661f1367ac7310603f763a1f5c..8694298f731a99ab612b123a6523f0af738f6a25 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-18b.s
 #source: ifunc-18a.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index dd82b24787010ab2c46559bd0fab08d2911c7083..c68dfd891effb1659551a2910a624be7ae62200b 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-19a.s
 #source: ifunc-19b.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 1e0819c0e83703c1c675b639b61f9b06c3581cce..6d66351c3f7a3111e0516ba414e92a26be4aad40 100644 (file)
@@ -1,8 +1,8 @@
 #source: ifunc-19b.s
 #source: ifunc-19a.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.ifunc' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index a3d9e15f8b6ae9ba747dc79ee0817b4c9c8764d1..c4054e7f80d696dc7cbe8fe87cf31f379eb55e79 100644 (file)
@@ -1,6 +1,6 @@
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv
 #objdump: -dw
-#target: aarch64*-*-*
 
 #...
 0+(110|180|1a0) <__GI_foo>:
index eb6fa0ccf0b25314a25ad59abbb941ec3ded2b75..ed8d47dfbbf752b6ae1340a806c47306f8835e96 100644 (file)
@@ -1,6 +1,6 @@
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv
 #objdump: -dw
-#target: aarch64*-*-*
 
 #...
 0+(130|1a0|1c8) <foo>:
index 603ba075cf977bbab09eb67cfdf98d2b48791387..f00dea0a91e7d110741e7aea1e1c90ac5ca3b125 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-20.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.ifunc' at offset 0x[0-9a-f]+ contains 1 entry:
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index a16186b587eb65390f698c362cb34be5669ae16a..28115d2a9bbf9d50c265b3f101dfc7be9c8fae95 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-21.s
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv -z nocombreloc
 #objdump: -d -s -j .got.plt -j .text
-#target: aarch64*-*-*
 
 # Ensure the .got.plt slot used is correct
 
index 4919d9689280e474dfe108fd86dfc1f96958edf3..464364729fbb6468b95c6a722a975e461a426e3b 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-3.s
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv
 #objdump: -dw
-#target: aarch64*-*-*
 
 #...
 0+(150|1d0|1e8) <__GI_foo>:
index 7e177a61e5d419447667f55a16eb4897a95ad159..2d2ec411a4cbe5ba19733a3deedbe439cc17a4ae 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-3.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 #...
 [0-9a-f]+[ ]+[0-9a-f]+[ ]+R_[_0-9A-Z]+_IRELATIVE[ ]*[0-9a-f]*
index 1a7cab70fc22de07b6a6f6d32284820d2879ef7d..c69d05be576d0b547b5f89bc5e3c4eb8d25c8b94 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-5-local.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index 03a7837b12c48b1e94fc8f3a073101a6a1606a35..58beca2a547cdc37a8004935d30de0d2dfffa2fa 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-5.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.got' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index d7248e83a2acf05bc0b0fbb1e6db8a72e5a00028..a8ff8190023397e24051a2e1b45753d203f12ec9 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-6.s
+#target: [check_shared_lib_support]
 #ld: -shared -z nocombreloc
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.got' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index ff1e73ea7cf0b9a7b2eeb4d9844e88e480e2cdec..aa871e940c79ab1252192b6f7ed082f46f69f22d 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-7.s
 #ld: -shared
+#target: [check_shared_lib_support]
 #readelf: -r --wide
-#target: aarch64*-*-*
 
 Relocation section '.rela.plt' at .*
 [ ]+Offset[ ]+Info[ ]+Type[ ]+.*
index e56322a4a2f80e62739f3d8c5af7d5123abe7fcc..e526fea4b7236f3f5bb359b8433a1c687e487f9c 100644 (file)
@@ -1,7 +1,7 @@
 #source: ifunc-7.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #objdump: -dr -j .text
-#target: aarch64*-*-*
 
 # Check if adrp and ldr have been relocated correctly.
 
index 06278ef15f706cbee55f1258c8ee732370506faa..ac9467035c8fd5d1230c1dbd56733b19ffac1719 100644 (file)
@@ -1,4 +1,5 @@
 #source: bti-plt-1.s
+#target: [check_shared_lib_support]
 #as: -mabi=lp64 --defsym __guard_property_bti__=1
 #ld: -shared -z pac-plt -T bti-plt.ld
 #objdump: -dr -j .plt
index b5cf43d3d4694564b5f653cb234b40294c968b0b..611bf8bd506f359c243a5bacbafb1e16f153b6f6 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-desc-ie.s
+#target: [check_shared_lib_support]
 #ld: -shared -z pac-plt -T bti-plt.ld
 #objdump: -dr -j .plt
 #...
index a611e313ff77e1001c9a1cef19915e5d6a543846..26b70a6aa8bce53298f5414c77b58726842ae943 100644 (file)
@@ -1,5 +1,6 @@
 #name: PC-Rel relocation against defined
 #source: pcrel.s
+#target: [check_shared_lib_support]
 #ld: -shared -e0 -defsym global_a=0x1000 -defsym global_b=0x2000
 #error: .*: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `global_a.*bind externally.*fPIC.*
 #error: .*: dangerous relocation: unsupported relocation
index b5d63722352c18cec92201620d850fd8a7ed7d13..fd8ddb38a8c47502616fa8f26976ff95d065f35d 100644 (file)
@@ -1,5 +1,6 @@
 #name: PC-Rel relocation against undefined
 #source: pcrel.s
+#target: [check_shared_lib_support]
 #ld: -shared -e0 -defsym global_b=0x2000
 #error: .*: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `global_a.*bind externally.*fPIC.*
 #error: .*: dangerous relocation: unsupported relocation
index 3689543a9fa82dcd682cc87e7a2f0cf16f77dbb4..a8a27fbbf0184e9cda6288fc094e716e0df96b24 100644 (file)
@@ -1,5 +1,6 @@
 #source: pie-bind-locally-a.s
 #source: pie-bind-locally-b.s
+#target: [check_shared_lib_support]
 #ld: -pie
 #readelf: -Wr
 
index 3b86cff47eeeb0f17621c5cbe88e1dbefad167e1..f1ffd077fe44898e791fa8ea39637329ffe5d581 100644 (file)
@@ -1,7 +1,8 @@
+#name: AArch64 mapping symbol for plt section test.
 #source: plt_mapping_symbol.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #objdump: --syms --special-syms
-#name: AArch64 mapping symbol for plt section test.
 #...
 
 SYMBOL TABLE:
index 9cfeeb76dd3a8ed475a845d6fdf9d0c452610a58..0c7ca17b83f91cbd05c5cc6be4395155775f7af1 100644 (file)
@@ -1,3 +1,4 @@
+#target: [check_shared_lib_support]
 #ld: -pie -defsym foo=0x1 -defsym bar=0x2
 #readelf: -r
 
index 997519f46994c7ee83cf4414a01998875ce16162..4830d223cec9cbf7712efe03051910af6b4d484a 100644 (file)
@@ -1,4 +1,5 @@
 #source: pr22764.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -defsym sym_abs1=0x1 -defsym sym_abs2=0x2 -defsym sym_abs3=0x3 -e0 --emit-relocs
 #notarget: aarch64_be-*-*
 #objdump: -dr
index 3acb850a323f12c8d8484f759d5eec6233c989a4..59fa695165aa2fff603c2d4156c284bf08e2c072 100644 (file)
@@ -1,9 +1,9 @@
 #name: GNU Property (single input, combine section)
 #source: property-bti-pac1.s
+#alltargets: [check_shared_lib_support] *linux*
 #as: -march=armv8.5-a -defsym __mult__=0
 #ld: -shared
 #readelf: -n
-#target: *linux*
 
 Displaying notes found in: .note.gnu.property
 [      ]+Owner[        ]+Data size[    ]+Description
index df106dc9519ffa3f8f007af2434ed42ecf9fae38..5dabf04748ce20105a8cb7d6a729fb5683f8b382 100644 (file)
@@ -1,3 +1,4 @@
+#target: [check_shared_lib_support]
 #ld: -shared
 #readelf: -r -W
 #...
index 88ba58df1714e824d32796ff655d91bf324a8f8d..333122a0bce44c30b151db26a3a32332be0d8c7f 100644 (file)
@@ -1,7 +1,7 @@
 #name: rela-abs-relative (big endian)
 #source: rela-abs-relative.s
+#alltargets: [check_shared_lib_support] aarch64_be-*-*
 #ld: -shared -Ttext-segment=0x100000 -Tdata=0x200000 -Trelocs.ld
-#target: aarch64_be-*-*
 #objdump: -dR -j .data
 #...
 
index a1e5ca0fc18028cc37d265a1ad56f65f8b3e772c..7d76758ceee45d9e8e58218d2b55da2cddb6eabc 100644 (file)
@@ -1,5 +1,6 @@
 #name: rela-abs-relative --no-apply-dynamic-relocs
 #source: rela-abs-relative.s
+#target: [check_shared_lib_support]
 #ld: -shared -Ttext-segment=0x100000 -Tdata=0x200000 -Trelocs.ld --no-apply-dynamic-relocs
 #notarget: aarch64_be-*-*
 #objdump: -dR -j .data
index aba876b7b4949cd3dd3bd48321b949f40e882bba..0d43bfc74011063a7b727c08c8799e44d9b64f48 100644 (file)
@@ -1,5 +1,6 @@
 #name: rela-abs-relative
 #source: rela-abs-relative.s
+#target: [check_shared_lib_support]
 #ld: -shared -Ttext-segment=0x100000 -Tdata=0x200000 -Trelocs.ld
 #notarget: aarch64_be-*-*
 #objdump: -dR -j .data
index 28fe83a4d59bb974136eda63e390d0d2adc5a636..47f5de476ff3e46e330c9e375c9e14edd08ae50c 100644 (file)
@@ -1,4 +1,5 @@
 #source: relasz.s
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv -Taarch64.ld
 #readelf: -d
 # Check that the RELASZ section has the correct size even if we are
index 19b81f313b3c78a84aa8ae88172cad3985ac3433..c3dd57c88622af3e188f6be343f90141a91ddfc2 100644 (file)
@@ -1,4 +1,5 @@
 #source: relocs-1027-symbolic-func.s
+#target: [check_shared_lib_support]
 #ld: -shared -Bsymbolic-functions
 #readelf: -r --wide
 #...
index 40680a69d3a877bc88641a3b00c446d7f9efe8a1..2cf42dc634bec235ac7e3ff6482c7c96cbca48f8 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-desc-ie.s
+#target: [check_shared_lib_support]
 #as: -mabi=ilp32
 #ld: -shared -m [aarch64_choose_ilp32_emul] -T relocs-ilp32.ld -e0
 #objdump: -dr
index 1b1b9279e44e218a1ec7a298430bd5f6a55b3c8c..be6eb1c302d34badb1c00098645b00849d6ef1b4 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-desc-ie.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #objdump: -dr
 #...
index 217794ce94c67239a0bd63f0b4d8eebed3e5e353..433b2b0d80aeca74137ca3043c0c95704289caf9 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-large-desc.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64-*-*
 #objdump: -dr
index 9fa6dccfa415140962d3eeff8991cdb3548f4098..f63cb9b16d4523a126ad176c63570efbef50053f 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-large-desc.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64_be-*-*
 #objdump: -dr
index 64a4384f41b4def363cfb1a58ad048b5786f425f..5ef724be0c4ef197bd2ff8aef56db909ba49adfe 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-large-ie.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64-*-*
 #objdump: -dr
index 98606d6f9631f2aee892b1e715bb348bb4ee29a0..55bb7a4abfb8bb0e846fae88782811298194ff61 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-large-ie.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #notarget: aarch64_be-*-*
 #objdump: -dr
index f1565e9c11f0136a5183694ecc22191617bf5cc2..8b6dceff81be7f64a5c774dfa18a3ddc6028af24 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-relax-gdesc-le.s
+#target: [check_shared_lib_support]
 #ld: -shared -z now
 #readelf: -dr
 #...
index dce10afabcbe8460e9d56015f73a5e05b5eca106..e39f8881a78758729b03209c94c6900b94987ef0 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-small-ld.s
+#target: [check_shared_lib_support]
 #ld: -T relocs.ld -shared --hash-style=sysv
 #readelf: -Wr
 
index c17c448dda8652eecab936629ba61d420b3b04ba..6eb81ea315b64fa6e4d6ee9a41913983491a4a81 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-tiny-desc.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #objdump: -dr
 #...
index 913349241635c07dc11978b3feacb6ce293f1ec0..36d087916c98359f973111474b067b8cd279aa1f 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-tiny-gd.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #objdump: -dr
 #...
index 849e73ddf07e451c6efcde64b849e8e5247ac2c1..5f1e6da9ffd34600196d014464a9376bcb10fd9f 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-tiny-ie.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #objdump: -dr
 #...
index a9eb0a53fb2e1b3219c8f9b3bf11e1b84c3342c8..0a31ed9030c42d315d810e304166146fff8dca2e 100644 (file)
@@ -1,4 +1,5 @@
 #source: tls-tiny-ld.s
+#target: [check_shared_lib_support]
 #ld: -T relocs.ld -shared --hash-style=sysv
 #readelf: -Wr
 
index cf61691300239f8ead1faa544e81e14409658ca0..f1c6abf911e2730a36f3ffa1792843575d4d5a5b 100644 (file)
@@ -1,4 +1,5 @@
 #source: tlsle-symbol-offset.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #objdump: -dr
 #...
index c74f66222415e85017bd80b269cf19e16f1c9668..2340c9b6fb7813f0bb4030853124ddec3e61960d 100644 (file)
@@ -1,4 +1,5 @@
 #source: tlsle.s
+#target: [check_shared_lib_support]
 #ld: -shared -T relocs.ld -e0
 #objdump: -dr
 
index c3f48fe847b93b398d867a8cd7e79318961e6299..7ee9d8e16d8c9012523a23ea000395349d711e6d 100644 (file)
@@ -1,5 +1,6 @@
 #source: variant_pcs-1.s
 #source: variant_pcs-2.s
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv -T variant_pcs.ld -z now
 #readelf: -rsW
 
index bdcc2c867f68d640c99f3dd59e4a850a1a18c05f..15e548a70e7403572d3ce429f7bebc298e143a41 100644 (file)
@@ -1,5 +1,6 @@
 #source: variant_pcs-1.s
 #source: variant_pcs-2.s
+#target: [check_shared_lib_support]
 #ld: -shared --hash-style=sysv -T variant_pcs.ld
 #readelf: -rsW
 
index 118aa642d1b7058c7136ee73d4fc7c46badd9bf3..b4ff0442ff01fe09200ede2dda3b6d51e105987d 100644 (file)
@@ -72,10 +72,12 @@ if { ![is_elf_format] || ![istarget "arm*-*-*"] } {
 # nm: Apply nm options on result.  Compare with regex (last arg).
 # readelf: Apply readelf options on result.  Compare with regex (last arg).
 
-set armelftests_common_1 {
+set armelftests_common {
     {"Group relocations" "-Ttext 0x8000 -Tdata 0x3000000 --section-start alpha=0xeef0 --section-start beta=0xffeef0" "" "" {group-relocs.s}
      {{objdump -dr group-relocs.d}}
      "group-relocs"}
+}
+set tmp {
     {"Indirect cross-library function reference (set-up)"
      "-shared" "" "" {arm-lib-plt-2a.s}
      {}
@@ -84,6 +86,9 @@ set armelftests_common_1 {
      "-shared tmpdir/arm-lib-plt-2a.so" "" "" {arm-lib-plt-2b.s}
      {{objdump -dr arm-lib-plt-2.dd} {readelf --relocs arm-lib-plt-2.rd}}
      "arm-lib-plt-2b.so"}
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
     {"Simple static application" "" "" "" {arm-static-app.s}
      {{objdump -fdw arm-static-app.d} {objdump -rw arm-static-app.r}}
      "arm-static-app"}
@@ -105,12 +110,21 @@ set armelftests_common_1 {
     {"arm-rel31" "-static -T arm.ld" "" "" {arm-rel31.s}
      {{objdump -s arm-rel31.d}}
      "arm-rel31"}
+}
+append armelftests_common $tmp
+set tmp {
     {"arm-rel32" "-shared -T arm-dyn.ld --hash-style=sysv" "" "" {arm-rel32.s}
      {{objdump -Rsj.data arm-rel32.d}}
      "arm-rel32"}
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
     {"arm-call" "--no-fix-arm1176 -static -T arm.ld" "" "-meabi=4" {arm-call1.s arm-call2.s}
      {{objdump -d arm-call.d}}
      "arm-call"}
+}
+append armelftests_common $tmp
+set tmp {
     {"TLS shared library" "-shared -T arm-lib.ld --hash-style=sysv" ""
      "" {tls-lib.s}
      {{objdump -fdw tls-lib.d} {objdump -Rw tls-lib.r}}
@@ -123,38 +137,53 @@ set armelftests_common_1 {
      "-shared -T arm-dyn.ld --hash-style=sysv" "" "" {tls-gdesc-got.s}
      {{objdump "-fDR -j .got" tls-gdesc-got.d}}
      "tls-lib2-got.so"}
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
     {"TLS gnu GD to IE relaxation"
-     "-static -T arm-dyn.ld --hash-style=sysv" "" "" {tls-gdierelax.s}
+     "-static -T arm-dyn.ld" "" "" {tls-gdierelax.s}
      {{objdump -fdw tls-gdierelax.d}}
      "tls-app-rel-ie"}
+}
+append armelftests_common $tmp
+set tmp  {
     {"TLS gnu GD to IE shared relaxation"
      "--no-fix-arm1176 -shared -T arm-dyn.ld --hash-style=sysv" ""
      "" {tls-gdierelax2.s}
      {{objdump -fdw tls-gdierelax2.d}}
      "tls-app-rel-ie2"}
-    {"TLS gnu GD to LE relaxation" "-T arm-dyn.ld --hash-style=sysv" ""
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
+    {"TLS gnu GD to LE relaxation" "-T arm-dyn.ld" ""
      "" {tls-gdlerelax.s}
      {{objdump -fdw tls-gdlerelax.d}}
      "tls-app-rel-le"}
+}
+append armelftests_common $tmp
+set tmp {
     {"TLS mixed models shared lib"
      "-shared -T arm-dyn.ld --hash-style=sysv" "" "" {tls-mixed.s}
      {{objdump -Rw tls-mixed.r}}
      "tls-mixed.so"}
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
     {"TLS descseq relaxation"
-     "-T arm-dyn.ld --hash-style=sysv" "" "" {tls-descrelax.s}
+     "-T arm-dyn.ld" "" "" {tls-descrelax.s}
      {{objdump -fdw tls-descrelax.d}}
      "tls-descrelax"}
     {"TLS descseq relaxation v7"
-     "-T arm-dyn.ld --hash-style=sysv" "" "" {tls-descrelax-v7.s}
+     "-T arm-dyn.ld" "" "" {tls-descrelax-v7.s}
      {{objdump -fdw tls-descrelax-v7.d}}
      "tls-descrelax-v7"}
     {"TLS descseq relaxation BE8"
-     "-T arm-dyn.ld --hash-style=sysv -EB --be8" ""
+     "-T arm-dyn.ld -EB --be8" ""
      "-mbig-endian" {tls-descrelax-be8.s}
      {{objdump -fdw tls-descrelax-be8.d}}
      "tls-descrelax-be8"}
     {"TLS descseq relaxation BE32"
-     "-T arm-dyn.ld --hash-style=sysv -EB" ""
+     "-T arm-dyn.ld -EB" ""
      "-mbig-endian" {tls-descrelax-be32.s}
      {{objdump -fdw tls-descrelax-be32.d}}
      "tls-descrelax-be32"}
@@ -203,14 +232,16 @@ set armelftests_common_1 {
      {{objdump -sj.data gc-unwind.d}}
        "gc-unwind"}
 }
+append armelftests_common $tmp
 
-set armelftests_common_2 { 
+set tmp {
     {"script-type" "-static -T script-type.ld" "" "" {script-type.s}
        {{readelf -s script-type.sym}}
        "script-type"}
 }
+if ![istarget "arm*-*-netbsdelf"] { append armelftests_common $tmp }
 
-set armelftests_common_3 {
+set tmp {
     {"callweak" "-static -T arm.ld" "" "" {callweak.s}
      {{objdump -dr callweak.d}}
      "callweak"}
@@ -220,6 +251,9 @@ set armelftests_common_3 {
     {"Data only mapping symbols" "-T data-only-map.ld -Map map" "" "" {data-only-map.s}
      {{objdump -dr data-only-map.d}}
      "data-only-map"}
+}
+append armelftests_common $tmp
+set tmp {
     {"Data only mapping symbols for merged sections" "-T rodata-merge-map.ld" "" "" {rodata-merge-map1.s rodata-merge-map2.s rodata-merge-map3.s}
      {{readelf -s rodata-merge-map.sym}}
      "rodata-merge-map"}
@@ -234,25 +268,40 @@ set armelftests_common_3 {
     {"Simple non-PIC shared library (no PLT check)" "-shared" "" "" {arm-lib.s}
      {{objdump -Rw arm-lib.r}}
      "arm-lib.so"}
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
     {"EABI soft-float ET_EXEC ABI flag" "-T arm.ld" "" "-mfloat-abi=soft -meabi=5" {eabi-soft-float.s}
      {{readelf -h eabi-soft-float.d}}
      "eabi-soft-float"}
     {"EABI hard-float ET_EXEC ABI flag" "-T arm.ld" "" "-mfloat-abi=hard -meabi=5" {eabi-hard-float.s}
      {{readelf -h eabi-hard-float.d}}
      "eabi-hard-float"}
+}
+append armelftests_common $tmp
+set tmp {
     {"EABI hard-float ET_DYN ABI flag" "-shared" "" "-mfloat-abi=hard -meabi=5" {eabi-hard-float.s}
      {{readelf -h eabi-hard-float.d}}
      "eabi-hard-float.so"}
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
     {"EABI ABI flags wrong ABI version" "-T arm.ld" "" "-mfloat-abi=soft -meabi=4" {eabi-soft-float.s}
      {{readelf -h eabi-soft-float-ABI4.d}}
      "eabi-soft-float-no-flags"}
     {"EABI ABI flags ld -r" "-r" "" "-mfloat-abi=soft -meabi=5" {eabi-soft-float.s}
      {{readelf -h eabi-soft-float-r.d}}
      "eabi-soft-float-r.o"}
+}
+append armelftests_common $tmp
+set tmp {
     {"PC-relative in -shared" "-shared --hash-style=sysv" ""
      "" {pcrel-shared.s}
      {{readelf -dr pcrel-shared.rd}}
      "pcrel-shared.so"}
+}
+if [check_shared_lib_support] { append armelftests_common $tmp }
+set tmp {
     {"MOVS thumb1 relocations" "-static -T arm.ld" "" "" {thumb1-movs.s}
      {{objdump -dw thumb1-movs.d}}
      "thumb1-movs"}
@@ -270,13 +319,9 @@ set armelftests_common_3 {
       {{objdump -dw branch-futures.d}}
      "branch-futures"}
 }
+append armelftests_common $tmp
 
-run_ld_link_tests $armelftests_common_1
-if { ![istarget "arm*-*-netbsdelf"] } {
-    run_ld_link_tests $armelftests_common_2
-}
-run_ld_link_tests $armelftests_common_3
-
+run_ld_link_tests $armelftests_common
 
 set armelftests_nonacl {
     {"Thumb-1 BL" "-Ttext 0x1000 --section-start .foo=0x401000" "" "" {thumb1-bl.s}
@@ -291,6 +336,8 @@ set armelftests_nonacl {
     {"jump19" "-static -T arm.ld" "" "" {jump19.s}
      {{objdump -dr jump19.d}}
      "jump19"}
+}
+set tmp {
     {"Thumb and -gc-sections"
      "-shared -T arm-dyn.ld --hash-style=sysv" "" "" {gc-thumb-lib.s}
      {}
@@ -298,7 +345,6 @@ set armelftests_nonacl {
     {"Thumb and -gc-sections" "-pie -T arm.ld -gc-sections tmpdir/gc-thumb-lib.so" "" "" {gc-thumb.s}
      {{readelf --relocs gc-thumb.d}}
      "gc-thumb"}
-
     {"Simple non-PIC shared library" "-shared" "" "" {arm-lib.s}
      {{objdump -fdw arm-lib.d} {objdump -Rw arm-lib.r}}
      "arm-lib.so"}
@@ -308,10 +354,16 @@ set armelftests_nonacl {
     {"Simple dynamic application" "tmpdir/arm-lib.so" "" "" {arm-app.s}
      {{objdump -fdw arm-app.d} {objdump -Rw arm-app.r}}
      "arm-app"}
+}
+if [check_shared_lib_support] { append armelftests_nonacl $tmp }
+set tmp {
     {"Simple static application without .rel.plt in linker script"
        "-T arm-no-rel-plt.ld" "" "" {arm-static-app.s}
      {{objdump -fdw arm-static-app.d} {objdump -rw arm-static-app.r}}
      "arm-static-app-no-rel-plt"}
+}
+append armelftests_nonacl $tmp
+set tmp {
     {"Simple dynamic application without .rel.plt in linker script"
        "tmpdir/arm-lib.so -T arm-no-rel-plt.ld" "" "" {arm-app.s}
      {{readelf -dr arm-no-rel-plt.r}}
@@ -358,6 +410,7 @@ set armelftests_nonacl {
      {{objdump -fdw tls-lib-loc.d} {objdump -Rw tls-lib-loc.r}}
      "tls-lib-loc.so"}
 }
+if [check_shared_lib_support] { append armelftests_nonacl $tmp }
 
 if { ![istarget "arm*-*-nacl*"] } {
     run_ld_link_tests $armelftests_nonacl
index f8cfabbbfbbf78e96897c509c2c69072e9c6310c..9e20d431cb1b11ca93b8c08715547264512da01a 100644 (file)
@@ -1,6 +1,7 @@
 #source: main.s
 #source: gcdfn.s
 #source: hidfn.s
+#target: [check_shared_lib_support]
 #ld: --gc-sections --shared --version-script hideall.ld
 #objdump: -dRT
 # This test is only valid on ELF based ports.
index 5a058185b5942f2263c70eb20a2f7ec386e82ee0..f67b372097b574128ad694ce897f92d7ca8923e2 100644 (file)
@@ -1,4 +1,5 @@
 #name: MOVW/MOVT shared libraries test 1
 #source: movw-shared-1.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #error: .*: relocation R_ARM_MOVW_ABS_NC against `a' can not be used when making a shared object; recompile with -fPIC
index 08ceaf07bd50a887ad2617b95c5b7b1cb8eb17b7..76f5d5c59f9cb6611ef10127c90fd3317e29e9e3 100644 (file)
@@ -1,4 +1,5 @@
 #name: MOVW/MOVT shared libraries test 2
 #source: movw-shared-2.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #error: .*: relocation R_ARM_MOVT_ABS against `b' can not be used when making a shared object; recompile with -fPIC
index 90b9cf148e133c48689d7a5b760e5b805660113f..7dafda30dce21dd38c7cc970845e7372cbc00553 100644 (file)
@@ -1,4 +1,5 @@
 #name: MOVW/MOVT shared libraries test 3
 #source: movw-shared-3.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #error: .*: relocation R_ARM_THM_MOVW_ABS_NC against `c' can not be used when making a shared object; recompile with -fPIC
index cc7a418b5258a2f522538c9d768b6a301cc58c67..fbfd92c1c5b83521ef73ff4ebefb91b333a47f20 100644 (file)
@@ -1,4 +1,5 @@
 #name: MOVW/MOVT shared libraries test 4
 #source: movw-shared-4.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #error: .*: relocation R_ARM_THM_MOVT_ABS against `d' can not be used when making a shared object; recompile with -fPIC
index 7ea031c79b4614b6d6527e81aeb7330caafa77d9..d90085b9b927c2cbce40a7b8f56dcfded93e3a0e 100644 (file)
@@ -1,5 +1,6 @@
 #source: pie-bind-locally-a.s
 #source: pie-bind-locally-b.s
+#target: [check_shared_lib_support]
 #ld: -pie
 #readelf: -Wr
 
index 51c51c6b95273bbf554fe172a0b829dc97fc346d..3f266dea1b4124846b6cb9ecd8fe600f0eddd7b4 100644 (file)
@@ -1,3 +1,4 @@
+#target: [check_shared_lib_support]
 #ld: -shared
 #readelf: -r -W
 #...
index 475b3242c991af8945ff2f5f065807e67832559c..8e1962ba4acc6ba9c4493e3822975e021253786c 100644 (file)
@@ -1,3 +1,4 @@
 #source: rel32-reject-pie.s
+#target: [check_shared_lib_support]
 #ld: -pie
 #error: .*relocation R_ARM_REL32.*can not.*PIE executable.*
index c82fd4df6abacdfa17d7ce991e4103126a2b409e..b7bd469adff9d2da60e71e3567b5730b15a845fd 100644 (file)
@@ -1,3 +1,4 @@
 #source: rel32-reject.s
+#target: [check_shared_lib_support]
 #ld: -shared
 #error: .*relocation R_ARM_REL32.*can not.*shared object.*
index c501aa2c1f5702247c4d45cd653c2fdba852291d..af92bbd59e855d98d064afd95b340e79e6e7aae0 100644 (file)
@@ -1,5 +1,6 @@
 #source: thumb2-bl-undefweak.s
 #as:
+#target: [check_shared_lib_support]
 #ld: -shared
 #objdump: -dr
 #...
index 806f66c65166ce2bf1898bf1054686f10315b6a4..87e0b8f89ee42522a0f736de32a5a88e0943b688 100644 (file)
@@ -1,5 +1,6 @@
 #source: thumb2-bl-undefweak1.s
 #as:
+#target: [check_shared_lib_support]
 #ld: -shared
 #objdump: -dr
 #...