aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-07-03 15:29:13 +0930
committerAlan Modra <amodra@gmail.com>2020-07-03 17:15:16 +0930
commitb657622c3ecd810064f17f279b0a56648b4dc2d6 (patch)
tree084f31e5e3f95a98c8a77d717205865bace3c6b0 /ld/testsuite/ld-sh
parent6d2f9adc6709572e9ef70f11961819e27b918568 (diff)
downloadbinutils-b657622c3ecd810064f17f279b0a56648b4dc2d6.zip
binutils-b657622c3ecd810064f17f279b0a56648b4dc2d6.tar.gz
binutils-b657622c3ecd810064f17f279b0a56648b4dc2d6.tar.bz2
Re: Change readelf's display of symbol names
Fixes some fallout from git commit 0942c7ab94e5. PR 26028 gas/ * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options. gold/ * testsuite/Makefile.am (file_in_many_sections.stdout): Add -W to readelf options. * testsuite/Makefile.in: Regenerate. ld/ * testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf when dumping relocs. * testsuite/ld-i386/i386.exp (vxworks1): Likewise. * testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise. * testsuite/ld-sparc/sparc.exp (vxworks1): Likewise. * testsuite/ld-arm/vxworks1.rd: Adjust to suit. * testsuite/ld-i386/vxworks1.rd: Adjust. * testsuite/ld-sh/vxworks1.rd: Adjust. * testsuite/ld-sparc/vxworks1.rd: Adjust.
Diffstat (limited to 'ld/testsuite/ld-sh')
-rw-r--r--ld/testsuite/ld-sh/sh-vxworks.exp2
-rw-r--r--ld/testsuite/ld-sh/vxworks1.rd26
2 files changed, 14 insertions, 14 deletions
diff --git a/ld/testsuite/ld-sh/sh-vxworks.exp b/ld/testsuite/ld-sh/sh-vxworks.exp
index 48cb332..0f1ef59 100644
--- a/ld/testsuite/ld-sh/sh-vxworks.exp
+++ b/ld/testsuite/ld-sh/sh-vxworks.exp
@@ -36,7 +36,7 @@ foreach { gas_option ld_option suffix } $endians {
{"VxWorks executable test 1 (dynamic)" \
"tmpdir/libvxworks1.so -Tvxworks1.ld --hash-style=sysv -q --force-dynamic $ld_option" ""
"$gas_option" {vxworks1.s}
- {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1$suffix.dd}}
+ {{readelf {--relocs --wide} vxworks1.rd} {objdump -dr vxworks1$suffix.dd}}
"vxworks1"}
{"VxWorks executable test 2 (dynamic)" \
"-Tvxworks1.ld --hash-style=sysv -q --force-dynamic $ld_option" ""
diff --git a/ld/testsuite/ld-sh/vxworks1.rd b/ld/testsuite/ld-sh/vxworks1.rd
index ee50c74..d95ebd7 100644
--- a/ld/testsuite/ld-sh/vxworks1.rd
+++ b/ld/testsuite/ld-sh/vxworks1.rd
@@ -1,19 +1,19 @@
Relocation section '\.rela\.plt' at offset .* contains 2 entries:
- Offset Info Type Sym\.Value Sym\. Name \+ Addend
-0008140c .*a4 R_SH_JMP_SLOT 0008080c _sglobal \+ 0
-00081410 .*a4 R_SH_JMP_SLOT 00080824 _foo \+ 0
+ Offset +Info +Type +Sym.*
+0008140c +.*a4 R_SH_JMP_SLOT +0008080c +_sglobal \+ 0
+00081410 +.*a4 R_SH_JMP_SLOT +00080824 +_foo \+ 0
Relocation section '\.rela\.text' at offset .* contains 3 entries:
- Offset Info Type Sym.Value Sym. Name \+ Addend
-00080c1c .*01 R_SH_DIR32 00080800 \.plt \+ 24
-00080c20 .*01 R_SH_DIR32 00080800 \.plt \+ c
-00080c24 .*01 R_SH_DIR32 00080c28 _sexternal \+ 0
+ Offset +Info +Type +Sym.*
+00080c1c +.*01 R_SH_DIR32 +00080800 +\.plt \+ 24
+00080c20 +.*01 R_SH_DIR32 +00080800 +\.plt \+ c
+00080c24 +.*01 R_SH_DIR32 +00080c28 +_sexternal \+ 0
Relocation section '\.rela\.plt\.unloaded' at offset .* contains 5 entries:
- Offset Info Type Sym\.Value Sym\. Name \+ Addend
-00080808 .*01 R_SH_DIR32 00081400 _GLOBAL_OFFSET_TABLE_ \+ 8
-00080814 .*01 R_SH_DIR32 00081400 _GLOBAL_OFFSET_TABLE_ \+ c
-0008140c .*01 R_SH_DIR32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 0
-0008082c .*01 R_SH_DIR32 00081400 _GLOBAL_OFFSET_TABLE_ \+ 10
-00081410 .*01 R_SH_DIR32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 0
+ Offset +Info +Type +Sym.*
+00080808 +.*01 R_SH_DIR32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ 8
+00080814 +.*01 R_SH_DIR32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ c
+0008140c +.*01 R_SH_DIR32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 0
+0008082c +.*01 R_SH_DIR32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ 10
+00081410 +.*01 R_SH_DIR32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 0