This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Partial symbol export vs --export-dynamic
On Sun, Jun 17, 2001 at 10:31:11AM +0100, Nick Clifton wrote:
>
> BFD can be a tricky place for a novice, so I would not recommend it as
> a first project. As an alternative though, you might like to consider
> using the OBJCOPY program. A recent patch to this program gave it the
> ability to selectively convert global symbols into local symbols, (the
> --localize-symbols command line switch). With this you could use
> --export-dynamic switch to ld first and then --localize-symbols to
> objcopy to remove those symbols that you do not want to be exported.
I am not 100% sure if objcopy will work here since we are talking
dynamic symbols here. Last time when we visited this topic, I think
the aswer was no. But I could be wrong. In any case, I can implment it
in linker if we all agree it is a good thing to have.
H.J.