[patch] Resolve ppc64 func descriptors as .func (via .opd)
Jan Kratochvil
jan.kratochvil at redhat.com
Wed Dec 5 14:56:07 UTC 2012
On Wed, 05 Dec 2012 15:35:55 +0100, Mark Wielaard wrote:
> If we could keep the symbol values, except the adjusted st_value intact
> that would have my preference.
Yes, it is this way.
> If you adjust shndxp, do you also adjust sym.st_shndx?
No, I do not. One cannot always set the real value there, it could belong to
SHN_XINDEX.
I can force there SHN_XINDEX during the .opd -> .text rewrite so that no one
mistakenly reads it.
> Both :)
Please do not mix those two.
> The symbol name against which we are matching is what it is, we
> shouldn't change its name IMHO.
We already change st_value and st_shndx. Why not to change also the name?
(Highlighting here the principle a part of the symbol is already changing.
Thanks,
Jan
More information about the elfutils-devel
mailing list