2021-12-06 20:25:59 -05:00
|
|
|
RAMSTART = 0x00020000;
|
2021-10-19 20:35:41 -04:00
|
|
|
RAMSIZE = 0x00030000;
|
2023-01-30 11:20:06 -05:00
|
|
|
STACKLEN = 0x800;
|
2021-11-17 13:29:42 -05:00
|
|
|
HEAPSTART = 0x00100000;
|
|
|
|
HEAPSIZE = 0x00020000;
|
2021-10-14 17:20:19 -04:00
|
|
|
|
|
|
|
MEMORY
|
|
|
|
{
|
|
|
|
vec : org = 0, len = 0x400
|
|
|
|
ram : org = RAMSTART, len = RAMSIZE - STACKLEN
|
|
|
|
}
|
|
|
|
|
|
|
|
SECTIONS
|
|
|
|
{
|
|
|
|
vectors : { *(VECTORS) } >vec
|
2021-11-17 13:29:42 -05:00
|
|
|
text ALIGN(0x02) : { *(CODE) } >ram
|
|
|
|
.dtors ALIGN(0x02) : { *(.dtors) } >ram
|
|
|
|
.ctors ALIGN(0x02) : { *(.ctors) } >ram
|
2021-10-14 17:20:19 -04:00
|
|
|
rodata : { *(RODATA) } >ram
|
|
|
|
data : {*(DATA) } >ram
|
|
|
|
bss (NOLOAD): {*(BSS)} >ram
|
|
|
|
|
2021-11-17 13:29:42 -05:00
|
|
|
___heap = HEAPSTART;
|
|
|
|
___heapend = HEAPSTART + HEAPSIZE;
|
2021-10-14 17:20:19 -04:00
|
|
|
___BSSSTART = ADDR(bss);
|
|
|
|
___BSSSIZE = SIZEOF(bss);
|
|
|
|
|
|
|
|
___STACK = RAMSTART + RAMSIZE;
|
|
|
|
}
|