This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Patch for R_ARM_THM_PC22 relocs
- To: Momchil Velikov <velco at fadata dot bg>
- Subject: Re: Patch for R_ARM_THM_PC22 relocs
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Fri, 29 Sep 2000 18:50:23 +1100 (EST)
- cc: binutils at sourceware dot cygnus dot com
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.