From db335d7e0ad5d7422299e91e883bc87236a67f2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Chigot?= Date: Fri, 7 Jun 2024 15:42:52 +0200 Subject: 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. --- binutils/testsuite/lib/binutils-common.exp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'binutils') diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp index 2fca43b..bf291d7 100644 --- a/binutils/testsuite/lib/binutils-common.exp +++ b/binutils/testsuite/lib/binutils-common.exp @@ -472,7 +472,8 @@ proc supports_persistent_section {} { proc supports_dt_relr {} { if { ([istarget x86_64-*-*] || [istarget i?86-*-*] - || [istarget powerpc64*-*-*]) + || [istarget powerpc64*-*-*] + || [istarget aarch64*-*-*]) && ([istarget *-*-linux*] || [istarget *-*-gnu*]) } { return 1 -- cgit v1.1