aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/kernel
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-08-03 11:43:01 -0400
committerRalf Baechle <ralf@linux-mips.org>2007-08-26 21:16:53 -0400
commit6c76988b813ae7a9fa2282032effa6f5a66dd8d2 (patch)
tree67257bb131d6f4c2436d0cfe7e02ad52fc0e2ed3 /arch/mips/kernel
parentbda4d16cee1b70c61392bb76cb4119179348c176 (diff)
[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')
-rw-r--r--arch/mips/kernel/vmlinux.lds.S7
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
142 *(.exitcall.exit) 142 *(.exitcall.exit)
143 143
144 /* ABI crap starts here */ 144 /* ABI crap starts here */
145 *(.comment)
146 *(.MIPS.options) 145 *(.MIPS.options)
147 *(.note)
148 *(.options) 146 *(.options)
149 *(.pdr) 147 *(.pdr)
150 *(.reginfo) 148 *(.reginfo)
151 *(.mdebug*)
152 } 149 }
153 150
151 /* These mark the ABI of the kernel for debuggers. */
152 .mdebug.abi32 : { KEEP(*(.mdebug.abi32)) }
153 .mdebug.abi64 : { KEEP(*(.mdebug.abi64)) }
154
154 /* This is the MIPS specific mdebug section. */ 155 /* This is the MIPS specific mdebug section. */
155 .mdebug : { *(.mdebug) } 156 .mdebug : { *(.mdebug) }
156 157