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: 20 Sep 2006 09:09:08 -0700
- Subject: Re: about -fpic/-fPIC option for gcc
- References: <20060920114339.27479.qmail@web32107.mail.mud.yahoo.com>
Lin George <george4academic@yahoo.com> writes:
> 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).
As I believe I've mentioned a couple of times, you should look at the
ELF ABI documentation. You can find some here:
http://sco.com/developers/gabi/
Unfortunately some of the documentation, such as the full ELF ABI
documentation and the i386 processor supplement, is not available
online as far as I know.
Ian