Re: about -fpic/-fPIC option for gcc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Lin George <george4academic@xxxxxxxxx> writes:

> I am confused about the meaning and function of -fpic
> and -fPIC option of gcc. I am more confused when after
> reading the manual of gcc (for example, what means
> PIC, GOT, constant addresses, etc.). Could anyone
> explain to me what are their functions in easy to
> understand words?

If we could write it better, we would.

Very short and incomplete version which may suffice for your purposes:
the -fpic and -fPIC options are for generating code that will be put
into a shared library on an ELF system.  GNU/Linux is an example of an
ELF system.

Ian

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux