]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - embedded/board/arm/ul_usb1/libs/ldscripts/lpc2103.ld-flash
Update of system-less architecture and board support code to actual uLAN.sf.net version.
[lincan.git] / embedded / board / arm / ul_usb1 / libs / ldscripts / lpc2103.ld-flash
index e1a20c6d2c85f17a7473cd41ea5098f5df668def..6e09d5d529a39fcce87f233cf1d139d0d9b1b856 100644 (file)
@@ -10,6 +10,7 @@ INCLUDE "lpc2103.ld-cfg"
 STARTUP(startup.o) 
 
 PROVIDE (_setup_board = 0);
+PROVIDE (_mem_app_start = 0);
 
 /* Section Definitions */
 SECTIONS
@@ -20,12 +21,13 @@ SECTIONS
   {
     . = ALIGN(4);
     *(.ivt)
-    *(.text)                   /* remaining code */
-    *(.rodata)                 /* read-only data (constants) */
+    *(.text .stub .text.* .gnu.linkonce.t.*)   /* code */
+    *(.rodata .rodata.* .gnu.linkonce.r.*)     /* read-only data */
     *(.rodata*)
     *(.glue_7)
     *(.glue_7t)
-    _etext = ALIGN( 4 ) ;
+    . = ALIGN( 4 ) ;
+    _etext = . ;
   } > FLASH
 
   /* .data section which is used for initialized data */
@@ -35,8 +37,9 @@ SECTIONS
   {
     . = ALIGN(4);
     _data = .;
-    *(.data)
-    _edata = ALIGN( 4 ) ;
+    *(.data .data.* .gnu.linkonce.d.*)
+    . = ALIGN( 4 ) ;
+    _edata = . ;
   } > RAM
  
   /* .bss section which is used for uninitialized data */
@@ -45,11 +48,12 @@ SECTIONS
     . = ALIGN(4);
     __bss_start = . ;
     __bss_start__ = . ;
-    *(.bss)
+    *(.bss .bss.*)
     *(COMMON)
-    __bss_end__ = ALIGN( 4 ) ;
-    end = ALIGN( 4 ) ;
-    _end = ALIGN( 4 ) ;
+    . = ALIGN( 4 ) ;
+    __bss_end__ = . ;
+    end = . ;
+    _end = . ;
   } > RAM
 
   .stack :