* [PATCH] Keep special sections generated by mips gcc
@ 2006-06-11 13:36 Fred Fish
2006-06-11 15:31 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Fred Fish @ 2006-06-11 13:36 UTC (permalink / raw)
To: binutils
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=
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Keep special sections generated by mips gcc
2006-06-11 13:36 [PATCH] Keep special sections generated by mips gcc Fred Fish
@ 2006-06-11 15:31 ` Daniel Jacobowitz
2006-06-11 19:18 ` Fred Fish
0 siblings, 1 reply; 5+ messages in thread
From: Daniel Jacobowitz @ 2006-06-11 15:31 UTC (permalink / raw)
To: Fred Fish; +Cc: binutils
On Sun, Jun 11, 2006 at 09:28:37AM -0400, Fred Fish wrote:
> 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.
OK. I'd been meaning to do this for ages.
Could you add keeps for the ABI sections too?
case ABI_32: abi_string = "abi32"; break;
case ABI_N32: abi_string = "abiN32"; break;
case ABI_64: abi_string = "abi64"; break;
case ABI_O64: abi_string = "abiO64"; break;
case ABI_EABI: abi_string = TARGET_64BIT ? "eabi64" : "eabi32"; break;
fprintf (asm_out_file, "\t.section .mdebug.%s\n", abi_string);
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Keep special sections generated by mips gcc
2006-06-11 15:31 ` Daniel Jacobowitz
@ 2006-06-11 19:18 ` Fred Fish
2006-06-11 20:43 ` Eric Christopher
2006-06-12 0:21 ` Thiemo Seufer
0 siblings, 2 replies; 5+ messages in thread
From: Fred Fish @ 2006-06-11 19:18 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: binutils
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=
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Keep special sections generated by mips gcc
2006-06-11 19:18 ` Fred Fish
@ 2006-06-11 20:43 ` Eric Christopher
2006-06-12 0:21 ` Thiemo Seufer
1 sibling, 0 replies; 5+ messages in thread
From: Eric Christopher @ 2006-06-11 20:43 UTC (permalink / raw)
To: fnf; +Cc: Daniel Jacobowitz, binutils
On Jun 11, 2006, at 8:48 AM, Fred Fish wrote:
> 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.
OK.
-eric
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] Keep special sections generated by mips gcc
2006-06-11 19:18 ` Fred Fish
2006-06-11 20:43 ` Eric Christopher
@ 2006-06-12 0:21 ` Thiemo Seufer
1 sibling, 0 replies; 5+ messages in thread
From: Thiemo Seufer @ 2006-06-12 0:21 UTC (permalink / raw)
To: Fred Fish; +Cc: Daniel Jacobowitz, binutils
Fred Fish wrote:
> 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.
Ok.
Thiemo
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2006-06-11 20:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-11 13:36 [PATCH] Keep special sections generated by mips gcc Fred Fish
2006-06-11 15:31 ` Daniel Jacobowitz
2006-06-11 19:18 ` Fred Fish
2006-06-11 20:43 ` Eric Christopher
2006-06-12 0:21 ` Thiemo Seufer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).