cpu/kinetis_common/ldscripts: adapt for newlib module
This commit is contained in:
parent
7bc468a54e
commit
072d0a80c7
@ -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) }
|
||||
|
||||
@ -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) }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user