28 lines
581 B
Batchfile
28 lines
581 B
Batchfile
![]() |
RAMSTART = 0x00020000;
|
||
|
RAMSIZE = 0x00040000;
|
||
|
STACKLEN = 0x400;
|
||
|
|
||
|
MEMORY
|
||
|
{
|
||
|
vec : org = 0, len = 0x400
|
||
|
ram : org = RAMSTART, len = RAMSIZE - STACKLEN
|
||
|
}
|
||
|
|
||
|
SECTIONS
|
||
|
{
|
||
|
vectors : { *(VECTORS) } >vec
|
||
|
text ALIGN(0x04) : { *(CODE) } >ram
|
||
|
.dtors ALIGN(0x04) : { *(.dtors) } >ram
|
||
|
.ctors ALIGN(0x04) : { *(.ctors) } >ram
|
||
|
rodata : { *(RODATA) } >ram
|
||
|
data : {*(DATA) } >ram
|
||
|
bss (NOLOAD): {*(BSS)} >ram
|
||
|
|
||
|
___heap = ADDR(bss) + SIZEOF(bss);
|
||
|
___heapend = RAMSTART + RAMSIZE - STACKLEN;
|
||
|
___BSSSTART = ADDR(bss);
|
||
|
___BSSSIZE = SIZEOF(bss);
|
||
|
|
||
|
___STACK = RAMSTART + RAMSIZE;
|
||
|
}
|