This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: __private_extern__
- To: Johan Rydberg <johan dot rydberg at netinsight dot se>
- Subject: Re: __private_extern__
- From: Andreas Jaeger <aj at suse dot de>
- Date: Fri, 17 Aug 2001 16:17:41 +0200
- Cc: binutils at sources dot redhat dot com
- References: <3B7D1EA7.96C0EADF@netinsight.se>
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,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj