This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Linking arm thumb code
>If I'm guessing right I'll have to adapt elf32_arm_final_link_relocate
>in elf32-arm.h (why is this a .h????? Oh, well) to do something similar
>with the case R_ARM_ABS32 where the relocation is output to the final
>exec.
Right, yeah. Does this help at all?
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 2001/11/23 10:24:11
@@ -1188,6 +1188,9 @@
&& (h->elf_link_hash_flags
& ELF_LINK_HASH_DEF_REGULAR) != 0))
{
+ if (r_type == R_ARM_ABS32 && sym_flags == STT_ARM_TFUNC)
+ value |= 1;
+
relocate = true;
outrel.r_info = ELF32_R_INFO (0, R_ARM_RELATIVE);
}