Go to file
Stephen Heumann 76ba56a36b Allow 2-byte RELEXPR records to be used for branches of + or - 64KB.
Previously, the linker gave an error if the relative displacement was more than + or - 32 KB. But 2-byte RELEXPR records are typically used for the operand of the BRL instruction, and since its address calculation wraps around within the program bank, it can effectively address + or - 64KB (i.e. any location within the program bank). Similar reasoning applies to PER, the other instruction using long relative addressing.

This would give an error in code like the following:

bigbrl  start
        brl     later
        ds      33000  ; realistic examples would have actual code here
later   rtl
        end

(This currently also gives an assembler error due to similar logic in ORCA/M, but the output file can be linked anyway.)

This issue can affect very large functions compiled with ORCA/C or ORCA/Pascal, which may sometimes have branches that go more than 32 KB forward or back.
2021-02-19 18:18:47 -06:00
obj The ORCA Linker 2.0.3 from the Opus ][ CD 2017-10-01 21:26:59 -06:00
backup convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
build.ninja add makefile and ninja file for use with Golden Gate. 2017-10-02 16:01:45 -04:00
count convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
directpage convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
exp.asm convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
exp.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
file.asm Fix bug in handling of pathname buffers at the very beginning of a bank. 2017-10-08 20:47:06 -05:00
file.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
GNUmakefile add makefile and ninja file for use with Golden Gate. 2017-10-02 16:01:45 -04:00
LICENSE The ORCA Linker 2.0.3 from the Opus ][ CD 2017-10-01 21:26:59 -06:00
linker.asm Update linker version number to 2.0.5. 2018-09-15 16:40:23 -05:00
linker.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
linker.notes Update linker release notes. 2018-09-15 16:40:45 -05:00
linker.rez Update linker version number to 2.0.5. 2018-09-15 16:40:23 -05:00
linkit convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
make convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
out.asm Accept DVR, LDF, and FST as valid KeepType values. 2018-09-13 18:14:09 -05:00
out.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
pass1.asm convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
pass1.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
pass2.asm Allow 2-byte RELEXPR records to be used for branches of + or - 64KB. 2021-02-19 18:18:47 -06:00
pass2.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
README.md The ORCA Linker 2.0.3 from the Opus ][ CD 2017-10-01 21:26:59 -06:00
seg.asm Search for object files under both lower- and upper-case extensions. 2018-09-15 16:20:18 -05:00
seg.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
smac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
symbol.asm Fix bugs in handling of symbol table entries at the very beginning of a bank. 2017-10-08 20:46:55 -05:00
symbol.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00
util.asm fix typos. 2017-10-23 09:32:39 -04:00
util.mac convert CR files to LF for better git compatibility. 2017-10-02 09:35:05 -04:00

Linker

Apple IIGS ORCA Linker, a link editor for the Apple IIGS object module format

If you would like to make changes to this linker and distribute them to others, feel free to submit them here. If the changes apply to compilation on and for an Apple IIGS, they will generally be approved for distribution on the master branch. For changes that run on a different platform, the project will either be forked or a new repository will be created, as appropriate.

The general conditions that must be met before a change is released on master are:

  1. The modified linker must compile under the currently released version of ORCA/M.

  2. The ORCA compilers must pass their test suites using the new linker, or the test suite must be suitably modified, too.

Contact support@byteworks.us if you need contributor access.

A complete distribution of the ORCA languages, including installers and documentation, is available from the Juiced GS store at https://juiced.gs/store/category/software/. It is distributed as part of the Opus ][ package.