This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: arm/thumb: problems with function pointers
- From: Phil Blundell <pb at nexus dot co dot uk>
- To: Adrian von Bidder <avbidder at acter dot ch>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: 16 Jan 2002 17:59:32 +0000
- Subject: Re: arm/thumb: problems with function pointers
- References: <1011199024.1018.5.camel@atlas>
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;
}