[gcc]
[official-gcc.git] / libgcc / config / rs6000 / aixinitfini.c
blobe95575820e24aaf62447ab581b1d4a590878c486
1 /* FIXME: rename this file */
3 /*
4 Artificially create _GLOBAL_AIX[ID]_shr_o symbols in libgcc.a.
6 This means that libstdc++.a can invoke these symbols and they are resolved
7 regardless of whether libstdc++.a is linked against libgcc_s.a or libgcc.a.
9 The symbols are created in libgcc_s.a by collect2 as there are exception
10 frames to register for LIB2_DIVMOD_FUNCS.
12 The symbols are NOT created by collect2 for libgcc.a, because libgcc.a is
13 a 'real' archive containing objects and collect2 is not invoked.
15 libstdc++.a is linked against libgcc.a when handling the command line
16 options '-static-libgcc -static-libstdc++'.
19 void _GLOBAL__AIXI_shr_o (void);
20 void _GLOBAL__AIXD_shr_o (void);
22 void
23 _GLOBAL__AIXI_shr_o (void)
25 return;
28 void
29 _GLOBAL__AIXD_shr_o (void)
31 return;