mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
be59ad3d96
There is no requirement on placement of section name section, .shstrtab. This patch removes hardcoded offsets of .shstrtab sections. binutils/testsuite/ * binutils-all/i386/compressed-1b.d: Don't hardcode offset of .shstrtab section. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/readelf.s-64: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise. gas/testsuite/ * gas/i386/ilp32/x86-64-unwind.d: Don't hardcode offset of .shstrtab section. * gas/i386/x86-64-unwind.d: Likewise. * gas/ia64/alias-ilp32.d: Likewise. * gas/ia64/alias.d: Likewise. * gas/ia64/group-1.d: Likewise. * gas/ia64/group-2.d: Likewise. * gas/ia64/secname-ilp32.d: Likewise. * gas/ia64/secname.d: Likewise. * gas/ia64/unwind-ilp32.d: Likewise. * gas/ia64/unwind.d: Likewise. * gas/mmix/bspec-1.d: Likewise. * gas/mmix/byte-1.d: Likewise. * gas/mmix/loc-1.d: Likewise. * gas/mmix/loc-2.d: Likewise. * gas/mmix/loc-3.d: Likewise. * gas/mmix/loc-4.d: Likewise. * gas/mmix/loc-5.d: Likewise. * gas/tic6x/scomm-directive-4.d: Likewise. ld/testsuite/ * ld-mmix/bspec1.d: Don't hardcode offset of .shstrtab section. * ld-mmix/bspec2.d: Likewise. * ld-mmix/local1.d: Likewise. * ld-mmix/local3.d: Likewise. * ld-mmix/local5.d: Likewise. * ld-mmix/local7.d: Likewise. * ld-mmix/undef-3.d: Likewise. * ld-sh/sh64/crangerel1.rd: Likewise. * ld-sh/sh64/crangerel2.rd: Likewise. * ld-tic6x/common.d: Likewise. * ld-tic6x/shlib-1.rd: Likewise. * ld-tic6x/shlib-1b.rd: Likewise. * ld-tic6x/shlib-1r.rd: Likewise. * ld-tic6x/shlib-1rb.rd: Likewise. * ld-tic6x/shlib-app-1.rd: Likewise. * ld-tic6x/shlib-app-1b.rd: Likewise. * ld-tic6x/shlib-app-1r.rd: Likewise. * ld-tic6x/shlib-app-1rb.rd: Likewise. * ld-tic6x/shlib-noindex.rd: Likewise. * ld-tic6x/static-app-1.rd: Likewise. * ld-tic6x/static-app-1b.rd: Likewise. * ld-tic6x/static-app-1r.rd: Likewise. * ld-tic6x/static-app-1rb.rd: Likewise. * ld-x86-64/ilp32-4.d: Likewise. * ld-x86-64/split-by-file-nacl.rd: Likewise. * ld-x86-64/split-by-file.rd: Likewise.
46 lines
1.9 KiB
R
46 lines
1.9 KiB
R
There are 11 section headers, starting at offset .*:
|
|
|
|
Section Headers:
|
|
+\[Nr\] Name +Type +Addr +Off +Size +ES Flg Lk Inf Al
|
|
+\[ 0\] +NULL +00000000 000000 000000 00 +0 +0 +0
|
|
+\[ 1\] \.text +PROGBITS +00000000 000034 000000 00 +AX +0 +0 +1
|
|
+\[ 2\] \.text\.mixed +PROGBITS +00000000 000034 000018 00 AXp +0 +0 +4
|
|
+\[ 3\] \.data +PROGBITS +00000000 00004c 000000 00 +WA +0 +0 +1
|
|
+\[ 4\] \.bss +NOBITS +00000000 00004c 000000 00 +WA +0 +0 +1
|
|
+\[ 5\] \.stack +PROGBITS +00000000 00004c 000004 00 +WA +0 +0 +1
|
|
+\[ 6\] \.cranges +PROGBITS +00000000 000050 00001e 00 +W +0 +0 +1
|
|
+\[ 7\] \.rela\.cranges +RELA +00000000 [0-9a-f]+ 000024 0c +I +9 +6 +4
|
|
+\[ 8\] \.shstrtab +STRTAB +00000000 [0-9a-f]+ 00004d 00 +0 +0 +1
|
|
+\[ 9\] \.symtab +SYMTAB .*
|
|
+\[10\] \.strtab +STRTAB .*
|
|
Key to Flags:
|
|
#...
|
|
|
|
Relocation section '\.rela\.cranges' at offset 0x[0-9a-f]+ contains 3 entries:
|
|
.*
|
|
0*00000000 +0+0201 R_SH_DIR32 +00000000 +\.text\.mixed +\+ 0
|
|
0*0000000a +0+0201 R_SH_DIR32 +00000000 +\.text\.mixed +\+ 0
|
|
0*00000014 +0+0201 R_SH_DIR32 +00000000 +\.text\.mixed +\+ 0
|
|
|
|
Symbol table '\.symtab' contains [0-9]+ entries:
|
|
+Num: +Value +Size +Type +Bind +Vis +Ndx +Name
|
|
.* 00000000 +0 +NOTYPE +LOCAL +DEFAULT +UND
|
|
.* 00000000 +0 +SECTION +LOCAL +DEFAULT +1
|
|
.* 00000000 +0 +SECTION +LOCAL +DEFAULT +2
|
|
.* 00000000 +0 +SECTION +LOCAL +DEFAULT +3
|
|
.* 00000000 +0 +SECTION +LOCAL +DEFAULT +4
|
|
.* 00000000 +0 +SECTION +LOCAL +DEFAULT +5
|
|
.* 00000000 +0 +SECTION +LOCAL +DEFAULT +6
|
|
.* 00000000 +0 +FILE +LOCAL +DEFAULT +ABS .*
|
|
.* 00000000 +0 +NOTYPE +LOCAL +DEFAULT +\[<other>: 4\] +2 start2
|
|
.* 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +2 diversion2
|
|
|
|
Hex dump of section '\.text\.mixed':
|
|
0x00000000 6ff0fff0 6ff0fff0 6ff0fff0 0000002a .*
|
|
0x00000010 0000002b 00090009 .*
|
|
|
|
Hex dump of section '\.cranges':
|
|
.*
|
|
0x00000000 00000000 0000000c 00030000 000c0000 .*
|
|
0x00000010 00080001 00000014 00000004 0002 .*
|