old-cross-binutils/ld/testsuite/ld-sh/weak1.d
Alan Modra ffbc01ccf0 bfd/
* 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.
2012-06-06 10:50:18 +00:00

22 lines
423 B
Makefile

#source: weak1.s
#as: -little
#ld: -e 0x1000 -EL
#objdump: -ts
#target: sh*-*-elf
.*: file format elf32-sh.*
SYMBOL TABLE:
#...
0+10a0 l .data 0+ d0
0+1000 l .text 0+ f
#...
0+10a4 w .data 0+ w0
#...
Contents of section .text:
1000 01d11260 0b000900 a4100000 09000900 .*
1010 09000900 09000900 09000900 09000900 .*
Contents of section .data:
10a0 01000000 00000000 .*
#pass