insert_fargo_exports.hss 1.0 KB

1234567891011121314151617181920212223242526
  1. [Main]
  2. Title=__ld_insert_fargo_exports
  3. See Also=insert_kernel_exports: __ld_insert_kernel_exports
  4. [Top]
  5. __ld_insert_fargo_exports can be used to export symbols from a library. It
  6. treats all symbols that are declared external and look like
  7. &quot;<I>libname</I>@<I>index</I>&quot; or
  8. &quot;<I>libname</I>__<I>index</I>&quot; as exported entries. <I>index</I> is
  9. a hexadecimal number which must have exactly 4 digits.
  10. <BR><BR>
  11. __ld_insert_fargo_exports inserts library exports in the format used by the
  12. Fargo II kernel:
  13. <UL>
  14. <LI>For each exported item...
  15. <UL>
  16. <LI><B>2 bytes:</B> <I>location</I> (offset from the beginning of the
  17. library; may be 0 if nothing was specified)</LI>
  18. </UL></LI>
  19. </UL>
  20. <B>Note:</B> Since exported entries are stored one after another, skipped
  21. entries will take up additional space in the export table. For example, if
  22. you only define one symbol called &quot;<I>libname</I>@0010&quot;, then there
  23. will be 16*2=32 bytes of zeroes in the export table.
  24. <BR><BR>
  25. This insertion is available only if Fargo support is compiled in.