Commit 6c76988b authored by Daniel Jacobowitz's avatar Daniel Jacobowitz Committed by Ralf Baechle

[MIPS] Do not discard extra debugging sections.

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: default avatarDaniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent bda4d16c
...@@ -142,15 +142,16 @@ SECTIONS ...@@ -142,15 +142,16 @@ SECTIONS
*(.exitcall.exit) *(.exitcall.exit)
/* ABI crap starts here */ /* ABI crap starts here */
*(.comment)
*(.MIPS.options) *(.MIPS.options)
*(.note)
*(.options) *(.options)
*(.pdr) *(.pdr)
*(.reginfo) *(.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. */ /* This is the MIPS specific mdebug section. */
.mdebug : { *(.mdebug) } .mdebug : { *(.mdebug) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment