mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-15 04:31:49 +08:00
ffbc01ccf0
* 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.
25 lines
524 B
Makefile
25 lines
524 B
Makefile
#source: sub2l.s
|
|
#as: -little
|
|
#ld: -EL -e 0x1000
|
|
#objdump: -st
|
|
#target: sh*-*-elf
|
|
|
|
.*/dump: file format elf32-sh.*
|
|
|
|
SYMBOL TABLE:
|
|
#...
|
|
0+1000 l .text 00000000 f
|
|
0+1002 l .text 00000000 f2
|
|
0+1028 l .text 00000000 L
|
|
#...
|
|
0+1020 g .text 00000000 ff
|
|
#...
|
|
|
|
Contents of section \.text:
|
|
1000 0b000900 09000900 09000900 09000900 .*
|
|
1010 09000900 09000900 09000900 09000900 .*
|
|
1020 09000900 09000900 0b000900 d8ffffff .*
|
|
1030 daffffff 02100000 28100000 24100000 .*
|
|
Contents of section \..*:
|
|
#pass
|