changeset 779:477c019aaed5

Merge debug info linker script changes from trunk
author bartv
date Wed, 26 Mar 2003 16:14:11 +0000
parents 45be05d8085f
children 0d70a5aa7a16
files packages/hal/mn10300/am31/current/ChangeLog packages/hal/mn10300/am31/current/src/mn10300_am31.ld packages/hal/mn10300/am33/current/ChangeLog packages/hal/mn10300/am33/current/src/mn10300_am33.ld
diffstat 4 files changed, 62 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/mn10300/am31/current/ChangeLog
+++ b/packages/hal/mn10300/am31/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-14  Bart Veer  <bartv@ecoscentric.com>
+
+	* src/mn10300_am31.ld: add entries for debug sections, needed by
+	current tools
+
 2002-05-21  Jesper Skov  <jskov@redhat.com>
 
 	* include/var_cache.h (HAL_DCACHE_STORE): Fix warning.
--- a/packages/hal/mn10300/am31/current/src/mn10300_am31.ld
+++ b/packages/hal/mn10300/am31/current/src/mn10300_am31.ld
@@ -7,6 +7,7 @@
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
+// Copyright (C) 2003 Bart Veer
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under
@@ -120,7 +121,31 @@ GROUP(libtarget.a libgcc.a)
     __bss_end = ABSOLUTE (.); } \
     > _region_
 
-#define SECTIONS_END . = ALIGN(4); _end = .; PROVIDE (end = .);
+#define SECTIONS_END . = ALIGN(4); _end = .; PROVIDE (end = .);	\
+  .stab 0 : { *(.stab) }			\
+  .stabstr 0 : { *(.stabstr) }			\
+  .stab.excl 0 : { *(.stab.excl) }		\
+  .stab.exclstr 0 : { *(.stab.exclstr) }	\
+  .stab.index 0 : { *(.stab.index) }		\
+  .stab.indexstr 0 : { *(.stab.indexstr) }	\
+  .comment 0 : { *(.comment) }			\
+  .debug          0 : { *(.debug) }		\
+  .line           0 : { *(.line) }		\
+  .debug_srcinfo  0 : { *(.debug_srcinfo) }	\
+  .debug_sfnames  0 : { *(.debug_sfnames) }	\
+  .debug_aranges  0 : { *(.debug_aranges) }	\
+  .debug_pubnames 0 : { *(.debug_pubnames) }	\
+  .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) }	\
+  .debug_weaknames 0 : { *(.debug_weaknames) }	\
+  .debug_funcnames 0 : { *(.debug_funcnames) }	\
+  .debug_typenames 0 : { *(.debug_typenames) }	\
+  .debug_varnames  0 : { *(.debug_varnames) }
 
 #include CYGHWR_MEMORY_LAYOUT_LDI
 
--- a/packages/hal/mn10300/am33/current/ChangeLog
+++ b/packages/hal/mn10300/am33/current/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-14  Bart Veer  <bartv@ecoscentric.com>
+
+	* src/mn10300_am33.ld: add entries for debug sections, needed by
+	current tools
+
 2002-12-06  Mark Salter  <msalter@redhat.com>
 
 	* src/var_misc.c (hal_mn10300_mem_real_region_top): New function.
--- a/packages/hal/mn10300/am33/current/src/mn10300_am33.ld
+++ b/packages/hal/mn10300/am33/current/src/mn10300_am33.ld
@@ -7,6 +7,7 @@
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
+// Copyright (C) 2003 Bart Veer
 // Copyright (C) 1998, 1999, 2000, 2001, 2002 Red Hat, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under
@@ -120,7 +121,31 @@ GROUP(libtarget.a libgcc.a)
     __bss_end = ABSOLUTE (.); } \
     > _region_
 
-#define SECTIONS_END . = ALIGN(4); _end = .; PROVIDE (end = .);
+#define SECTIONS_END . = ALIGN(4); _end = .; PROVIDE (end = .);	\
+  .stab 0 : { *(.stab) }			\
+  .stabstr 0 : { *(.stabstr) }			\
+  .stab.excl 0 : { *(.stab.excl) }		\
+  .stab.exclstr 0 : { *(.stab.exclstr) }	\
+  .stab.index 0 : { *(.stab.index) }		\
+  .stab.indexstr 0 : { *(.stab.indexstr) }	\
+  .comment 0 : { *(.comment) }			\
+  .debug          0 : { *(.debug) }		\
+  .line           0 : { *(.line) }		\
+  .debug_srcinfo  0 : { *(.debug_srcinfo) }	\
+  .debug_sfnames  0 : { *(.debug_sfnames) }	\
+  .debug_aranges  0 : { *(.debug_aranges) }	\
+  .debug_pubnames 0 : { *(.debug_pubnames) }	\
+  .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) }	\
+  .debug_weaknames 0 : { *(.debug_weaknames) }	\
+  .debug_funcnames 0 : { *(.debug_funcnames) }	\
+  .debug_typenames 0 : { *(.debug_typenames) }	\
+  .debug_varnames  0 : { *(.debug_varnames) }
 
 #include CYGHWR_MEMORY_LAYOUT_LDI