]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - embedded/board/arm/ul_usb1/libs/ldscripts/lpc2105.ld-app
Update of system-less architecture and board support code to actual uLAN.sf.net version.
[lincan.git] / embedded / board / arm / ul_usb1 / libs / ldscripts / lpc2105.ld-app
index 4998f117397e8ad0a26696a41ade42f735f23c4f..a7368c8983906cacbbdfc1aa63fdb108b336a86c 100644 (file)
@@ -10,6 +10,7 @@ INCLUDE "lpc2105.ld-cfg"
 STARTUP(startup.o) 
 
 PROVIDE (_setup_board = 0);
+PROVIDE (_mem_app_start = 0);
 
 /* Section Definitions */
 SECTIONS
@@ -19,12 +20,16 @@ SECTIONS
   .text :
   {
     . = ALIGN(4);
-    *(.text)                   /* remaining code */
-    *(.rodata)                 /* read-only data (constants) */
+    *(.text)                                   /* main code */
+    *(.stub .text.* .gnu.linkonce.t.*)         /* remaining code */
+    *(.rodata .rodata.* .gnu.linkonce.r.*)     /* read-only data */
     *(.rodata*)
-    *(.glue_7)
     *(.glue_7t)
-    _etext = ALIGN( 4 ) ;
+    *(.glue_7)
+    *(.vfp11_veneer)
+    *(.v4_bx)
+    . = ALIGN( 4 ) ;
+    _etext = . ;
   } > FLASHAPP
 
   .keyval :
@@ -34,15 +39,18 @@ SECTIONS
   }> KEYVAL
 
   /* .data section which is used for initialized data */
-/*  .data : AT (_etext)\r*/
+/*  .data : AT (_etext)
+*/
   .data :
           AT ( ADDR( .text ) + SIZEOF( .text ) )
   {
     . = ALIGN(4);
     _data = .;
-    *(.ivt)
-    *(.data)
-    _edata = ALIGN( 4 ) ;
+    KEEP( *(.ivt) )
+    KEEP( *(.ivt.stub) )
+    *(.data .data.* .gnu.linkonce.d.*)
+    . = ALIGN( 4 ) ;
+    _edata = . ;
   } > RAM
  
   /* .bss section which is used for uninitialized data */
@@ -51,11 +59,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 :