This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: arm/thumb: problems with function pointers
On Thu, 2002-01-17 at 10:14, Adrian von Bidder wrote:
> the output of readelf for the .rel.text section has 'symbol values' for
> thumb symbols without the lsb set - isn't that the place where it should
> already be set? Q: who generates .rel.text section in object files?
>
> What I mean: readelf says
> Relocation section '.rel.text' at offset ...:
> Offset Info Type Symbol's Value Symbol's Name
> 00000014 0071a R_ARM_GOT32 00000004 callee
I don't really understand what you're getting at here. At the time the
relocation is generated there isn't (in the general case) any way to
know whether the target is a Thumb function. That information is only
available for certain at the time the relocation is being resolved,
during final link. GOT entries for locally-defined symbols are a rather
special case.
It _is_ true that elf32_arm_final_link_relocate looks like a bit of a
mess, and there might be some opportunity for refactoring to make it
simpler.
p.