insert_mlink_rom_calls.hss 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. [Main]
  2. Title=__ld_insert_mlink_rom_calls
  3. See Also=insert_kernel_rom_calls: __ld_insert_kernel_rom_calls
  4. [Top]
  5. __ld_insert_mlink_rom_calls can be used to handle
  6. <A HREF="$$LINK(symbols_rom_call)">ROM calls</A>. It inserts references to
  7. ROM calls in a compressed format known from mlink but specifically altered for
  8. TIGCC:
  9. <UL>
  10. <LI>If the program uses at least one ROM call...
  11. <UL>
  12. <LI>For each ROM call...
  13. <UL>
  14. <LI>Mlink-type <I>index</I> of the ROM call. The index is encoded as
  15. in <A HREF="$$LINK(insert_mlink_relocs)">__ld_insert_mlink_relocs</A>,
  16. with <I>offset</I> being the index of the ROM call for the first
  17. entry, and the difference of the index of this ROM call and the
  18. index of the previous one for the following ones.</LI>
  19. <LI>An mlink-type relocation table for this ROM call. See
  20. <A HREF="$$LINK(insert_mlink_relocs)">__ld_insert_mlink_relocs</A>
  21. for the format used.
  22. The reference symbol used if there is no previous reloc (i.e. for
  23. the first reloc) is <CODE>__ld_mlink_rom_calls_ref</CODE>.
  24. </LI>
  25. </UL></LI>
  26. <LI><B>1 byte:</B> 0</LI>
  27. </UL></LI>
  28. </UL>
  29. For more information on processing ROM call relocation, see
  30. <A HREF="$$LINK(insert_kernel_rom_calls)">__ld_insert_kernel_rom_calls</A>.