# HG changeset patch # User asl # Date 1091713956 0 # Node ID 0943943e5b802ed35fc024b2690d0674f7f3c35c # Parent 3845779eca10ef7f7970fa5647fade6251c3f61b + * src/synth.ld: Added the 2ram section needed for flash devices diff --git a/packages/hal/synth/arch/current/ChangeLog b/packages/hal/synth/arch/current/ChangeLog --- a/packages/hal/synth/arch/current/ChangeLog +++ b/packages/hal/synth/arch/current/ChangeLog @@ -3,6 +3,10 @@ 2004-08-04 Alexander Neundorf + + * src/synth.ld: Added the 2ram section needed for flash devices + 2004-06-21 Alexander Neundorf * include/hal_io.h: diff --git a/packages/hal/synth/arch/current/src/synth.ld b/packages/hal/synth/arch/current/src/synth.ld --- 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 = .); \