added 1 changeset to branch 'refs/remotes/mmu_man-github/sam460ex' old head: 00661368a2414389c5342b3ccb2940bd9c329d57 new head: 2441f3ed909b7c670beb461f400235fef2b332af overview: https://github.com/mmuman/haiku/compare/0066136...2441f3e ---------------------------------------------------------------------------- 2441f3e: PPC: add debug sections to the linked kernel Seems to be needed for gdb. [ François Revol <revol@xxxxxxx> ] ---------------------------------------------------------------------------- Commit: 2441f3ed909b7c670beb461f400235fef2b332af Author: François Revol <revol@xxxxxxx> Date: Sat Feb 23 17:25:36 2013 UTC ---------------------------------------------------------------------------- 1 file changed, 30 insertions(+) src/system/ldscripts/ppc/kernel.ld | 30 ++++++++++++++++++++++++++++++ ---------------------------------------------------------------------------- diff --git a/src/system/ldscripts/ppc/kernel.ld b/src/system/ldscripts/ppc/kernel.ld index 0814a0f..fbeb669 100644 --- a/src/system/ldscripts/ppc/kernel.ld +++ b/src/system/ldscripts/ppc/kernel.ld @@ -91,6 +91,36 @@ SECTIONS _end = . ; + /* Stabs debugging sections. */ + .stab 0 : { *(.stab) } + .stabstr 0 : { *(.stabstr) } + /* DWARF debug sections. + Symbols in the DWARF debugging sections are relative to the beginning + of the section so we begin them at 0. */ + /* DWARF 1 */ + .debug 0 : { *(.debug) } + .line 0 : { *(.line) } + /* GNU DWARF 1 extensions */ + .debug_srcinfo 0 : { *(.debug_srcinfo) } + .debug_sfnames 0 : { *(.debug_sfnames) } + /* DWARF 1.1 and DWARF 2 */ + .debug_aranges 0 : { *(.debug_aranges) } + .debug_pubnames 0 : { *(.debug_pubnames) } + /* DWARF 2 */ + .debug_info 0 : { *(.debug_info) } + .debug_abbrev 0 : { *(.debug_abbrev) } + .debug_line 0 : { *(.debug_line) } + .debug_frame 0 : { *(.debug_frame) } + .debug_str 0 : { *(.debug_str) } + .debug_loc 0 : { *(.debug_loc) } + .debug_macinfo 0 : { *(.debug_macinfo) } + /* SGI/MIPS DWARF 2 extensions */ + .debug_weaknames 0 : { *(.debug_weaknames) } + .debug_funcnames 0 : { *(.debug_funcnames) } + .debug_typenames 0 : { *(.debug_typenames) } + .debug_varnames 0 : { *(.debug_varnames) } + /* These must appear regardless of . */ + /* Strip unnecessary stuff */ /DISCARD/ : { *(.comment .note .eh_frame .dtors .debug_*) }