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.
37 lines
729 B
Makefile
37 lines
729 B
Makefile
#source: greg-1.s
|
|
#source: gregbza1.s
|
|
#source: start.s
|
|
#source: a.s
|
|
#as: -x
|
|
#ld: -m elf64mmix
|
|
#objdump: -dt
|
|
|
|
# Like greg-3, but a different expanding insn.
|
|
|
|
.*: file format elf64-mmix
|
|
|
|
SYMBOL TABLE:
|
|
0+ l d \.text 0+ (|\.text)
|
|
0+7f0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
|
|
#...
|
|
0+18 g \.text 0+ _start
|
|
0+fe g \*REG\* 0+ areg
|
|
#...
|
|
0+1c g \.text 0+ a
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0+ <_start-0x18>:
|
|
0: 5afe0006 pbnz \$254,18 <_start>
|
|
4: e3ff001c setl \$255,0x1c
|
|
8: e6ff0000 incml \$255,0x0
|
|
c: e5ff0000 incmh \$255,0x0
|
|
10: e4ff0000 inch \$255,0x0
|
|
14: 9fffff00 go \$255,\$255,0
|
|
|
|
0+18 <_start>:
|
|
18: e3fd0001 setl \$253,0x1
|
|
|
|
0+1c <a>:
|
|
1c: e3fd0004 setl \$253,0x4
|