Produces a position-independent executable on processors that support it.
IA-32, IntelĀ® 64, IA-64 architectures
Linux: |
-pie |
Mac OS X: |
None |
Windows: |
None |
None
OFF |
The driver does not set up special run-time libraries and the linker does not perform the optimizations on executables. |
This option produces a position-independent executable on processors that support it. It is both a compiler option and a linker option. When used as a compiler option, this option ensures the linker sets up run-time libraries correctly.
Normally the object linked has been compiled with option -fpie.
When you specify -pie, it is recommended that you specify the same options that were used during compilation of the object.
None