This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: __private_extern__
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: __private_extern__
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Fri, 17 Aug 2001 16:38:56 +0200
- Cc: Johan Rydberg <johan dot rydberg at netinsight dot se>, binutils at sources dot redhat dot com
- References: <3B7D1EA7.96C0EADF@netinsight.se> <u8wv42ojne.fsf@gromit.moeb>
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
On Fri, Aug 17, 2001 at 04:17:41PM +0200, Andreas Jaeger wrote:
> Johan Rydberg <johan.rydberg@netinsight.se> writes:
>
> > Apple have a directive called __private_extern__ in its compiler.
> > This makes a symbol public in the binrary (e.g., library), but it's
> > not exported out side of it.
> >
> > Is there any way I can do the same thing, using GNU CC and GNU ld?
>
> Use symbol versioning for this,
Or STV_HIDDEN symbols.
Jakub