]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
ld/testsuite: adjust ld-aarch64 tests for aarch64nto address users/helflym/try-aarch64nto
authorClément Chigot <chigot@adacore.com>
Mon, 31 Oct 2022 14:36:36 +0000 (15:36 +0100)
committerClément Chigot <chigot@adacore.com>
Tue, 28 Feb 2023 14:14:44 +0000 (15:14 +0100)
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.

ld/testsuite/ld-aarch64/ifunc-1-local.d
ld/testsuite/ld-aarch64/ifunc-1.d
ld/testsuite/ld-aarch64/ifunc-2-local.d
ld/testsuite/ld-aarch64/ifunc-2.d
ld/testsuite/ld-aarch64/ifunc-21.d
ld/testsuite/ld-aarch64/ifunc-3a.d

index ebd798b14b3db8bf7cbd3f17f1e2054963aa16f7..89a3b78af5752e1719e9a64b02a565c156f39ac4 100644 (file)
@@ -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
index 0f7a3fab3355b140a8eba80bce08eb08e454c50a..57c5935fed1be8598255f9b85d585a78ee054d24 100644 (file)
@@ -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
index cb130a6acf5500ed99e4f8c8aa191a00ec5bff5f..968039fadfbc0cdc5afa3e4d9622eefb8aa5a629 100644 (file)
@@ -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
index ed8d47dfbbf752b6ae1340a806c47306f8835e96..463facb3a340d3174d3f1dff20753b4452e7fb7f 100644 (file)
@@ -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
index ff4a82a5fe824b73173321da307013f9eaf416ee..62203aa437e2f9b1c66a5b818ed7f404d9f67310 100644 (file)
@@ -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
index 7cb854db23a2973ae896bbdabd265be506d4ecf6..ba02dbd67994dcf0c1729b2804eafd99f7525157 100644 (file)
@@ -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