diff options
author | Clément Chigot <chigot@adacore.com> | 2024-06-07 15:42:52 +0200 |
---|---|---|
committer | Clément Chigot <chigot@adacore.com> | 2024-06-10 09:02:08 +0200 |
commit | db335d7e0ad5d7422299e91e883bc87236a67f2f (patch) | |
tree | a3b35153c93406e7851d662cd12de1846664e07a /ld | |
parent | 4186bc40b67728ed3f35fc65218ffedaa34f36df (diff) | |
download | gdb-db335d7e0ad5d7422299e91e883bc87236a67f2f.zip gdb-db335d7e0ad5d7422299e91e883bc87236a67f2f.tar.gz gdb-db335d7e0ad5d7422299e91e883bc87236a67f2f.tar.bz2 |
ld-aarch64: check support before launching dt_relr tests
Not all aarch64 targets supports dt_relr as this requires some
mechanisms on the OS side.
Adjust support_dt_relr helper and use it in aarch64-elf.exp.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ld-aarch64/aarch64-elf.exp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/ld/testsuite/ld-aarch64/aarch64-elf.exp b/ld/testsuite/ld-aarch64/aarch64-elf.exp index 0e70ca3..dc5eed5 100644 --- a/ld/testsuite/ld-aarch64/aarch64-elf.exp +++ b/ld/testsuite/ld-aarch64/aarch64-elf.exp @@ -468,15 +468,17 @@ run_dump_test_lp64 "bti-far-2" run_dump_test_lp64 "bti-far-opt" run_dump_test_lp64 "bti-far-3" -run_dump_test_lp64 "relr-align" -run_dump_test_lp64 "relr-data-pie" -run_dump_test_lp64 "relr-data-shared" -run_dump_test_lp64 "relr-got-pie" -run_dump_test_lp64 "relr-got-shared" -run_dump_test_lp64 "relr-text-pie" -run_dump_test_lp64 "relr-text-shared" -run_dump_test_lp64 "relr-discard-pie" -run_dump_test_lp64 "relr-discard-shared" +if { [supports_dt_relr] } { + run_dump_test_lp64 "relr-align" + run_dump_test_lp64 "relr-data-pie" + run_dump_test_lp64 "relr-data-shared" + run_dump_test_lp64 "relr-got-pie" + run_dump_test_lp64 "relr-got-shared" + run_dump_test_lp64 "relr-text-pie" + run_dump_test_lp64 "relr-text-shared" + run_dump_test_lp64 "relr-discard-pie" + run_dump_test_lp64 "relr-discard-shared" +} if { ![skip_sframe_tests] } { run_dump_test "sframe-simple-1" |