This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Keep special sections generated by mips gcc


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]