what does -fno-pic do

Mason slash.tmp@free.fr
Mon Jul 11 11:48:00 GMT 2016


On 11/07/2016 12:59, Yubin Ruan wrote:

> I really search carefully in the man pages on my Ubuntu/Linux-14.04-LTS.
> I cannot find much description about that.

That's unexpected :-(

$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=14.04
DISTRIB_CODENAME=trusty
DISTRIB_DESCRIPTION="Ubuntu 14.04.4 LTS"

$ man gcc
(last line states gcc-4.8, dated 2015-04-26)

Search for Generate position-independent code

Jumps to -fpic and -fPIC descriptions.

https://gcc.gnu.org/onlinedocs/gcc-4.8.4/gcc/Code-Gen-Options.html

Regards.



More information about the Gcc-help mailing list