mem: starting to get memory manager working

Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
2019-12-24 09:33:02 +08:00
parent 9a4d002832
commit 8521093f6d
8 changed files with 217 additions and 71 deletions

View File

@ -74,23 +74,23 @@ SECTIONS
_ebss = .;
} > REGION_BSS
/* fictitious region that represents the memory available for the heap */
.heap (NOLOAD) :
{
_sheap = .;
. += _heap_size;
. = ALIGN(4);
_eheap = .;
} > REGION_HEAP
/* fictitious region that represents the memory available for the stack */
.stack (NOLOAD) :
{
_estack = .;
. = _stack_start;
PROVIDE(_stack_start = .);
. += _stack_size;
_sstack = .;
} > REGION_STACK
/* fictitious region that represents the memory available for the heap */
.heap (NOLOAD) :
{
. = ALIGN(4);
_sheap = .;
/* _eheap is defined elsewhere and is the remainder of RAM */
} > REGION_HEAP
/* fake output .got section */
/* Dynamic relocations are unsupported. This section is only used to detect
relocatable code in the input files and raise an error if relocatable code