binutils-gdb/ld/testsuite/ld-elf/implib.s
Alan Modra 5df1bc570f Fix implib test failures
bfd/
	* elf.c (_bfd_elf_filter_global_symbols): Skip local symbols.
	(swap_out_syms): Return an error when not finding ELF output
	section rather than asserting.
	* elflink.c (elf_output_implib): Call bfd_set_error on no symbols.
ld/
	* testsuite/lib/ld-lib.exp (run_ld_link_tests): Add optional
	parameter to pass list of xfails.
	* testsuite/ld-elf/elf.exp: Add xfails for implib tests.  Tidy
	implib test formatting.  Don't set .data start address.
	* testsuite/ld-elf/implib.s: Remove first .bss directive and
	replace second one with equivalent .section directive.
	* testsuite/ld-elf/empty-implib.out: Add expected final error.
	* testsuite/ld-elf/implib.rd: Update.
2016-07-21 11:30:34 +09:30

22 lines
307 B
ArmAsm

.ifndef NO_GLOBAL
.comm exported1,1
.data
.global exported2
.type exported2, %object
.size exported2, 1
exported2:
.byte 21
.endif
.section ".bss", "aw", %nobits
not_exported1:
.space 1
.size not_exported1, 1
.data
.type not_exported2, %object
.size not_exported2, 1
not_exported2:
.byte 42