Consider the segment attributes 'define' and 'optional' mutually exclusive.
In normal situations it isn't too useful to define symbols for optional segments as those symbols can't be presumed to be always present. I in fact suspect that most currently present combinations of 'define' and 'optional' aren't useful - apart form the overlay configurations of course.
This commit is contained in:
@@ -9,14 +9,14 @@ MEMORY {
|
||||
MAIN: start = %S, size = $7600 - __STACKSIZE__;
|
||||
}
|
||||
SEGMENTS {
|
||||
ZEROPAGE: load = ZP, type = zp, define = yes; # Pseudo-registers
|
||||
STARTUP: load = MAIN, type = ro; # First initialization code
|
||||
LOWCODE: load = MAIN, type = ro, optional = yes; # Legacy from other platforms
|
||||
ONCE: load = MAIN, type = ro, optional = yes; # Library initialization code
|
||||
CODE: load = MAIN, type = ro; # Program
|
||||
RODATA: load = MAIN, type = ro; # Literals, constants
|
||||
DATA: load = MAIN, type = rw; # Initialized variables
|
||||
BSS: load = MAIN, type = bss, define = yes; # Uninitialized variables
|
||||
ZEROPAGE: load = ZP, type = zp, define = yes; # Pseudo-registers
|
||||
STARTUP: load = MAIN, type = ro; # First initialization code
|
||||
LOWCODE: load = MAIN, type = ro, optional = yes; # Legacy from other platforms
|
||||
ONCE: load = MAIN, type = ro, optional = yes; # Library initialization code
|
||||
CODE: load = MAIN, type = ro; # Program
|
||||
RODATA: load = MAIN, type = ro; # Literals, constants
|
||||
DATA: load = MAIN, type = rw; # Initialized variables
|
||||
BSS: load = MAIN, type = bss, define = yes; # Uninitialized variables
|
||||
}
|
||||
FEATURES {
|
||||
CONDES: type = constructor,
|
||||
|
||||
Reference in New Issue
Block a user