Skip to content

Commit

Permalink
[MIPS] Do not discard extra debugging sections.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Daniel Jacobowitz authored and Ralf Baechle committed Aug 27, 2007
1 parent bda4d16 commit 6c76988
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions arch/mips/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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) }

Expand Down

0 comments on commit 6c76988

Please sign in to comment.