This is the mail archive of the gcc@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]

what does -fno-pic do ?


Hi,
I am reading some OS kernel codes, and I find that in the Makefile used to build the kernel, there is a **-fno-pic** flag. I totally don't understand what that mean. I try to find some description from the man pages but can find no direct description about that flag(same for the **-fpic** flags). All I can find is something like:

For Darwin, only the -m64 option also turns off the -fno-pic and -mdynamic-no-pic options.

blah blah blah....

I try to google it but it seems that people rarely discuss it on the Web.

Does the **pic** in that flag represent Programmable Interrupt Controller that is used by the kernel the control interrupts to CPU ?
If it is, why no pic ? what does it really mean ?

And, in addition, what would that flag influence the layout of the kernel image ?

Thanks,
Ruan.


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