This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] Keep special sections generated by mips gcc
- From: Fred Fish <fnf at specifix dot com>
- To: binutils at sourceware dot org
- Date: Sun, 11 Jun 2006 09:28:37 -0400
- Subject: [PATCH] Keep special sections generated by mips gcc
- Reply-to: fnf at specifix dot com
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=