[uClinux-dev] [PATCH] elf2flt.ld: Add additional DWARF debug sections

Atle Nissestad atle at nissestad.no
Tue Nov 27 16:37:02 EST 2007


The patch below adds two additional DWARF2 debug sections from the standard binutils linker-script.
This is required to fix gdb DWARF errors on nios2.

Signed-off-by: Atle Nissestad <atle at nissestad.no>
---
 elf2flt.ld |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/elf2flt.ld b/elf2flt.ld
index b5d5a76..2636b14 100644
--- a/elf2flt.ld
+++ b/elf2flt.ld
@@ -177,4 +177,6 @@ SINGLE_LINK:	KEEP (*(SORT(.dtors.*)))
 	.debug_line 0 : { *(.debug_line) }
 	.debug_pubnames 0 : { *(.debug_pubnames) }
 	.debug_aranges 0 : { *(.debug_aranges) }
+	.debug_frame    0 : { *(.debug_frame) }
+	.debug_str      0 : { *(.debug_str) }
 }
-- 
1.5.3.2



More information about the uClinux-dev mailing list