binutils-gdb/ld/testsuite/ld-powerpc/apuinfo-nul1.s
Nathan Sidwell f2faa8006c bfd/
* elf32-ppc.c (apuinfo_set): New static var.
	(ppc_elf_begin_write_processing): Set it here, always create an
	APUinfo section if there were any in the inputs.
	(ppc_elf_write_section): Check apuinfo_set.
	(ppc_elf_final_write_processing): Likewise.

	ld/testsuite/
	* ld-powerpc/apuinfo-nul.rd: New.
	* ld-powerpc/apuinfo-nul1.s: New.
	* ld-powerpc/powerpc.exp: Add it.
2010-04-01 10:02:28 +00:00

11 lines
148 B
ArmAsm

.text
_start: nop
# dummy empty apuinfo
# some other tools emit these
.section ".PPC.EMB.apuinfo"
.long 8
.long 0
.long 2
.asciz "APUinfo"