aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorShahab Vahedi <shahab@synopsys.com>2020-11-16 13:48:49 +0200
committerClaudiu Zissulescu <claziss@synopsys.com>2020-11-16 13:48:49 +0200
commit315d05eb3f44a162711e2edc3369bf7750b1b9a9 (patch)
treea16d312ce85048e5a35c15f3c2ccfa6635430b4c /ld
parent5778e0dd5d7bb872398a136b6504b9b99d5ce434 (diff)
downloadgdb-315d05eb3f44a162711e2edc3369bf7750b1b9a9.zip
gdb-315d05eb3f44a162711e2edc3369bf7750b1b9a9.tar.gz
gdb-315d05eb3f44a162711e2edc3369bf7750b1b9a9.tar.bz2
ld: Fix the tls_ie-01 test for arc
The purpose of the test is to look for entries of "foo" and "bar" in the ".got". The old "objdump -s ..." has been replaced with "objdump -D ..." to inspect the final executable. A sample output looks like: ------------------------8<------------------------ $ arc-elf32-objdump -D -j .got tls_ie-01 tls_ie-01: file format elf32-littlearc Disassembly of section .got: 00002110 <_GLOBAL_OFFSET_TABLE_>: ... 211c: 08 00 00 00 .word 0x00000008 2120: 0c 00 00 00 .word 0x0000000c ------------------------>8------------------------ ld/ * testsuite/ld-arc/tls_ie-01.d: Update the dump command.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-arc/tls_ie-01.d11
2 files changed, 11 insertions, 4 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 2ae5b487..2cfa245 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2020-11-16 Shahab Vahedi <shahab@synopsys.org>
+
+ * testsuite/ld-arc/tls_ie-01.d: Update the dump command.
+
2020-11-14 Borislav Petkov <bp@suse.de>
* testsuite/ld-x86-64/pe-x86-64-4.od: Adjust regexes.
diff --git a/ld/testsuite/ld-arc/tls_ie-01.d b/ld/testsuite/ld-arc/tls_ie-01.d
index e4af7c2..319cb9e 100644
--- a/ld/testsuite/ld-arc/tls_ie-01.d
+++ b/ld/testsuite/ld-arc/tls_ie-01.d
@@ -1,10 +1,13 @@
#source: tls_ie-01.s
#as: -mcpu=arc700
#ld: -static
-#objdump: -s -j .got
-#xfail: arc*-*-elf*
+#objdump: -D -j .got
[^:]+: file format elf32-.*arc
-Contents of section \.got:
- [0-9a-f]+ [08]+ [0c]+ +.+
+
+Disassembly of section \.got:
+[0-9a-f]+ <_GLOBAL_OFFSET_TABLE_>:
+\s+...
+\s+[0-9a-f]+:\s+08 00 00 00.*
+\s+[0-9a-f]+:\s+0c 00 00 00.*