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
- From: Daniel Jacobowitz <drow at false dot org>
- To: Fred Fish <fnf at specifix dot com>
- Cc: binutils at sourceware dot org
- Date: Sun, 11 Jun 2006 10:13:08 -0400
- Subject: Re: [PATCH] Keep special sections generated by mips gcc
- References: <200606110928.38000.fnf@specifix.com>
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