binutils-gdb/ld/testsuite/ld-powerpc/apuinfo-nul.rd
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

10 lines
257 B
R

#source: apuinfo-nul.s
#source: apuinfo-nul1.s
#as: -me500
#readelf: -x2
#target: powerpc-eabi*
Hex dump of section '.PPC.EMB.apuinfo':
0x00000000 00000008 00000000 00000002 41505569 ............APUi
0x00000010 6e666f00 nfo.