heap和stack
.heap :
{
. = ALIGN(8);
__end__ = .;
PROVIDE(end = .);
PROVIDE(_end = .);
PROVIDE(__end = .);
__HeapBase = .;
. += _minimum_heap_size;
__HeapEnd = .;
__heap_end = .;
} >RAM
.stack :
{
. = ALIGN(8);
. += _minimum_stack_size;
} >RAM
/* Define the stack. The stack is full descending so begins just above last byte
of RAM. Note that EABI requires the stack to be 8-byte aligned for a call. */
_estack = ORIGIN(RAM) + LENGTH(RAM) - _estack_reserve;
_sstack = _estack - _minimum_heap_size;
PROVIDE(__stack = _estack);
|