Re: about -fpic/-fPIC option for gcc

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

 



Thank you Ian,


The last question, could you provide some reference
materials to read on this topic. My background is I
have used for C/C++ compiler/linker for years and I
know something about compiler/linker internals, but
not too much (for example, the differences which -fpic
and -fPIC will impact).


regards,
George

--- Ian Lance Taylor <iant@xxxxxxxxxx> wrote:

> Lin George <george4academic@xxxxxxxxx> writes:
> 
> > I think if -fpic will generate less information
> than
> > -fPIC in GOT, we will be impacted by such
> information
> > when develop/debug?? For example, missing some
> symbol
> > names will make debugger fail to find
> > function/variable names.
> 
> Using -fpic will not affect the debugging
> information.
> 
> The difference between -fpic and -fPIC is that some
> large programs
> will fail to link if you use -fpic.  All programs
> will link if you use
> -fPIC.
> 
> Ian
> 


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

[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