mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +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.
43 lines
857 B
Makefile
43 lines
857 B
Makefile
#source: greg-1.s
|
|
#source: gregldo1.s
|
|
#source: gregget2.s
|
|
#source: a.s
|
|
#source: greg-3.s
|
|
#source: start.s
|
|
#source: greg-2.s
|
|
#as: -x
|
|
#ld: -m elf64mmix
|
|
#objdump: -dt
|
|
|
|
# Have two used gregs and one unused.
|
|
|
|
.*: file format elf64-mmix
|
|
|
|
SYMBOL TABLE:
|
|
0+ l d \.text 0+ (|\.text)
|
|
0+7e0 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
|
|
#...
|
|
0+fe g \*REG\* 0+ b
|
|
0+20 g \.text 0+ _start
|
|
0+fc g \*REG\* 0+ areg
|
|
0+fd g \*REG\* 0+ c
|
|
#...
|
|
0+1c g \.text 0+ a
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0+ <a-0x1c>:
|
|
0: 8c0c20fc ldo \$12,\$32,\$252
|
|
4: 8d7bfc22 ldo \$123,\$252,34
|
|
8: 8dfcea38 ldo \$252,\$234,56
|
|
c: e3fe001c setl \$254,0x1c
|
|
10: e6fe0000 incml \$254,0x0
|
|
14: e5fe0000 incmh \$254,0x0
|
|
18: e4fe0000 inch \$254,0x0
|
|
|
|
0+1c <a>:
|
|
1c: e3fd0004 setl \$253,0x4
|
|
|
|
0+20 <_start>:
|
|
20: e3fd0001 setl \$253,0x1
|