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]

[arm] Handle R_ARM_THM_PC9


The attached patch teaches bfd how to handle the R_ARM_PC9 relocation.

Tested with cross to arm-none-eabi.
Ok?

2005-02-09  Paul Brook  <paul@codesourcery.com>

 * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
Index: bfd/elf32-arm.c
===================================================================
RCS file: /var/cvsroot/src-cvs/src/bfd/elf32-arm.c,v
retrieving revision 1.20
diff -u -p -r1.20 elf32-arm.c
--- bfd/elf32-arm.c	31 Jan 2005 17:50:20 -0000	1.20
+++ bfd/elf32-arm.c	9 Feb 2005 21:00:18 -0000
@@ -2736,6 +2736,7 @@ elf32_arm_final_link_relocate (reloc_how
       break;
 
     case R_ARM_THM_PC11:
+    case R_ARM_THM_PC9:
       /* Thumb B (branch) instruction).  */
       {
 	bfd_signed_vma relocation;

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