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.
18 lines
436 B
Makefile
18 lines
436 B
Makefile
#name: MIPS ELF lo16 merge
|
|
#source: reloc-merge-lo16.s
|
|
#ld: -Treloc-merge-lo16.ld
|
|
#objdump: -td --prefix-addresses --show-raw-insn
|
|
|
|
# Test lo16 reloc calculation with string merging.
|
|
|
|
.*: +file format .*mips.*
|
|
#...
|
|
0+80fe70 l .rodata 0+000000 g
|
|
#...
|
|
0+400000 g F .text 0+00000c __start
|
|
#...
|
|
0+400000 <[^>]*> 3c020081 lui v0,0x81
|
|
0+400004 <[^>]*> 2443fe70 addiu v1,v0,-400
|
|
0+400008 <[^>]*> 2442fe70 addiu v0,v0,-400
|
|
\.\.\.
|