This is the mail archive of the
glibc-linux@ricardo.ecn.wfu.edu
mailing list for the glibc project.
Re: Why some symbols exported in .a but not .so
- To: Chan Shih-Ping <cshihpin at dso dot org dot sg>
- Subject: Re: Why some symbols exported in .a but not .so
- From: Andreas Jaeger <aj at suse dot de>
- Date: 05 Feb 2000 17:25:35 +0100
- Cc: glibc-linux at ricardo dot ecn dot wfu dot edu
- References: <Pine.LNX.4.10.10002052132480.1297-100000@cshihpin.dso.org.sg>
- Reply-To: glibc-linux at ricardo dot ecn dot wfu dot edu
>>>>> Chan Shih-Ping writes:
> New to glibc...
> Why are some symbols global in the static library
> but not in the shared library.
> For example, internal functions
> like _nl_find_locale are visible in the archive
> library.
_nl_find_locale is an internal symbol and therefore should not be used
by other programs. With symbol versioning, we can hide the symbol -
but symbol versioning does only work with shared libraries and not
with static libs.
Btw. you might want to read about symbol versioning in the ld manual
and the glibc FAQ.
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.rhein-neckar.de