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]

Re: Patch for R_ARM_THM_PC22 relocs


On Fri, 29 Sep 2000, Momchil Velikov wrote:

> +      upper_insn = bfd_get_16 (abfd, address);
> +      lower_insn = bfd_get_16 (abfd, address + 2);

Sorry, I should have picked this up on your previous patch, but this is
wrong too.  You're assuming big-endian, which isn't always the case for
arm-elf.  Please use bfd_get_32 and bfd_put_32.

-- 
Linuxcare.  Support for the Revolution.


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