changeset 1707:0943943e5b80

+ * src/synth.ld: Added the 2ram section needed for flash devices
author asl
date Thu, 05 Aug 2004 13:52:36 +0000
parents 3845779eca10
children e7f2b3b6c889
files packages/hal/synth/arch/current/ChangeLog packages/hal/synth/arch/current/src/synth.ld
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/synth/arch/current/ChangeLog
+++ b/packages/hal/synth/arch/current/ChangeLog
@@ -3,6 +3,10 @@ 2004-08-04  Alexander Neundorf <alexande
 	* include/hal_io.h: Add cyg_hal_sys_mkdir() system call
 	* include/hal_intr.h: Add HAL_PLATFORM_RESET() macro
 
+2004-07-04  Andrew Lunn  <andrew.lunn@ascom.ch>
+
+	* src/synth.ld: Added the 2ram section needed for flash devices
+
 2004-06-21  Alexander Neundorf <alexander.neundorf@jenoptik.com>
 
 	* include/hal_io.h: 
--- a/packages/hal/synth/arch/current/src/synth.ld
+++ b/packages/hal/synth/arch/current/src/synth.ld
@@ -184,6 +184,7 @@ GROUP(libtarget.a libgcc.a)
      __DTOR_LIST__ = ABSOLUTE(.);                                            	\
        KEEP(*(SORT(.dtors*))) __DTOR_END__ = ABSOLUTE(.);                    	\
     . = ALIGN(32);                                                              \
+    KEEP(*( SORT (.ecos.table.cyg_flashdev.*)));                                             \
     KEEP(*( SORT (.ecos.table.*)));                                             \
     _GOT2_START_ = ABSOLUTE(.); *(.got2) _GOT2_END_ = ABSOLUTE(.);              \
     _GOT_START_ = ABSOLUTE(.); _GLOBAL_OFFSET_TABLE_ = ABSOLUTE(. + 32768);     \
@@ -192,7 +193,9 @@ GROUP(libtarget.a libgcc.a)
       /* We want the small data sections together, so single-instruction */     \
       /* offsets can access them all, and initialized data all before    */     \
       /* uninitialized, so we can shorten the on-disk segment size.      */     \
-    _SDATA_START_ = ABSOLUTE(.); *(.sdata*) *(.gnu.linkonce.s.*) }              \
+    _SDATA_START_ = ABSOLUTE(.); *(.sdata*) *(.gnu.linkonce.s.*)                \
+    *(.dynamic) *(.sdata*) *(.gnu.linkonce.s.*)                                 \
+    . = ALIGN (4); *(.2ram.*) }                                                 \
     > _region_                                                                  \
     __rom_data_start = LOADADDR(.data);                                         \
     __ram_data_end = .; PROVIDE(__ram_data_end = .);                            \