This is the mail archive of the
binutils@sourceware.cygnus.com
mailing list for the binutils project.
Re: redefine symbol names in shlib?
Thanks, Ian, this was *exactly* the type of answer I was looking for!
I learned a lot.
[Ian Lance Taylor <ian@zembu.com>]
> An option should do one thing. What should --redefine-sym do for an
> executable with both a normal symbol and a dynamic symbol table?
I didn't know such a clash was even legal.
> More seriously, renaming a dynamic symbol probably won't work
> correctly. If you rename a dynamic symbol, you really need to
> recompute the .hash section. Otherwise, the dynamic linker won't
> find the dynamic symbol.
Wow, I didn't even know there *was* a .hash section. Now I get it.
I still think it would be a nice feature. (:
Peter