Browse Source
* elflink.c (elf_link_input_bfd): Provide a file symbol for each input file with local syms, if the input lacks such. (bfd_elf_final_link): Add a file symbol to mark end of locals for which we can associate with input files. (struct elf_final_link_info): Add filesym_count field. (struct elf_outext_info): Add need_second_pass and second_pass. (elf_link_output_extsym): Detect symbols defined in the output file, emit them on second pass over locals. ld/testsuite/ Update to suit added STT_FILE symbols.cygwin-64bit-branch
108 changed files with 910 additions and 525 deletions
@ -1,16 +1,18 @@ |
|||
|
|||
Symbol table '.symtab' contains 13 entries: |
|||
Num: Value Size Type Bind Vis Ndx Name |
|||
0: 00000000 0 NOTYPE LOCAL DEFAULT UND |
|||
1: 00000000 0 SECTION LOCAL DEFAULT 1 |
|||
2: 00000000 0 SECTION LOCAL DEFAULT 2 |
|||
3: 00000000 0 NOTYPE LOCAL DEFAULT 1 \$a |
|||
4: 00000010 0 NOTYPE LOCAL DEFAULT 1 \$d |
|||
5: 00000014 0 NOTYPE LOCAL DEFAULT 1 \$a |
|||
6: 00000020 0 NOTYPE LOCAL DEFAULT 1 \$t |
|||
7: 00000010 0 OBJECT GLOBAL DEFAULT 1 bar_o |
|||
8: 00000021 0 FUNC GLOBAL DEFAULT 1 bar_t |
|||
9: 00000000 0 FUNC GLOBAL DEFAULT 1 foo_a |
|||
10: 00000021 0 FUNC GLOBAL DEFAULT 1 foo_t |
|||
11: 00000010 0 OBJECT GLOBAL DEFAULT 1 foo_o |
|||
12: 00000000 0 FUNC GLOBAL DEFAULT 1 bar_a |
|||
Symbol table '.symtab' contains [0-9]+ entries: |
|||
+Num: +Value +Size Type +Bind +Vis +Ndx Name |
|||
.* 0+ +0 NOTYPE +LOCAL +DEFAULT +UND |
|||
.* 0+ +0 SECTION LOCAL +DEFAULT +1 |
|||
.* 0+ +0 SECTION LOCAL +DEFAULT +2 |
|||
.* 0+ +0 FILE +LOCAL +DEFAULT +ABS .* |
|||
.* 0+ +0 NOTYPE +LOCAL +DEFAULT +1 \$a |
|||
.* 0+10 +0 NOTYPE +LOCAL +DEFAULT +1 \$d |
|||
.* 0+14 +0 NOTYPE +LOCAL +DEFAULT +1 \$a |
|||
.* 0+20 +0 NOTYPE +LOCAL +DEFAULT +1 \$t |
|||
.* 0+ +0 FILE +LOCAL +DEFAULT +ABS .* |
|||
.* 0+10 +0 OBJECT +GLOBAL DEFAULT +1 bar_o |
|||
.* 0+21 +0 FUNC +GLOBAL DEFAULT +1 bar_t |
|||
.* 0+ +0 FUNC +GLOBAL DEFAULT +1 foo_a |
|||
.* 0+21 +0 FUNC +GLOBAL DEFAULT +1 foo_t |
|||
.* 0+10 +0 OBJECT +GLOBAL DEFAULT +1 foo_o |
|||
.* 0+ +0 FUNC +GLOBAL DEFAULT +1 bar_a |
|||
|
|||
@ -1,11 +1,11 @@ |
|||
|
|||
Relocation section '.rela.text' at offset 0x[0-9a-f]+ contains 8 entries: |
|||
Offset Info Type Sym.Value Sym. Name \+ Addend |
|||
00000016 00000106 R_PPC_ADDR16_HA 00000000 .text \+ 4000034 |
|||
0000001a 00000104 R_PPC_ADDR16_LO 00000000 .text \+ 4000034 |
|||
00000006 00000106 R_PPC_ADDR16_HA 00000000 .text \+ 4000034 |
|||
0000000a 00000104 R_PPC_ADDR16_LO 00000000 .text \+ 4000034 |
|||
00000026 00000506 R_PPC_ADDR16_HA 00000000 undefined \+ 0 |
|||
0000002a 00000504 R_PPC_ADDR16_LO 00000000 undefined \+ 0 |
|||
0400003e 00000606 R_PPC_ADDR16_HA 00000000 _start \+ 0 |
|||
04000042 00000604 R_PPC_ADDR16_LO 00000000 _start \+ 0 |
|||
Offset +Info +Type +Sym.Value +Sym. Name \+ Addend |
|||
0+16 +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +.text \+ 4000034 |
|||
0+1a +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +.text \+ 4000034 |
|||
0+6 +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +.text \+ 4000034 |
|||
0+a +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +.text \+ 4000034 |
|||
0+26 +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +undefined \+ 0 |
|||
0+2a +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +undefined \+ 0 |
|||
0+400003e +[0-9a-f]+ R_PPC_ADDR16_HA +0+ +_start \+ 0 |
|||
0+4000042 +[0-9a-f]+ R_PPC_ADDR16_LO +0+ +_start \+ 0 |
|||
|
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue