[PATCH] Keep special sections generated by mips gcc
Fred Fish
fnf@specifix.com
Sun Jun 11 13:36:00 GMT 2006
Gcc generates some empty sections with special names as hints to
the debugger. Newer binutils strips these by default. This patch
keeps them.
-Fred
2006-06-11 Fred Fish <fnf@specifix.com>
* emulparams/elf32bmip.sh (OTHER_SECTIONS): Keep the
gcc_compiled_longXX 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 10 Jun 2006 16:00:00 -0000
@@ -34,6 +34,8 @@ OTHER_BSS_SYMBOLS='_fbss = .;'
OTHER_SECTIONS='
.gptab.sdata : { *(.gptab.data) *(.gptab.sdata) }
.gptab.sbss : { *(.gptab.bss) *(.gptab.sbss) }
+ .gcc_compiled_long32 : { KEEP(*(.gcc_compiled_long32)) }
+ .gcc_compiled_long64 : { KEEP(*(.gcc_compiled_long64)) }
'
ARCH=mips
MACHINE=
More information about the Binutils
mailing list