]> rtime.felk.cvut.cz Git - sysless.git/blobdiff - board/arm/lpc17xx-common/libs/ldscripts/lpc1754.ld-boot
iap_kvpb: create the library at the level arch not in the machine level.
[sysless.git] / board / arm / lpc17xx-common / libs / ldscripts / lpc1754.ld-boot
index 9d9a68cda145ca0b732946787d805d03118d6e41..aab0285df39155f167a21cb3f207ab448c41382f 100644 (file)
@@ -10,8 +10,6 @@ INCLUDE "lpc1754.ld-cfg"
 
 PROVIDE (_setup_board = 0);
 
-irq_table_size_init = 4 * (16+33);
-
 /* SECTION command : Define mapping of input sections */
 /* into output sections. */
 
@@ -32,7 +30,7 @@ SECTIONS
                *(.gcc_except_table)
                *(.rodata .rodata*)
                *(.gnu.linkonce.r.*)
-       } >IROM
+       } >FLASHBOOT
 
        /******************************************/
        /* .ctors .dtors are used for c++ constructors/destructors */
@@ -43,7 +41,7 @@ SECTIONS
                KEEP(*(SORT(.ctors.*)))
                KEEP(*(.ctors))
                PROVIDE(__ctors_end = .);
-       } >IROM
+       } >FLASHBOOT
 
        .dtors :
        {
@@ -57,9 +55,20 @@ SECTIONS
                /* End Of .text section */
                _etext = .;
                 _sifastcode = .;
-       } >IROM
+       } >FLASHBOOT
        
 
+        .keyval :
+        {
+                PROVIDE (_keyval_start = .);
+                PROVIDE (_keyval_page_len = KEYVAL_PAGE_LEN );
+        }> KEYVAL
+
+        .app :
+        {
+                PROVIDE (_mem_app_start = . );
+          } > FLASHAPP
+
         .irqarea (NOLOAD):
         {
                 . = ALIGN (256);
@@ -83,7 +92,7 @@ SECTIONS
           . = ALIGN (4);
           _efastcode = . ;
           _sidata = .;
-        } >IRAM0 AT>IROM
+        } >IRAM0 AT>FLASHBOOT
 
        /******************************************/
        /* This used for USB RAM section */
@@ -106,7 +115,7 @@ SECTIONS
 
                . = ALIGN(4);
                _edata = . ;
-       } >IRAM0 AT>IROM
+       } >IRAM0 AT>FLASHBOOT
 
        /******************************************/
        /* For no-init variables section */