This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Is it possible to hide some symbols in linking shared library?
- From: Ian Lance Taylor <iant at google dot com>
- To: mpsuzuki at hiroshima-u dot ac dot jp
- Cc: binutils at sourceware dot org
- Date: Tue, 26 Jan 2010 07:56:49 -0800
- Subject: Re: Is it possible to hide some symbols in linking shared library?
- References: <20100126174857.383a26a3.mpsuzuki@hiroshima-u.ac.jp>
mpsuzuki@hiroshima-u.ac.jp writes:
> I want to realize following 2 conditions:
>
> C1) a shared library exports all symbols for runtime linker.
>
> C2) when a developer links new binary with a shared library,
> the linker ignores some "blacklisted" symbols as if they
> cannot be resolved.
Sounds like you want a version script. I admit I'm not sure how to
move a shared library which does not use a version script to one that
does without retaining the same set of symbols, but at least you can
set yourself up for future fixes of this sort.
Ian