g fPic - Serbipunk/notes GitHub Wiki

https://stackoverflow.com/questions/5311515/gcc-fpic-option

-fPIC
If supported for the target machine, emit position-independent code, 

suitable for dynamic linking and avoiding any limit on the size of the global offset table. 

This option makes a difference on AArch64, m68k, PowerPC and SPARC.


Position-independent code requires special support, and therefore works only on certain machines.

When this flag is set, the macros __pic__ and __PIC__ are defined to 2.