cpu/kinetis_common/ldscripts: adapt for newlib module

This commit is contained in:
Johann Fischer 2015-05-27 18:12:08 +02:00 committed by Johann F
parent 7bc468a54e
commit 072d0a80c7
2 changed files with 11 additions and 24 deletions

View File

@ -205,18 +205,6 @@ SECTIONS
__end__ = .;
PROVIDE(end = .);
. = ALIGN(4);
HEAP_SIZE = ORIGIN(sram_u) + LENGTH(sram_u) - STACK_SIZE - .;
.heap (NOLOAD):
{
_heap_start = .;
PROVIDE(__heap_start = .); /*__heap_start = .; */
. = . + HEAP_SIZE;
_heap_end = .;
PROVIDE(__heap_max = .);
} > sram_u
/* stack section */
.stack (NOLOAD):
{
@ -227,6 +215,11 @@ SECTIONS
_estack = .;
} > sram_u
/* heap section */
. = ALIGN(8);
_sheap = . ;
_eheap = ORIGIN(sram_u) + LENGTH(sram_u);
/* Any debugging sections */
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }

View File

@ -189,27 +189,21 @@ SECTIONS
__end__ = .;
PROVIDE(end = .);
. = ALIGN(8);
HEAP_SIZE = ORIGIN(sram) + LENGTH(sram) - STACK_SIZE - .;
.heap (NOLOAD):
{
_heap_start = .;
PROVIDE(__heap_start = .);
. = . + HEAP_SIZE;
_heap_end = .;
PROVIDE(__heap_max = .);
} > sram
/* stack section */
.stack (NOLOAD):
{
. = ALIGN(8);
_sstack = .;
. = . + STACK_SIZE;
. = ALIGN(8);
_estack = .;
} > sram
/* heap section */
. = ALIGN(8);
_sheap = . ;
_eheap = ORIGIN(sram) + LENGTH(sram);
/* Any debugging sections */
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }