GNU Binutils with patches for OS216
Revision | b657622c3ecd810064f17f279b0a56648b4dc2d6 (tree) |
---|---|
Time | 2020-07-03 16:45:16 |
Author | Alan Modra <amodra@gmai...> |
Commiter | Alan Modra |
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.
@@ -1,3 +1,8 @@ | ||
1 | +2020-07-03 Alan Modra <amodra@gmail.com> | |
2 | + | |
3 | + PR 26028 | |
4 | + * testsuite/gas/ia64/unwind-ilp32.d: Add -T to readelf options. | |
5 | + | |
1 | 6 | 2020-07-02 H.J. Lu <hongjiu.lu@intel.com> |
2 | 7 | |
3 | 8 | * config/tc-i386.c (build_modrm_byte): Check vexswapsources to |
@@ -1,4 +1,4 @@ | ||
1 | -#readelf: -S | |
1 | +#readelf: -ST | |
2 | 2 | #name: ia64 unwind section (ilp32) |
3 | 3 | #as: -milp32 |
4 | 4 | #source: unwind.s |
@@ -1,3 +1,10 @@ | ||
1 | +2020-07-03 Alan Modra <amodra@gmail.com> | |
2 | + | |
3 | + PR 26028 | |
4 | + * testsuite/Makefile.am (file_in_many_sections.stdout): Add -W | |
5 | + to readelf options. | |
6 | + * testsuite/Makefile.in: Regenerate. | |
7 | + | |
1 | 8 | 2020-06-26 Nick Alcock <nick.alcock@oracle.com> |
2 | 9 | |
3 | 10 | * configure.ac: Check for bswap_16, bswap_32, and bswap_64 decls. |
@@ -1479,7 +1479,7 @@ file_in_many_sections.o: file_in_many_sections.c many_sections_define.h | ||
1479 | 1479 | file_in_many_sections: file_in_many_sections.o gcctestdir/ld |
1480 | 1480 | $(LINK) file_in_many_sections.o -Wl,--gc-sections |
1481 | 1481 | file_in_many_sections.stdout: file_in_many_sections |
1482 | - $(TEST_READELF) -s $< > $@ | |
1482 | + $(TEST_READELF) -sW $< > $@ | |
1483 | 1483 | |
1484 | 1484 | check_PROGRAMS += initpri1 |
1485 | 1485 | initpri1_SOURCES = initpri1.c |
@@ -8521,7 +8521,7 @@ uninstall-am: | ||
8521 | 8521 | @GCC_TRUE@@NATIVE_LINKER_TRUE@file_in_many_sections: file_in_many_sections.o gcctestdir/ld |
8522 | 8522 | @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(LINK) file_in_many_sections.o -Wl,--gc-sections |
8523 | 8523 | @GCC_TRUE@@NATIVE_LINKER_TRUE@file_in_many_sections.stdout: file_in_many_sections |
8524 | -@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_READELF) -s $< > $@ | |
8524 | +@GCC_TRUE@@NATIVE_LINKER_TRUE@ $(TEST_READELF) -sW $< > $@ | |
8525 | 8525 | @GCC_TRUE@@NATIVE_LINKER_TRUE@debug_msg.o: debug_msg.cc |
8526 | 8526 | @GCC_TRUE@@NATIVE_LINKER_TRUE@ $(CXXCOMPILE) -O0 -g -c -w -o $@ $(srcdir)/debug_msg.cc |
8527 | 8527 | @GCC_TRUE@@NATIVE_LINKER_TRUE@odr_violation1.o: odr_violation1.cc |
@@ -1,3 +1,16 @@ | ||
1 | +2020-07-03 Alan Modra <amodra@gmail.com> | |
2 | + | |
3 | + PR 26028 | |
4 | + * testsuite/ld-arm/arm-elf.exp (vxworks1): Pass --wide to readelf | |
5 | + when dumping relocs. | |
6 | + * testsuite/ld-i386/i386.exp (vxworks1): Likewise. | |
7 | + * testsuite/ld-sh/sh-vxworks.exp (vxworks1): Likewise. | |
8 | + * testsuite/ld-sparc/sparc.exp (vxworks1): Likewise. | |
9 | + * testsuite/ld-arm/vxworks1.rd: Adjust to suit. | |
10 | + * testsuite/ld-i386/vxworks1.rd: Adjust. | |
11 | + * testsuite/ld-sh/vxworks1.rd: Adjust. | |
12 | + * testsuite/ld-sparc/vxworks1.rd: Adjust. | |
13 | + | |
1 | 14 | 2020-07-02 Nick Clifton <nickc@redhat.com> |
2 | 15 | |
3 | 16 | PR 26028 |
@@ -30,7 +30,7 @@ if {[istarget "arm-*-vxworks"]} { | ||
30 | 30 | {"VxWorks executable test 1 (dynamic)" |
31 | 31 | "tmpdir/libvxworks1.so -Tvxworks1.ld --hash-style=sysv -q --force-dynamic" "" |
32 | 32 | "" {vxworks1.s} |
33 | - {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}} | |
33 | + {{readelf {--relocs --wide} vxworks1.rd} {objdump -dr vxworks1.dd}} | |
34 | 34 | "vxworks1"} |
35 | 35 | {"VxWorks executable test 2 (dynamic)" \ |
36 | 36 | "-Tvxworks1.ld --hash-style=sysv -q --force-dynamic" "" |
@@ -1,19 +1,19 @@ | ||
1 | 1 | |
2 | 2 | Relocation section '\.rela\.plt' at offset .* contains 2 entries: |
3 | - Offset Info Type Sym\.Value Sym\. Name \+ Addend | |
4 | -0008140c .*16 R_ARM_JUMP_SLOT 000..... sglobal \+ 0 | |
5 | -00081410 .*16 R_ARM_JUMP_SLOT 000..... foo \+ 0 | |
3 | + Offset +Info +Type +Sym.* | |
4 | +0008140c +.*16 R_ARM_JUMP_SLOT +000..... +sglobal \+ 0 | |
5 | +00081410 +.*16 R_ARM_JUMP_SLOT +000..... +foo \+ 0 | |
6 | 6 | |
7 | 7 | Relocation section '\.rela\.text' at offset .* contains 3 entries: |
8 | - Offset Info Type Sym.Value Sym. Name \+ Addend | |
9 | -00080c00 .*01 R_ARM_PC24 00080800 \.plt \+ 20 | |
10 | -00080c04 .*01 R_ARM_PC24 000..... sexternal - 8 | |
11 | -00080c08 .*01 R_ARM_PC24 00080800 \.plt \+ 8 | |
8 | + Offset +Info +Type +Sym.* | |
9 | +00080c00 +.*01 R_ARM_PC24 +00080800 +\.plt \+ 20 | |
10 | +00080c04 +.*01 R_ARM_PC24 +000..... +sexternal - 8 | |
11 | +00080c08 +.*01 R_ARM_PC24 +00080800 +\.plt \+ 8 | |
12 | 12 | |
13 | 13 | Relocation section '\.rela\.plt\.unloaded' at offset .* contains 5 entries: |
14 | - Offset Info Type Sym\.Value Sym\. Name \+ Addend | |
15 | -0008080c .*02 R_ARM_ABS32 00081400 _GLOBAL_OFFSET_TABLE_ \+ 0 | |
16 | -00080818 .*02 R_ARM_ABS32 00081400 _GLOBAL_OFFSET_TABLE_ \+ c | |
17 | -0008140c .*02 R_ARM_ABS32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 0 | |
18 | -00080830 .*02 R_ARM_ABS32 00081400 _GLOBAL_OFFSET_TABLE_ \+ 10 | |
19 | -00081410 .*02 R_ARM_ABS32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 0 | |
14 | + Offset +Info +Type +Sym.* | |
15 | +0008080c +.*02 R_ARM_ABS32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ 0 | |
16 | +00080818 +.*02 R_ARM_ABS32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ c | |
17 | +0008140c +.*02 R_ARM_ABS32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 0 | |
18 | +00080830 +.*02 R_ARM_ABS32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ 10 | |
19 | +00081410 +.*02 R_ARM_ABS32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 0 |
@@ -39,7 +39,7 @@ if {[istarget "i?86-*-vxworks"]} { | ||
39 | 39 | {"VxWorks executable test 1 (dynamic)" \ |
40 | 40 | "tmpdir/libvxworks1.so -Tvxworks1.ld --hash-style=sysv -q --force-dynamic" "" |
41 | 41 | "" {vxworks1.s} |
42 | - {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}} | |
42 | + {{readelf {--relocs --wide} vxworks1.rd} {objdump -dr vxworks1.dd}} | |
43 | 43 | "vxworks1"} |
44 | 44 | {"VxWorks executable test 2 (dynamic)" \ |
45 | 45 | "-Tvxworks1.ld --hash-style=sysv -q --force-dynamic" "" |
@@ -1,20 +1,20 @@ | ||
1 | 1 | |
2 | 2 | Relocation section '\.rel\.plt' at offset .* contains 2 entries: |
3 | - Offset Info Type Sym\.Value Sym\. Name | |
4 | -0008140c .*07 R_386_JUMP_SLOT 00000000 sglobal | |
5 | -00081410 .*07 R_386_JUMP_SLOT 00000000 foo | |
3 | + Offset +Info +Type +Sym.* | |
4 | +0008140c +.*07 R_386_JUMP_SLOT +00000000 +sglobal | |
5 | +00081410 +.*07 R_386_JUMP_SLOT +00000000 +foo | |
6 | 6 | |
7 | 7 | Relocation section '\.rel\.text' at offset .* contains 3 entries: |
8 | - Offset Info Type Sym.Value Sym. Name | |
9 | -00080c01 .*04 R_386_PLT32 00080800 .plt | |
10 | -00080c06 .*04 R_386_PLT32 00080c0f sexternal | |
11 | -00080c0b .*04 R_386_PLT32 00080800 .plt | |
8 | + Offset +Info +Type +Sym.* | |
9 | +00080c01 +.*04 R_386_PLT32 +00080800 +.plt | |
10 | +00080c06 +.*04 R_386_PLT32 +00080c0f +sexternal | |
11 | +00080c0b +.*04 R_386_PLT32 +00080800 +.plt | |
12 | 12 | |
13 | 13 | Relocation section '\.rel\.plt\.unloaded' at offset .* contains 6 entries: |
14 | - Offset Info Type Sym\.Value Sym\. Name | |
15 | -00080802 .*01 R_386_32 00081400 _GLOBAL_OFFSET_TABLE_ | |
16 | -00080808 .*01 R_386_32 00081400 _GLOBAL_OFFSET_TABLE_ | |
17 | -00080812 .*01 R_386_32 00081400 _GLOBAL_OFFSET_TABLE_ | |
18 | -0008140c .*01 R_386_32 00080800 _PROCEDURE_LINKAGE_TAB.* | |
19 | -00080822 .*01 R_386_32 00081400 _GLOBAL_OFFSET_TABLE_ | |
20 | -00081410 .*01 R_386_32 00080800 _PROCEDURE_LINKAGE_TAB.* | |
14 | + Offset +Info +Type +Sym.* | |
15 | +00080802 +.*01 R_386_32 +00081400 +_GLOBAL_OFFSET_TABLE_ | |
16 | +00080808 +.*01 R_386_32 +00081400 +_GLOBAL_OFFSET_TABLE_ | |
17 | +00080812 +.*01 R_386_32 +00081400 +_GLOBAL_OFFSET_TABLE_ | |
18 | +0008140c +.*01 R_386_32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ | |
19 | +00080822 +.*01 R_386_32 +00081400 +_GLOBAL_OFFSET_TABLE_ | |
20 | +00081410 +.*01 R_386_32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ |
@@ -36,7 +36,7 @@ foreach { gas_option ld_option suffix } $endians { | ||
36 | 36 | {"VxWorks executable test 1 (dynamic)" \ |
37 | 37 | "tmpdir/libvxworks1.so -Tvxworks1.ld --hash-style=sysv -q --force-dynamic $ld_option" "" |
38 | 38 | "$gas_option" {vxworks1.s} |
39 | - {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1$suffix.dd}} | |
39 | + {{readelf {--relocs --wide} vxworks1.rd} {objdump -dr vxworks1$suffix.dd}} | |
40 | 40 | "vxworks1"} |
41 | 41 | {"VxWorks executable test 2 (dynamic)" \ |
42 | 42 | "-Tvxworks1.ld --hash-style=sysv -q --force-dynamic $ld_option" "" |
@@ -1,19 +1,19 @@ | ||
1 | 1 | |
2 | 2 | Relocation section '\.rela\.plt' at offset .* contains 2 entries: |
3 | - Offset Info Type Sym\.Value Sym\. Name \+ Addend | |
4 | -0008140c .*a4 R_SH_JMP_SLOT 0008080c _sglobal \+ 0 | |
5 | -00081410 .*a4 R_SH_JMP_SLOT 00080824 _foo \+ 0 | |
3 | + Offset +Info +Type +Sym.* | |
4 | +0008140c +.*a4 R_SH_JMP_SLOT +0008080c +_sglobal \+ 0 | |
5 | +00081410 +.*a4 R_SH_JMP_SLOT +00080824 +_foo \+ 0 | |
6 | 6 | |
7 | 7 | Relocation section '\.rela\.text' at offset .* contains 3 entries: |
8 | - Offset Info Type Sym.Value Sym. Name \+ Addend | |
9 | -00080c1c .*01 R_SH_DIR32 00080800 \.plt \+ 24 | |
10 | -00080c20 .*01 R_SH_DIR32 00080800 \.plt \+ c | |
11 | -00080c24 .*01 R_SH_DIR32 00080c28 _sexternal \+ 0 | |
8 | + Offset +Info +Type +Sym.* | |
9 | +00080c1c +.*01 R_SH_DIR32 +00080800 +\.plt \+ 24 | |
10 | +00080c20 +.*01 R_SH_DIR32 +00080800 +\.plt \+ c | |
11 | +00080c24 +.*01 R_SH_DIR32 +00080c28 +_sexternal \+ 0 | |
12 | 12 | |
13 | 13 | Relocation section '\.rela\.plt\.unloaded' at offset .* contains 5 entries: |
14 | - Offset Info Type Sym\.Value Sym\. Name \+ Addend | |
15 | -00080808 .*01 R_SH_DIR32 00081400 _GLOBAL_OFFSET_TABLE_ \+ 8 | |
16 | -00080814 .*01 R_SH_DIR32 00081400 _GLOBAL_OFFSET_TABLE_ \+ c | |
17 | -0008140c .*01 R_SH_DIR32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 0 | |
18 | -0008082c .*01 R_SH_DIR32 00081400 _GLOBAL_OFFSET_TABLE_ \+ 10 | |
19 | -00081410 .*01 R_SH_DIR32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 0 | |
14 | + Offset +Info +Type +Sym.* | |
15 | +00080808 +.*01 R_SH_DIR32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ 8 | |
16 | +00080814 +.*01 R_SH_DIR32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ c | |
17 | +0008140c +.*01 R_SH_DIR32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 0 | |
18 | +0008082c +.*01 R_SH_DIR32 +00081400 +_GLOBAL_OFFSET_TABLE_ \+ 10 | |
19 | +00081410 +.*01 R_SH_DIR32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 0 |
@@ -33,7 +33,7 @@ if {[istarget "sparc-*-vxworks"]} { | ||
33 | 33 | {"VxWorks executable test 1 (dynamic)" \ |
34 | 34 | "tmpdir/libvxworks1.so -Tvxworks1.ld --hash-style=sysv -q --force-dynamic" "" |
35 | 35 | "" {vxworks1.s} |
36 | - {{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}} | |
36 | + {{readelf {--relocs --wide} vxworks1.rd} {objdump -dr vxworks1.dd}} | |
37 | 37 | "vxworks1"} |
38 | 38 | {"VxWorks executable test 2 (dynamic)" \ |
39 | 39 | "-Tvxworks1.ld --hash-style=sysv -q --force-dynamic" "" |
@@ -1,22 +1,22 @@ | ||
1 | 1 | |
2 | 2 | Relocation section '\.rela\.plt' at offset .* contains 2 entries: |
3 | - Offset Info Type Sym\.Value Sym\. Name \+ Addend | |
4 | -0009040c .*15 R_SPARC_JMP_SLOT 00080814 sglobal \+ 0 | |
5 | -00090410 .*15 R_SPARC_JMP_SLOT 00080834 foo \+ 0 | |
3 | + Offset +Info +Type +Sym.* | |
4 | +0009040c +.*15 R_SPARC_JMP_SLOT +00080814 +sglobal \+ 0 | |
5 | +00090410 +.*15 R_SPARC_JMP_SLOT +00080834 +foo \+ 0 | |
6 | 6 | |
7 | 7 | Relocation section '\.rela\.text' at offset .* contains 3 entries: |
8 | - Offset Info Type Sym\.Value Sym\. Name \+ Addend | |
9 | -00080c04 .*07 R_SPARC_WDISP30 00080800 \.plt \+ 34 | |
10 | -00080c0c .*07 R_SPARC_WDISP30 00080c24 sexternal \+ 0 | |
11 | -00080c14 .*07 R_SPARC_WDISP30 00080800 \.plt \+ 14 | |
8 | + Offset +Info +Type +Sym.* | |
9 | +00080c04 +.*07 R_SPARC_WDISP30 +00080800 +\.plt \+ 34 | |
10 | +00080c0c +.*07 R_SPARC_WDISP30 +00080c24 +sexternal \+ 0 | |
11 | +00080c14 +.*07 R_SPARC_WDISP30 +00080800 +\.plt \+ 14 | |
12 | 12 | |
13 | 13 | Relocation section '\.rela\.plt\.unloaded' at offset .* contains 8 entries: |
14 | - Offset Info Type Sym\.Value Sym\. Name \+ Addend | |
15 | -00080800 .*09 R_SPARC_HI22 00090400 _GLOBAL_OFFSET_TABLE_ \+ 8 | |
16 | -00080804 .*0c R_SPARC_LO10 00090400 _GLOBAL_OFFSET_TABLE_ \+ 8 | |
17 | -00080814 .*09 R_SPARC_HI22 00090400 _GLOBAL_OFFSET_TABLE_ \+ c | |
18 | -00080818 .*0c R_SPARC_LO10 00090400 _GLOBAL_OFFSET_TABLE_ \+ c | |
19 | -0009040c .*03 R_SPARC_32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 28 | |
20 | -00080834 .*09 R_SPARC_HI22 00090400 _GLOBAL_OFFSET_TABLE_ \+ 10 | |
21 | -00080838 .*0c R_SPARC_LO10 00090400 _GLOBAL_OFFSET_TABLE_ \+ 10 | |
22 | -00090410 .*03 R_SPARC_32 00080800 _PROCEDURE_LINKAGE_TAB.* \+ 48 | |
14 | + Offset +Info +Type +Sym.* | |
15 | +00080800 +.*09 R_SPARC_HI22 +00090400 +_GLOBAL_OFFSET_TABLE_ \+ 8 | |
16 | +00080804 +.*0c R_SPARC_LO10 +00090400 +_GLOBAL_OFFSET_TABLE_ \+ 8 | |
17 | +00080814 +.*09 R_SPARC_HI22 +00090400 +_GLOBAL_OFFSET_TABLE_ \+ c | |
18 | +00080818 +.*0c R_SPARC_LO10 +00090400 +_GLOBAL_OFFSET_TABLE_ \+ c | |
19 | +0009040c +.*03 R_SPARC_32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 28 | |
20 | +00080834 +.*09 R_SPARC_HI22 +00090400 +_GLOBAL_OFFSET_TABLE_ \+ 10 | |
21 | +00080838 +.*0c R_SPARC_LO10 +00090400 +_GLOBAL_OFFSET_TABLE_ \+ 10 | |
22 | +00090410 +.*03 R_SPARC_32 +00080800 +_PROCEDURE_LINKAGE_TABLE_ \+ 48 |