* aarch64.c (aarch64_find_call): Promote to bfd_vma before sign

extending.
This commit is contained in:
Alan Modra 2013-05-24 00:28:06 +00:00
parent 34e02e2590
commit a8dcd38814
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2013-05-24 Alan Modra <amodra@gmail.com>
* aarch64.c (aarch64_find_call): Promote to bfd_vma before sign
extending.
2013-05-22 Venkataramanan Kumar <Venkataramanan.kumar@linaro.org>
* aarch64.c: New file.

View File

@ -68,7 +68,7 @@ aarch64_find_call (Sym *parent, bfd_vma p_lowpc, bfd_vma p_highpc)
/* Regular pc relative addressing check that this is the
address of a function. */
offset = (((insn & 0x3ffffff) ^ 0x2000000) - 0x2000000) << 2;
offset = ((((bfd_vma) insn & 0x3ffffff) ^ 0x2000000) - 0x2000000) << 2;
dest_pc = pc + offset;