This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: An unusual x86_64 code model
- From: Andrew Pinski <pinskia at gmail dot com>
- To: Jed Davis <jedidiah at vmware dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 9 Aug 2011 16:58:01 -0700
- Subject: Re: An unusual x86_64 code model
- References: <20110809232606.GA29776@vmware.com>
On Tue, Aug 9, 2011 at 4:26 PM, Jed Davis <jedidiah@vmware.com> wrote:
> The existing workaround, which predates my personal involvement, is to
> use -fPIE together with a -include'd file that uses a #pragma to set the
> default symbol visibility to hidden, which suppresses the PLTness.
> That works on GCC 4.1, but with newer versions that no longer affects
> implicitly declared functions (which turn up occasionally in third-party
> drivers), or coverage instrumentation's calls to __gcov_init, or probably
> other things that have not yet been discovered. ÂAlso, it was never an
> ideal solution, except in that it didn't require modifying the compiler
> (at the time).
Have you tried -fvisibility=hidden option ?
Thanks,
Andrew Pinski