mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 08:13:37 +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.
24 lines
518 B
Makefile
24 lines
518 B
Makefile
#source: start.s
|
|
#source: bpo-7.s
|
|
#source: areg-t.s
|
|
#as: -linker-allocated-gregs
|
|
#ld: -m elf64mmix
|
|
#objdump: -st
|
|
|
|
# A BPO against an external symbol.
|
|
|
|
.*: file format elf64-mmix
|
|
|
|
SYMBOL TABLE:
|
|
0+ l d \.text 0+ (|\.text)
|
|
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
|
|
#...
|
|
0+ g \.text 0+ _start
|
|
0+8 g \.text 0+ areg
|
|
#...
|
|
|
|
Contents of section \.text:
|
|
0000 e3fd0001 234dfe00 fd040810 .*
|
|
Contents of section \.MMIX\.reg_contents:
|
|
07f0 00000000 00000003 .*
|