[binutils-gdb] aarch64: Fix PAuth_LR tests for aarch64-pe

Alice Carlotti acarlotti@sourceware.org
Tue Nov 10 05:42:07 GMT 2026


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3f5e618fff28ac0b66575708b2e8b3214dad0602

commit 3f5e618fff28ac0b66575708b2e8b3214dad0602
Author: Muhammad Kamran <muhammad.kamran@arm.com>
Date:   Tue Oct 20 13:12:19 2026 +0000

    aarch64: Fix PAuth_LR tests for aarch64-pe
    
    The tests used .balign 0x40000 which resulted in an error on aarch64-pe
    as 2**18 alignment is not representable on aarch64-pe target.
    
    Fix it by using .org directive and modify the test's expected output
    to match PE/COFF,s .text+... spelling.

Diff:
---
 gas/testsuite/gas/aarch64/pauth_lr-bad.s | 2 +-
 gas/testsuite/gas/aarch64/pauth_lr.d     | 6 +++---
 gas/testsuite/gas/aarch64/pauth_lr.s     | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/gas/testsuite/gas/aarch64/pauth_lr-bad.s b/gas/testsuite/gas/aarch64/pauth_lr-bad.s
index 019eedee342..ce381f297c8 100644
--- a/gas/testsuite/gas/aarch64/pauth_lr-bad.s
+++ b/gas/testsuite/gas/aarch64/pauth_lr-bad.s
@@ -19,7 +19,7 @@ lr_signing:
 	retaasppc .+0xc // future PC target is invalid: encoded offset would be negative
 	retaasppc external_symbol
 
-	.balign 0x40000 // NOP filling
+	.org 0x40000, 0
 
 	retaasppc lr_signing // the distance between the label and the reta<k>sppc instruction
 			     // is above the limit that can be encoded (=0x3fffc).
diff --git a/gas/testsuite/gas/aarch64/pauth_lr.d b/gas/testsuite/gas/aarch64/pauth_lr.d
index cd224169ea4..ae59f207600 100644
--- a/gas/testsuite/gas/aarch64/pauth_lr.d
+++ b/gas/testsuite/gas/aarch64/pauth_lr.d
@@ -31,8 +31,8 @@ Disassembly of section \.text:
       50:	5500001f 	retaasppc	50 <lr_signing\+0x10>
       54:	5500001f 	retaasppc	54 <lr_signing\+0x14>
       58:	5500003f 	retaasppc	54 <lr_signing\+0x14>
-      5c:	5500011f 	retaasppc	3c <lr_signing-0x4>
-      60:	550002df 	retaasppc	8 <lr_signing-0x38>
+      5c:	5500011f 	retaasppc	3c <(lr_signing-0x4|\.text\+0x3c)>
+      60:	550002df 	retaasppc	8 <(lr_signing-0x38|\.text\+0x8)>
 #...
    40000:	55091a7f 	retaasppc	2dcb4 <lr_signing\+0x2dc74>
-   40004:	551fffff 	retaasppc	8 <lr_signing-0x38>
+   40004:	551fffff 	retaasppc	8 <(lr_signing-0x38|\.text\+0x8)>
diff --git a/gas/testsuite/gas/aarch64/pauth_lr.s b/gas/testsuite/gas/aarch64/pauth_lr.s
index 495446b52fb..7a176eef6e8 100644
--- a/gas/testsuite/gas/aarch64/pauth_lr.s
+++ b/gas/testsuite/gas/aarch64/pauth_lr.s
@@ -42,7 +42,7 @@ lr_signing:
 	retaasppc 0x20
 	retaasppc .-0x58 // point to pacm
 
-	.balign 0x40000 // NOP filling
+	.org 0x40000, 0
 
 	retaasppc 0x1234c // a random value in the valid range
 	retaasppc 0x3fffc // max


More information about the Binutils-cvs mailing list