[PATCH] ld-aarch64: check support before launching dt_relr tests

Alan Modra amodra@gmail.com
Tue Jun 11 11:22:55 GMT 2024


On Sat, Jun 08, 2024 at 08:36:49AM +0930, Alan Modra wrote:
> On Fri, Jun 07, 2024 at 04:00:48PM +0200, Clément Chigot wrote:
> > 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.
> 
> Thanks, please apply.

Tweak commit db335d7e0a so that support_dt_relr returns false for
aarch64*-*-*ilp32.

diff --git a/binutils/testsuite/lib/binutils-common.exp b/binutils/testsuite/lib/binutils-common.exp
index bf291d731e2..ebc4c735855 100644
--- a/binutils/testsuite/lib/binutils-common.exp
+++ b/binutils/testsuite/lib/binutils-common.exp
@@ -473,7 +473,7 @@ proc supports_dt_relr {} {
     if { ([istarget x86_64-*-*]
 	  || [istarget i?86-*-*]
 	  || [istarget powerpc64*-*-*]
-	  || [istarget aarch64*-*-*])
+	  || ([istarget aarch64*-*-*] && ![istarget *-*-*ilp32]))
 	 && ([istarget *-*-linux*]
 	     || [istarget *-*-gnu*]) } {
 	return 1


-- 
Alan Modra


More information about the Binutils mailing list