]> err.no Git - linux-2.6/commitdiff
[MIPS] Do not discard extra debugging sections.
authorDaniel Jacobowitz <drow@false.org>
Fri, 3 Aug 2007 15:43:01 +0000 (11:43 -0400)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 27 Aug 2007 01:16:53 +0000 (02:16 +0100)
Leaving these sections is useful to some tools that look at the image, and
none of them are loaded into memory.  The .mdebug.abi64 section, in
particular, lets GDB recognize vmlinux.32 as an N64 program instead of
guessing that it is O32.

Signed-off-by: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/kernel/vmlinux.lds.S

index bc9bae2a73f4843da0d38cb8f17c4b05b8d81e5c..60bbaecde1873d8d653664351692ca93576be2e5 100644 (file)
@@ -142,15 +142,16 @@ SECTIONS
         *(.exitcall.exit)
 
        /* ABI crap starts here */
-       *(.comment)
        *(.MIPS.options)
-       *(.note)
        *(.options)
        *(.pdr)
        *(.reginfo)
-       *(.mdebug*)
   }
 
+  /* These mark the ABI of the kernel for debuggers.  */
+  .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
+  .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
+
   /* This is the MIPS specific mdebug section.  */
   .mdebug : { *(.mdebug) }