This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: arm/thumb: problems with function pointers


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;
 		}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]