aixinitfini.c 812 B

123456789101112131415161718192021222324252627282930313233
  1. /* FIXME: rename this file */
  2. /*
  3. Artificially create _GLOBAL_AIX[ID]_shr_o symbols in libgcc.a.
  4. This means that libstdc++.a can invoke these symbols and they are resolved
  5. regardless of whether libstdc++.a is linked against libgcc_s.a or libgcc.a.
  6. The symbols are created in libgcc_s.a by collect2 as there are exception
  7. frames to register for LIB2_DIVMOD_FUNCS.
  8. The symbols are NOT created by collect2 for libgcc.a, because libgcc.a is
  9. a 'real' archive containing objects and collect2 is not invoked.
  10. libstdc++.a is linked against libgcc.a when handling the command line
  11. options '-static-libgcc -static-libstdc++'.
  12. */
  13. void _GLOBAL__AIXI_shr_o (void);
  14. void _GLOBAL__AIXD_shr_o (void);
  15. void
  16. _GLOBAL__AIXI_shr_o (void)
  17. {
  18. return;
  19. }
  20. void
  21. _GLOBAL__AIXD_shr_o (void)
  22. {
  23. return;
  24. }