This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

--gc-sections vs .note.spuname


Otherwise --gc-sections removes this needed section.

	* emulparams/elf32_spu.sh (OTHER_SECTIONS): KEEP .note.spu_name.

Index: ld/emulparams/elf32_spu.sh
===================================================================
RCS file: /cvs/src/src/ld/emulparams/elf32_spu.sh,v
retrieving revision 1.2
diff -u -p -r1.2 elf32_spu.sh
--- ld/emulparams/elf32_spu.sh	20 Nov 2006 02:17:06 -0000	1.2
+++ ld/emulparams/elf32_spu.sh	20 Jun 2007 00:20:05 -0000
@@ -17,4 +17,4 @@ EMBEDDED=true
 MAXPAGESIZE=0x80
 DATA_ADDR="ALIGN(${MAXPAGESIZE})"
 OTHER_BSS_SECTIONS=".toe ALIGN(128) : { *(.toe) } = 0"
-OTHER_SECTIONS=".note.spu_name 0 : { *(.note.spu_name) }"
+OTHER_SECTIONS=".note.spu_name 0 : { KEEP(*(.note.spu_name)) }"

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]