old-cross-binutils/ld/testsuite/ld-mmix/bpo-9.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

27 lines
700 B
Makefile

#source: start3.s
#source: bpo-6.s
#source: bpo-5.s
#as: -linker-allocated-gregs
#ld: -m elf64mmix --gc-sections
#objdump: -st
# Check that GC does not mess up things when no BPO:s are collected.
.*: file format elf64-mmix
SYMBOL TABLE:
0+ l d \.init 0+ (|\.init)
0+10 l d \.text 0+ (|\.text)
0+7e8 l d \.MMIX\.reg_contents 0+ (|\.MMIX\.reg_contents)
#...
0+ l \.init 0+ _start
#...
0+14 g \.text 0+ x
0+10 g \.text 0+ x2
#...
Contents of section \.init:
0000 00000000 0000003d 00000000 0000003a .*
Contents of section \.text:
0010 232dfe00 232dfd00 .*
Contents of section \.MMIX\.reg_contents:
07e8 00000000 0000107c 00000000 0000a420 .*