This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Hiding symbols in a static library
Ian Lance Taylor wrote:
> If you are talking about an archive, and if one object in an archive
> has to refer to private symbols in another object in the archive, then
> the answer is no.
I suppose what my user is really after is a way to turn the existing
archive, consisting of dozens of object files, into an archive which
has public symbols the same as the equivalent shared library.
> If it's OK to use ld -r instead of building an archive, then it may
> work to use ld -r with --retain-symbols-file.
Can ld output a static library? I've read the ld man page and I didn't
find any mention of static libraries as an output.
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/