diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-08-03 17:43:01 +0200 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2007-08-27 03:16:53 +0200 |
commit | 6c76988b813ae7a9fa2282032effa6f5a66dd8d2 (patch) | |
tree | 67257bb131d6f4c2436d0cfe7e02ad52fc0e2ed3 /arch/mips/kernel/vmlinux.lds.S | |
parent | [MIPS] Update defconfigs for TX39/TX49 (diff) | |
download | linux-6c76988b813ae7a9fa2282032effa6f5a66dd8d2.tar.xz linux-6c76988b813ae7a9fa2282032effa6f5a66dd8d2.zip |
[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: Daniel Jacobowitz <dan@codesourcery.com>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/kernel/vmlinux.lds.S')
-rw-r--r-- | arch/mips/kernel/vmlinux.lds.S | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/mips/kernel/vmlinux.lds.S b/arch/mips/kernel/vmlinux.lds.S index bc9bae2a73f4..60bbaecde187 100644 --- a/arch/mips/kernel/vmlinux.lds.S +++ b/arch/mips/kernel/vmlinux.lds.S @@ -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) } |