insert_fargo020_libs.hss 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. [Main]
  2. Title=__ld_insert_fargo020_libs
  3. See Also=insert_fargo021_libs: __ld_insert_fargo021_libs, insert_kernel_libs: __ld_insert_kernel_libs
  4. [Top]
  5. __ld_insert_fargo020_libs can be used to handle
  6. <A HREF="$$LINK(symbols_lib_call)">library calls</A>. It inserts references
  7. to libraries in the format used by Fargo v0.2.0:
  8. <UL>
  9. <LI>For each referenced library...
  10. <UL>
  11. <LI><B>2 bytes:</B> program-relative location of the library name</LI>
  12. <LI>For each imported function/variable...
  13. <UL>
  14. <LI><B>2 bytes:</B> <I>index</I> of the function/variable plus 1</LI>
  15. <LI>Relocation table for this function/variable:
  16. <UL>
  17. <LI>For each reference...
  18. <UL>
  19. <LI><B>2 bytes:</B> <I>location</I> (may not be 0)</LI>
  20. </UL></LI>
  21. <LI><B>2 bytes:</B> 0</LI>
  22. </UL></LI>
  23. </UL></LI>
  24. <LI><B>2 bytes:</B> 0</LI>
  25. </UL></LI>
  26. <LI><B>2 bytes:</B> 0</LI>
  27. </UL>
  28. The libraries have to be processed using the method described in
  29. <A HREF="$$LINK(insert_kernel_libs)">__ld_insert_kernel_libs</A>, except that
  30. library versions are not implemented by this format.
  31. <BR><BR>
  32. <B>Note:</B> This insertion is available only if Fargo support is compiled
  33. in.