modes_nostub.hss 959 B

12345678910111213141516171819
  1. [Main]
  2. Title=Nostub Linking Mode
  3. [Top]
  4. If this mode is activated using the
  5. <A HREF="$$LINK(control_nostub)">_nostub</A> control symbol, execution will
  6. start at the very beginning of the program. The exact entry point depends on
  7. the order of the object files as passed to the linker as well as the order of
  8. the sections inside an object file. Because of this insecurity, this mode
  9. should never be used in new programs. Programs written in assembly should
  10. define a small <A HREF="$$LINK(startup)">startup section</A> including a jump
  11. to the actual main function and use
  12. <A HREF="$$LINK(modes_native)">TIGCC-native mode</A> instead. If the main
  13. function follows immediately, the jump can even be optimized away by the
  14. linker.
  15. <BR><BR>
  16. If a startup section is defined in nostub mode, the linker emits a warning
  17. and switches to <A HREF="$$LINK(modes_native)">TIGCC-native mode</A>. This
  18. ensures that nostub mode really means that no stub is added to the program.