cpu/kinetis_common/ldscripts: adapt for newlib module
This commit is contained in:
parent
7bc468a54e
commit
072d0a80c7
@ -205,18 +205,6 @@ SECTIONS
|
|||||||
__end__ = .;
|
__end__ = .;
|
||||||
PROVIDE(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 section */
|
||||||
.stack (NOLOAD):
|
.stack (NOLOAD):
|
||||||
{
|
{
|
||||||
@ -227,6 +215,11 @@ SECTIONS
|
|||||||
_estack = .;
|
_estack = .;
|
||||||
} > sram_u
|
} > sram_u
|
||||||
|
|
||||||
|
/* heap section */
|
||||||
|
. = ALIGN(8);
|
||||||
|
_sheap = . ;
|
||||||
|
_eheap = ORIGIN(sram_u) + LENGTH(sram_u);
|
||||||
|
|
||||||
/* Any debugging sections */
|
/* Any debugging sections */
|
||||||
/* Stabs debugging sections. */
|
/* Stabs debugging sections. */
|
||||||
.stab 0 : { *(.stab) }
|
.stab 0 : { *(.stab) }
|
||||||
|
|||||||
@ -189,27 +189,21 @@ SECTIONS
|
|||||||
__end__ = .;
|
__end__ = .;
|
||||||
PROVIDE(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 section */
|
||||||
.stack (NOLOAD):
|
.stack (NOLOAD):
|
||||||
{
|
{
|
||||||
. = ALIGN(8);
|
. = ALIGN(8);
|
||||||
_sstack = .;
|
_sstack = .;
|
||||||
. = . + STACK_SIZE;
|
. = . + STACK_SIZE;
|
||||||
|
. = ALIGN(8);
|
||||||
_estack = .;
|
_estack = .;
|
||||||
} > sram
|
} > sram
|
||||||
|
|
||||||
|
/* heap section */
|
||||||
|
. = ALIGN(8);
|
||||||
|
_sheap = . ;
|
||||||
|
_eheap = ORIGIN(sram) + LENGTH(sram);
|
||||||
|
|
||||||
/* Any debugging sections */
|
/* Any debugging sections */
|
||||||
/* Stabs debugging sections. */
|
/* Stabs debugging sections. */
|
||||||
.stab 0 : { *(.stab) }
|
.stab 0 : { *(.stab) }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user