snes: increase ROM size

Our image is to long to fit in a small ROM.  Attempt to adjust the
linker script to make a longer ROM
This commit is contained in:
Vince Weaver 2013-01-16 14:10:13 -05:00
parent fe3dddef8e
commit 8d2a716d3f

View File

@ -1,42 +1,43 @@
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
MEMORY {
ROMST: start = $008000, size = $7fc0, type = ro, file = %O, fill = yes, define = yes;
ROMINFO: start = $00ffc0, size = $0040, type = ro, file = %O, fill = yes, define = yes;
ZP: start = $000000, size = $0020, type = rw, define = yes;
RAM: start = $7e2000, size = $e000, type = rw, define = yes;
STACK: start = $000000, size = $2000, type = rw, define = yes;
SRAM: start = $006000, size = $2000, type = rw, define = yes;
}
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
SEGMENTS {
STARTUP: load = ROMST, type = ro, define = yes;
CARTINFO: load = ROMINFO, type = ro, define = yes;
RODATA: load = ROMST, type = ro, define = yes;
DATA: load = ROMST, run = RAM,type = rw, define = yes;
BSS: load = RAM, type = bss, define = yes;
ZEROPAGE: load = ZP, type = zp;
CODE: load = ROMST, type = ro, define = yes;
}
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
FEATURES {
CONDES: segment = RODATA,
type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__;
CONDES: segment = RODATA,
type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__;
}
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
#SYMBOLS {
# __STACKSIZE__ = $0200;
#}
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
MEMORY {
ROMST: start = $008000, size = $7fc0, type = ro, file = %O, fill = yes, define = yes;
ROMINFO: start = $00ffc0, size = $0040, type = ro, file = %O, fill = yes, define = yes;
ZP: start = $000000, size = $0020, type = rw, define = yes;
RAM: start = $7e2000, size = $e000, type = rw, define = yes;
STACK: start = $000000, size = $2000, type = rw, define = yes;
SRAM: start = $006000, size = $2000, type = rw, define = yes;
HIGHROM: start = $c00000, size = $10000, type = ro, file = %O, fill = yes, define = yes;
}
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
SEGMENTS {
STARTUP: load = ROMST, type = ro, define = yes;
CARTINFO: load = ROMINFO, type = ro, define = yes;
RODATA: load = HIGHROM, type = ro, define = yes;
DATA: load = ROMST, run = RAM,type = rw, define = yes;
BSS: load = RAM, type = bss, define = yes;
ZEROPAGE: load = ZP, type = zp;
CODE: load = ROMST, type = ro, define = yes;
}
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
FEATURES {
CONDES: segment = RODATA,
type = constructor,
label = __CONSTRUCTOR_TABLE__,
count = __CONSTRUCTOR_COUNT__;
CONDES: segment = RODATA,
type = destructor,
label = __DESTRUCTOR_TABLE__,
count = __DESTRUCTOR_COUNT__;
}
#------------------------------------------------------------------------------
#
#------------------------------------------------------------------------------
#SYMBOLS {
# __STACKSIZE__ = $0200;
#}