Patch for R_ARM_THM_PC22 relocs

Alan Modra alan@linuxcare.com.au
Fri Sep 29 00:50:00 GMT 2000


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.



More information about the Binutils mailing list