34a79995c4
There's no real need to emit these always: They're needed only if we indeed want to emit a localized symbol. Hence defer emission until we at least did the basic early checks that would lead to no such symbol getting emitted. This in particular avoids emitting such a symbol in the majority of (if not all) "ld -r" cases. I hope my set of cross build tests caught all the test cases needing adjustment - please forgive if I missed a few. bfd/ 2013-10-29 Jan Beulich <jbeulich@suse.com> * elflink.c (struct elf_outext_info): Add field file_sym_done. (bfd_elf_final_link): Initialize new field. Move fake STT_FILE symbol emission from here ... (elf_link_output_extsym): ... to here. gas/testsuite/ 2013-10-29 Jan Beulich <jbeulich@suse.com> * gas/microblaze/relax_size.elf: Drop expectation of no longer present STT_FILE symbol. * gas/microblaze/relax_size2.elf: Likewise. ld/testsuite/ 2013-10-29 Jan Beulich <jbeulich@suse.com> * ld-cris/tls-e-tpoffcomm1.d: Drop expectation of no longer present STT_FILE symbol. * ld-mmix/bpo-18.d: Likewise. * ld-mmix/bpo-22.d: Likewise. * ld-mmix/greg-6.d: Likewise. * ld-mmix/greg-7.d: Likewise. * ld-mmix/loc4.d: Likewise. * ld-mmix/local1.d: Likewise. * ld-mmix/local3.d: Likewise. * ld-mmix/local5.d: Likewise. * ld-mmix/local7.d: Likewise. * ld-mmix/loct-1.d: Likewise. * ld-sh/sh64/abi32.xd: Likewise. * ld-sh/sh64/abi64.xd: Likewise. * ld-sh/sh64/cmpct1.xd: Likewise. * ld-sh/sh64/crange1.rd: Likewise. * ld-sh/sh64/crange2.rd: Likewise. * ld-sh/sh64/crange3-cmpct.rd: Likewise. * ld-sh/sh64/crange3-media.rd: Likewise. * ld-sh/sh64/crange3.rd: Likewise. * ld-sh/sh64/crangerel1.rd: Likewise. * ld-sh/sh64/crangerel2.rd: Likewise. * ld-sh/sh64/mix1.xd: Likewise. * ld-sh/sh64/mix2.xd: Likewise. * ld-sh/sh64/shdl32.xd: Likewise. * ld-sh/sh64/shdl64.xd: Likewise.
63 lines
2.9 KiB
R
63 lines
2.9 KiB
R
There are 11 section headers, starting at offset 0x128:
|
|
|
|
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 00005c 00 AXp +0 +0 +4
|
|
+\[ 3\] \.data +PROGBITS +00000000 000090 000000 00 +WA +0 +0 +1
|
|
+\[ 4\] \.bss +NOBITS +00000000 000090 000000 00 +WA +0 +0 +1
|
|
+\[ 5\] \.stack +PROGBITS +00000000 000090 000004 00 +WA +0 +0 +1
|
|
+\[ 6\] \.cranges +PROGBITS +00000000 000094 000046 00 +W +0 +0 +1
|
|
+\[ 7\] \.rela\.cranges +RELA +00000000 0002e0 000054 0c +9 +6 +4
|
|
+\[ 8\] \.shstrtab +STRTAB +00000000 0000da 00004d 00 +0 +0 +1
|
|
+\[ 9\] \.symtab +SYMTAB +00000000 [0-9a-f]+ [0-9a-f]+ 10 +10 +[0-9]+ +4
|
|
+\[10\] \.strtab +STRTAB +00000000 [0-9a-f]+ [0-9a-f]+ 00 +0 +0 +1
|
|
Key to Flags:
|
|
#...
|
|
|
|
Relocation section '\.rela\.cranges' at offset 0x[0-9a-f]+ contains 7 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
|
|
0*0000001e +0+0201 R_SH_DIR32 +00000000 +\.text\.mixed +\+ 0
|
|
0*00000028 +0+0201 R_SH_DIR32 +00000000 +\.text\.mixed +\+ 0
|
|
0*00000032 +0+0201 R_SH_DIR32 +00000000 +\.text\.mixed +\+ 0
|
|
0*0000003c +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 +FILE +LOCAL +DEFAULT +ABS .*
|
|
.* 00000018 +0 +NOTYPE +LOCAL +DEFAULT +\[<other>: 4\] +2 sec1
|
|
.* 00000028 +0 +NOTYPE +LOCAL +DEFAULT +\[<other>: 4\] +2 sec2
|
|
.* 00000000 +0 +FILE +LOCAL +DEFAULT +ABS .*
|
|
.* 0000003c +0 +NOTYPE +LOCAL +DEFAULT +2 sec3
|
|
.* 00000000 +0 +FILE +LOCAL +DEFAULT +ABS .*
|
|
.* 00000044 +0 +NOTYPE +LOCAL +DEFAULT +2 sec4
|
|
.* 00000000 +0 +NOTYPE +GLOBAL +DEFAULT +2 diversion2
|
|
|
|
Hex dump of section '\.text\.mixed':
|
|
0x00000000 6ff0fff0 6ff0fff0 6ff0fff0 0000002a .*
|
|
0x00000010 0000002b 00090009 6ff0fff0 6ff0fff0 .*
|
|
0x00000020 6ff0fff0 6ff0fff0 00000029 0000002b .*
|
|
0x00000030 0000002a 0000002b 0000002a 00090009 .*
|
|
0x00000040 00090000 6ff0fff0 6ff0fff0 6ff0fff0 .*
|
|
0x00000050 6ff0fff0 6ff0fff0 6ff0fff0 .*
|
|
|
|
Hex dump of section '\.cranges':
|
|
.*
|
|
0x00000000 00000000 0000000c 00030000 000c0000 .*
|
|
0x00000010 00080001 00000014 00000004 00020000 .*
|
|
0x00000020 00180000 00100003 00000028 00000014 .*
|
|
0x00000030 00010000 003c0000 00060002 00000044 .*
|
|
0x00000040 00000018 0003 .*
|