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: about -fpic/-fPIC option for gcc


Thank you Ian!


Could you provide a little more information please? I
mean what is the different things generated by -fpic
and -fPIC in a shared library?


regards,
George

--- Ian Lance Taylor <iant@google.com> wrote:

> Lin George <george4academic@yahoo.com> 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
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


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