mirror of
https://github.com/fadden/6502bench.git
synced 2024-11-26 06:49:19 +00:00
2065f4ef9e
This worked, sort of. The problem is that SourceGen will revert to hex output in certain situations, such as a broken symbolic reference. There happens to be one in the ZIPPY example, and it's on a relative branch. The goal with the segment stuff is to allow cc65 to treat the source as relocatable code. In that context, a relative branch to an absolute address doesn't make any sense, so the assembler reports a range error. We don't currently have a mechanism that guarantees no references are broken (and no affordance for finding them), so we can't make this mode the default yet. Instead, we continue to use the generic config, but generate the correct set of lines as comments. (issue #39)
14 lines
353 B
INI
14 lines
353 B
INI
# 6502bench SourceGen generated linker script for 2007-labels-and-symbols
|
|
MEMORY {
|
|
MAIN: file=%O, start=%S, size=65536;
|
|
# MEM000: file=%O, start=$12345, size=279;
|
|
# MEM001: file=%O, start=$1000, size=416;
|
|
}
|
|
SEGMENTS {
|
|
CODE: load=MAIN, type=rw;
|
|
# SEG000: load=MEM000, type=rw;
|
|
# SEG001: load=MEM001, type=rw;
|
|
}
|
|
FEATURES {}
|
|
SYMBOLS {}
|