 |
__ld_insert_compressed_rom_calls |
__ld_insert_compressed_rom_calls can be used to handle
ROM calls. It inserts references to
ROM calls in a compressed format known from Fargo but specifically altered for
TIGCC:
- If the program uses at least one ROM call...
- For each ROM call...
- Compressed index of the ROM call. The index is encoded as
in __ld_insert_compressed_relocs,
with offset being the index of the ROM call for the first
entry, and the difference of the index of this ROM call and the
index of the previous one plus 1 for the following ones. The
compressed index is considered part of the relocation table that
follows, so nibble encoding can be used.
- A compressed relocation table for this ROM call. See
__ld_insert_compressed_relocs
for the format used.
The reference symbol used if there is no previous reloc (i.e. for
the first reloc) is
__ld_compressed_rom_calls_ref
.
- 1 byte: 0
For more information on processing ROM call relocation, see
__ld_insert_kernel_rom_calls.
See also: __ld_insert_kernel_rom_calls