Trailing whitespace
[bertos.git] / bertos / cpu / cortex-m3 / scripts / cortex-m3_rom.ld
index c488d06f2408799f81a2ab54b2fe4c6bdad0a0e1..94a181363000e522a58d6d4c3326c9e8cc747724 100644 (file)
 OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm")
 OUTPUT_ARCH(arm)
 
-/*
- * Define stack size here
- */
-STACK_SIZE = 0x1000;
 
 /*
  * Allocate section memory
@@ -72,6 +68,9 @@ SECTIONS
                . = ALIGN (0x400);
                PROVIDE (__data_start = .);
                *(vtable)
+               . = ALIGN (4);
+               *(.ramfunc)
+               . = ALIGN (4);
                *(.data .data.*)
                . = ALIGN (4);
                _edata = .;
@@ -91,6 +90,7 @@ SECTIONS
        /*
         * Allocated stack at the end of bss section.
         * Data heap is allocate at end of stack.
+        * STACK_SIZE variable is defined in the CPU specific linker script file.
         */
        PROVIDE (__msp_start = .);
        . = ALIGN(8);