This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: about -fpic/-fPIC option for gcc
- From: Ian Lance Taylor <iant at google dot com>
- To: Lin George <george4academic at yahoo dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: 18 Sep 2006 22:44:13 -0700
- Subject: Re: about -fpic/-fPIC option for gcc
- References: <20060919050021.32484.qmail@web32113.mail.mud.yahoo.com>
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