System Calls cleanup, multiple Processes and context switch
[cortex-from-scratch] / link.ld
diff --git a/link.ld b/link.ld
index bf5b6af..63f173d 100644 (file)
--- a/link.ld
+++ b/link.ld
@@ -21,7 +21,7 @@
  *
  * */
 
-HEAP_SIZE = 0x100;
+KHEAP_SIZE = 0x100; 
 
 MEMORY
 {
@@ -38,20 +38,23 @@ SECTIONS
        {
                /* (.vector_table */
                *(.text)
-               *(.rodata)
+               *(.rodata) 
+               data_lma = .;
        }
         . = 0x20000000;        
-       .data :  
+       data_vma = .;
+       .data : AT (data_lma)
        {
                *(.data)
        } 
+       data_end = .;
        .bss : ALIGN(4) 
        {
                *(.bss)
        }
                _endofbss = .;  
        _beginofheap = .;
-       . = . + HEAP_SIZE;
+       . = . + KHEAP_SIZE;
        . = ALIGN(8);
        _endofheap = .;
 }