mirror of
https://github.com/cc65/cc65.git
synced 2025-01-19 17:31:31 +00:00
Made EXTZP segment option for modules.
This allows to remove the "add empty EXTZP segement to avoid warnings" approach.
This commit is contained in:
parent
3af758ced5
commit
5edcd639e0
@ -10,7 +10,7 @@ SEGMENTS {
|
|||||||
DATA: load = COMBINED, type = rw, define = yes;
|
DATA: load = COMBINED, type = rw, define = yes;
|
||||||
BSS: load = COMBINED, type = bss, define = yes;
|
BSS: load = COMBINED, type = bss, define = yes;
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
EXTZP: load = ZP, type = zp;
|
EXTZP: load = ZP, type = zp, optional = yes;
|
||||||
}
|
}
|
||||||
FILES {
|
FILES {
|
||||||
%O: format = o65;
|
%O: format = o65;
|
||||||
|
@ -22,10 +22,3 @@ tmp2: .res 1
|
|||||||
tmp3: .res 1
|
tmp3: .res 1
|
||||||
tmp4: .res 1
|
tmp4: .res 1
|
||||||
regbank: .res regbanksize ; Register bank
|
regbank: .res regbanksize ; Register bank
|
||||||
|
|
||||||
; Add an empty EXTZP zeropage segment to avoid linker warnings that this
|
|
||||||
; segment does not exist (it does not exist in most builtin linker configs
|
|
||||||
; but is used when linking modules).
|
|
||||||
|
|
||||||
.segment "EXTZP" : zeropage
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user