summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Chigot <chigot@adacore.com>2022-10-31 15:36:36 +0100
committerClément Chigot <chigot@adacore.com>2023-02-28 15:14:44 +0100
commit4bb646c3990a837326df606a836741ea9a294caa (patch)
tree49eecb52da3faee32b7beab6b3198d9f54b0e79d
parent06bc164e6c736e3cbde2af7834ac14b7dbba417e (diff)
downloadbinutils-gdb-users/helflym/try-aarch64nto.tar.gz
ld/testsuite: adjust ld-aarch64 tests for aarch64nto addressusers/helflym/try-aarch64nto
Some tests are refering to the address of their symbols. These are dependent of the emulation and must be adjusted when enabling them for a new one. ld/ChangeLog: * testsuite/ld-aarch64/ifunc-1-local.d: Adjust for aarch64nto addresses. * testsuite/ld-aarch64/ifunc-1.d: Likewise. * testsuite/ld-aarch64/ifunc-2-local.d: Likewise. * testsuite/ld-aarch64/ifunc-2.d: Likewise. * testsuite/ld-aarch64/ifunc-21.d: Likewise. * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-1-local.d4
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-1.d4
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-2-local.d6
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-2.d6
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-21.d4
-rw-r--r--ld/testsuite/ld-aarch64/ifunc-3a.d4
6 files changed, 14 insertions, 14 deletions
diff --git a/ld/testsuite/ld-aarch64/ifunc-1-local.d b/ld/testsuite/ld-aarch64/ifunc-1-local.d
index ebd798b14b3..89a3b78af57 100644
--- a/ld/testsuite/ld-aarch64/ifunc-1-local.d
+++ b/ld/testsuite/ld-aarch64/ifunc-1-local.d
@@ -3,7 +3,7 @@
#objdump: -dw
#...
-0+(110|180|1a0) <((__GI_)?foo|_btext)>:
+0+(110|180|1a0|240) <((__GI_)?foo|_btext)>:
#...
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+(0x110|0x180|0x1a0)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+(0x110|0x180|0x1a0|0x240)@plt>
#pass
diff --git a/ld/testsuite/ld-aarch64/ifunc-1.d b/ld/testsuite/ld-aarch64/ifunc-1.d
index 0f7a3fab335..57c5935fed1 100644
--- a/ld/testsuite/ld-aarch64/ifunc-1.d
+++ b/ld/testsuite/ld-aarch64/ifunc-1.d
@@ -3,7 +3,7 @@
#objdump: -dw
#...
-0+(130|1a0|1c8) <foo>:
+0+(130|1a0|1c8|1d0) <foo>:
#...
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8|1d0)@plt>
#pass
diff --git a/ld/testsuite/ld-aarch64/ifunc-2-local.d b/ld/testsuite/ld-aarch64/ifunc-2-local.d
index cb130a6acf5..968039fadfb 100644
--- a/ld/testsuite/ld-aarch64/ifunc-2-local.d
+++ b/ld/testsuite/ld-aarch64/ifunc-2-local.d
@@ -3,9 +3,9 @@
#objdump: -dw
#...
-0+(110|180|1a0) <(__GI_foo|_btext)>:
+0+(110|180|1a0|240) <(__GI_foo|_btext)>:
#...
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(110|180|1a0)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(110|180|1a0|240)@plt>
[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*>
-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(100|170|190)
+[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(100|170|190|230)
#pass
diff --git a/ld/testsuite/ld-aarch64/ifunc-2.d b/ld/testsuite/ld-aarch64/ifunc-2.d
index ed8d47dfbbf..463facb3a34 100644
--- a/ld/testsuite/ld-aarch64/ifunc-2.d
+++ b/ld/testsuite/ld-aarch64/ifunc-2.d
@@ -3,9 +3,9 @@
#objdump: -dw
#...
-0+(130|1a0|1c8) <foo>:
+0+(130|1a0|1c8|1d0) <foo>:
#...
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(130|1a0|1c8|1d0)@plt>
[ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+x0, 0 <.*>
-[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(120|190|1b8)
+[ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+x0, x0, #0x(120|190|1b8|1c0)
#pass
diff --git a/ld/testsuite/ld-aarch64/ifunc-21.d b/ld/testsuite/ld-aarch64/ifunc-21.d
index ff4a82a5fe8..62203aa437e 100644
--- a/ld/testsuite/ld-aarch64/ifunc-21.d
+++ b/ld/testsuite/ld-aarch64/ifunc-21.d
@@ -11,7 +11,7 @@ Contents of section .text:
[0-9a-f]+ .*
Contents of section .got.plt:
[0-9a-f]+ 0+ 0+ 0+ 0+ .*
- (10298|102b8) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .*
+ (10298|102b8|10358) 0+ 0+ [0-9a-f]+ [0-9a-f]+ .*
Disassembly of section .text:
@@ -20,7 +20,7 @@ Disassembly of section .text:
.* <bar>:
.*: 90000080 adrp x0, 10000 <.*>
- .*: .* ldr x0, \[x0, #(672|704)\]
+ .*: .* ldr x0, \[x0, #(672|704|864)\]
.*: d65f03c0 ret
#pass
diff --git a/ld/testsuite/ld-aarch64/ifunc-3a.d b/ld/testsuite/ld-aarch64/ifunc-3a.d
index 7cb854db23a..ba02dbd6799 100644
--- a/ld/testsuite/ld-aarch64/ifunc-3a.d
+++ b/ld/testsuite/ld-aarch64/ifunc-3a.d
@@ -4,7 +4,7 @@
#objdump: -dw
#...
-0+(150|1d0|1e8) <(__GI_foo|_btext)>:
+0+(150|1d0|1e8|1f0) <(__GI_foo|_btext)>:
#...
-[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(150|1d0|1e8)@plt>
+[ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0x(150|1d0|1e8|1f0)@plt>
#pass