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)
commit3c3358ca1aab5d5ae59f4503e4781b4ebe245778
tree907454666206b741a4a99fa5ee16405e3ed62a10
parentd70fc6126f1f495c0c08c335fe4689dd32cf8471
aarch64 and arm testsuite fixes for targets lacking shared libs

* 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