aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite
diff options
context:
space:
mode:
authorTamar Christina <tamar.christina@arm.com>2020-08-14 07:51:03 +0100
committerTamar Christina <tamar.christina@arm.com>2020-08-14 07:52:00 +0100
commit95c210664d3eedad480fbade0eceb81af796259d (patch)
treed1f889ebda697f2a4f1da5d00112d89dbb9f476d /ld/testsuite
parentdac736f6a1c1dbd7f8a30fafac52081886a90122 (diff)
downloadgdb-95c210664d3eedad480fbade0eceb81af796259d.zip
gdb-95c210664d3eedad480fbade0eceb81af796259d.tar.gz
gdb-95c210664d3eedad480fbade0eceb81af796259d.tar.bz2
AArch64: Relax thumb-plt testcases regexpr.
The regexpr in these two files are a bit strict in that they don't account for the slight changes in tags in certain arm targets which cause our address offsets to change. This changes the tests to allow slight movement in locations while still strictly checking the rest. ld/ChangeLog: 2020-08-03 Tamar Christina <tamar.christina@arm.com> * testsuite/ld-arm/thumb-plt-got.d: Relax regexpr. * testsuite/ld-arm/thumb-plt.d: Likewise.
Diffstat (limited to 'ld/testsuite')
-rw-r--r--ld/testsuite/ld-arm/thumb-plt-got.d4
-rw-r--r--ld/testsuite/ld-arm/thumb-plt.d4
2 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/ld-arm/thumb-plt-got.d b/ld/testsuite/ld-arm/thumb-plt-got.d
index e65aba9..370a4e2 100644
--- a/ld/testsuite/ld-arm/thumb-plt-got.d
+++ b/ld/testsuite/ld-arm/thumb-plt-got.d
@@ -6,9 +6,9 @@
Relocation section '.rel.plt' at offset 0x108 contains 1 entry:
Offset Info Type Sym.Value Sym. Name
-000101c4 00000116 R_ARM_JUMP_SLOT 00000000 foo
+000101.+ 00000116 R_ARM_JUMP_SLOT 00000000 foo
Hex dump of section '.got':
NOTE: This section has relocations against it, but these have NOT been applied to this dump.
- 0x000101b8 40010100 00000000 00000000 11010000 @...............
+ 0x000101.+ 40010100 00000000 00000000 11010000 @...............
diff --git a/ld/testsuite/ld-arm/thumb-plt.d b/ld/testsuite/ld-arm/thumb-plt.d
index 441325b..aa9c61f 100644
--- a/ld/testsuite/ld-arm/thumb-plt.d
+++ b/ld/testsuite/ld-arm/thumb-plt.d
@@ -14,10 +14,10 @@ Disassembly of section \.plt:
112: f8df e008 ldr.w lr, \[pc, #8\] ; 11c <\.plt\+0xc>
116: 44fe add lr, pc
118: f85e ff08 ldr.w pc, \[lr, #8\]!
- 11c: 0001009c \.word 0x0001009c
+ 11c: 000100(.+) \.word 0x000100\1
00000120 <foo@plt>:
- 120: f240 0c98 movw ip, #152 ; 0x98
+ 120: f240 0c.+ movw ip, #[0-9]+ ; 0x.+
124: f2c0 0c01 movt ip, #1
128: 44fc add ip, pc
12a: f8dc f000 ldr.w pc, \[ip\]