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 <[EMAIL PROTECTED]>
---
 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

_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to