fixed-sized memory pool allocator
[cortex-from-scratch] / link.ld
diff --git a/link.ld b/link.ld
index 00ce90e..db37888 100644 (file)
--- a/link.ld
+++ b/link.ld
@@ -1,21 +1,29 @@
+/* */
 MEMORY
 {
-       FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 512K
+       FLASH (xr) : ORIGIN = 0x08000000, LENGTH = 512K
        SRAM (xrw) : ORIGIN = 0x20000000, LENGTH = 64K
-}
+} 
 
-ENTRY(_start)
+ENTRY(_start) 
 
 SECTIONS
 {
+       . = 0x0;
        .text : ALIGN(4)
        {
                /* (.vector_table */ 
                *(.text)
-
-       } > FLASH
-       .data : 
+               *(.rodata)
+       }
+        . = 0x20000000;        
+       .data :  
        {
                *(.data)
-       } > SRAM
+       } 
+       .bss : ALIGN(256) 
+       {
+               *(.bss)
+       }
+               _endofbss = .;  
 }