redefine symbol names in shlib?
Peter Samuelson
peter@cadcamlab.org
Tue Jun 13 00:01:00 GMT 2000
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
More information about the Binutils
mailing list