Solaris Pragmas (Using the GNU Compiler Collection (GCC))

#### 6.5.9 Solaris Pragmas ¶

The Solaris target supports `#pragma redefine_extname` (see Symbol-Renaming Pragmas). It also supports additional `#pragma` directives for compatibility with the system compiler.

`align alignment (variable [, variable]...)` ¶

  Increase the minimum alignment of each variable to alignment. This is the same as GCC’s `aligned` attribute (see Common Attributes). Macro expansion occurs on the arguments to this pragma when compiling C and Objective-C. It does not currently occur when compiling C++, but this is a bug which may be fixed in a future release.

`fini (function [, function]...)` ¶

  This pragma causes each listed function to be called after main, or during shared module unloading, by adding a call to the `.fini` section.

`init (function [, function]...)` ¶

  This pragma causes each listed function to be called during initialization (before `main`) or during shared module loading, by adding a call to the `.init` section.