X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Fcortex-m3%2Fscripts%2Fcortex-m3_rom.ld;h=94a181363000e522a58d6d4c3326c9e8cc747724;hb=8b2212317e8a6f509aab193734bc87e4a28f58ca;hp=c488d06f2408799f81a2ab54b2fe4c6bdad0a0e1;hpb=e246ec67f269cbe2925e91a6900b8a4d746ded8f;p=bertos.git diff --git a/bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld b/bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld index c488d06f..94a18136 100644 --- a/bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld +++ b/bertos/cpu/cortex-m3/scripts/cortex-m3_rom.ld @@ -38,10 +38,6 @@ 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);