[PATCH] Keep special sections generated by mips gcc
Daniel Jacobowitz
drow@false.org
Sun Jun 11 15:31:00 GMT 2006
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
More information about the Binutils
mailing list