This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Software Convention Proposal
- From: Richard Henderson <rth at redhat dot com>
- To: "Kirkegaard, Knud J" <knud dot j dot kirkegaard at intel dot com>
- Cc: "'gcc at gcc dot gnu dot org'" <gcc at gcc dot gnu dot org>, "Sehr, David C" <david dot c dot sehr at intel dot com>, "Saxena, Sunil" <sunil dot saxena at intel dot com>, "'cary at cup dot hp dot com'" <cary at cup dot hp dot com>, "Winalski, Paul" <paul dot winalski at intel dot com>
- Date: Wed, 28 Aug 2002 09:53:32 -0700
- Subject: Re: Software Convention Proposal
- References: <9795DB627281D941B9E608445730DFC804656DD8@fmsmsx106.fm.intel.com>
On Fri, Aug 23, 2002 at 02:47:04PM -0700, Kirkegaard, Knud J wrote:
> It is not exactly the same as -fno-pic since the default is still PIC...
This is not actually correct. For gcc, the presence or abscense of
-fpic on the command line *does* change the symbol resoution rules
used inside the compiler. It is already the case that shared libraries
must be compiled with -fpic or you'll get link errors of the form
file.o: @gprel relocation against dynamic symbol foo
Thus, from my point of view, your -fminshared is exactly the same as
-fvisibility=protected and without -fpic.
r~