Files
super6502/sw/test_code/sd_controller_test/link.ld
2024-07-21 18:58:35 -07:00

32 lines
903 B
Plaintext

MEMORY
{
RAM: start = $0000, size = $200;
SDRAM: start = $200, size = $de00;
ROM: start = $F000, size = $1000, file = %O;
}
SEGMENTS {
ZEROPAGE: load = RAM, type = zp, define = yes;
DATA: load = ROM, type = rw, define = yes;
CODE: load = ROM, type = ro;
RODATA: load = ROM, type = ro;
VECTORS: load = ROM, type = ro, start = $FFFA;
}
FEATURES {
CONDES: segment = STARTUP,
type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__;
CONDES: segment = STARTUP,
type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__;
}
SYMBOLS {
# Define the stack size for the application
__STACKSIZE__: value = $0800, type = weak;
__STACKSTART__: type = weak, value = $0200; # 2k stack
}