This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] Keep special sections generated by mips gcc
On Sunday 11 June 2006 10:13, Daniel Jacobowitz wrote:
> OK. I'd been meaning to do this for ages.
> Could you add keeps for the ABI sections too?
OK, here is an updated patch.
2006-06-11 Fred Fish <fnf@specifix.com>
* emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
".mdebug.<abi>" and ".gcc_compiled_long<size>" sections
generated by mips gcc.
Index: ld/emulparams/elf32bmip.sh
===================================================================
RCS file: /cvsroots/latest/src/binutils/ld/emulparams/elf32bmip.sh,v
retrieving revision 1.1.1.2
diff -u -p -r1.1.1.2 elf32bmip.sh
--- ld/emulparams/elf32bmip.sh 8 Jun 2006 09:54:49 -0000 1.1.1.2
+++ ld/emulparams/elf32bmip.sh 11 Jun 2006 14:34:00 -0000
@@ -34,6 +34,14 @@ OTHER_BSS_SYMBOLS='_fbss = .;'
OTHER_SECTIONS='
.gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
+ .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
+ .mdebug.abiN32 : { KEEP(*(.mdebug.abiN32)) }
+ .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
+ .mdebug.abiO64 : { KEEP(*(.mdebug.abiO64)) }
+ .mdebug.eabi32 : { KEEP(*(.mdebug.eabi32)) }
+ .mdebug.eabi64 : { KEEP(*(.mdebug.eabi64)) }
+ .gcc_compiled_long32 : { KEEP(*(.gcc_compiled_long32)) }
+ .gcc_compiled_long64 : { KEEP(*(.gcc_compiled_long64)) }
'
ARCH=mips
MACHINE=