This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Hide/export symbols in static library
- From: "Jyotirmoy Sharma" <jyotirmoy dot sharma at ittiam dot com>
- To: <gcc-help at gcc dot gnu dot org>
- Date: Tue, 31 May 2005 16:43:44 +0530
- Subject: Hide/export symbols in static library
Hi,
Can anyone tell me how I can hide all the global symbols except
for few (i.e. export only selected symbols) while building a static library?
I have tried using "ld -r f1.o f2.o -o lib.a", but this exposes all the global
symbols.
Regards,
Jyotirmoy