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


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


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