arm/thumb: problems with function pointers
Phil Blundell
pb@nexus.co.uk
Wed Jan 16 11:03:00 GMT 2002
On Wed, 2002-01-16 at 16:37, Adrian von Bidder wrote:
> My bet is that what was done to be R_ARM_ABS32 in elf32-arm.h needs to
> be done to R_ARM_GOT32 relocations, too.
Mmm, yeah, probably. Well, try this.
p.
Index: elf32-arm.h
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.h,v
retrieving revision 1.62
diff -u -r1.62 elf32-arm.h
--- elf32-arm.h 2001/10/12 11:16:21 1.62
+++ elf32-arm.h 2002/01/16 17:58:32
@@ -1585,6 +1588,8 @@
off &= ~1;
else
{
+ if (sym_flags == STT_ARM_TFUNC)
+ value |= 1;
bfd_put_32 (output_bfd, value, sgot->contents + off);
h->got.offset |= 1;
}
More information about the Binutils
mailing list