This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: what does -fno-pic do


On 2016年07月11日 19:47, Mason wrote:
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.

Some mistake here.
I searched for **-fno-pic** and forgot to search for **-fpic**.
There is indeed descriptions of -fpic in the man page, but none for **-fno-pic**. My fault. Maybe at that time I got messed up with code and was in a rush. Sorry.

Thanks,
Ruan


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]