[binutils-gdb/binutils-2_35-branch] AArch64: Relax thumb-plt testcases regexpr.
Tamar Christina
tnfchris@sourceware.org
Fri Aug 14 06:56:45 GMT 2020
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=84bbb9672e940567fe4c6aefc8a74a365a1db813
commit 84bbb9672e940567fe4c6aefc8a74a365a1db813
Author: Tamar Christina <tamar.christina@arm.com>
Date: Fri Aug 14 07:51:03 2020 +0100
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.
(cherry picked from commit 95c210664d3eedad480fbade0eceb81af796259d)
Diff:
---
ld/ChangeLog | 8 ++++++++
ld/testsuite/ld-arm/thumb-plt-got.d | 4 ++--
ld/testsuite/ld-arm/thumb-plt.d | 4 ++--
3 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 046a9076a51..e64e28e256b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,11 @@
+2020-08-14 Tamar Christina <tamar.christina@arm.com>
+
+ Backport from master.
+ 2020-08-14 Tamar Christina <tamar.christina@arm.com>
+
+ * testsuite/ld-arm/thumb-plt-got.d: Relax regexpr.
+ * testsuite/ld-arm/thumb-plt.d: Likewise.
+
2020-08-07 David Faust <david.faust@oracle.com>
* testsuite/ld-bpf/call-3.s: New file.
diff --git a/ld/testsuite/ld-arm/thumb-plt-got.d b/ld/testsuite/ld-arm/thumb-plt-got.d
index e65aba9e2f8..370a4e2c603 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 441325b21db..aa9c61f84db 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\]
More information about the Binutils-cvs
mailing list