summaryrefslogtreecommitdiff
path: root/gprof/aarch64.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2013-05-24 00:28:06 +0000
committerAlan Modra <amodra@bigpond.net.au>2013-05-24 00:28:06 +0000
commit77cc918cee4071c3be0153677778a91e5b87d7a0 (patch)
treeecc8cbd46f27395717f139fd1e9cbf927ad02a94 /gprof/aarch64.c
parentdfad6d74b48c030ad3af8e76344f6bb6f76a6615 (diff)
downloadbinutils-redhat-77cc918cee4071c3be0153677778a91e5b87d7a0.tar.gz
* aarch64.c (aarch64_find_call): Promote to bfd_vma before sign
extending.
Diffstat (limited to 'gprof/aarch64.c')
-rw-r--r--gprof/aarch64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gprof/aarch64.c b/gprof/aarch64.c
index 4187d97a91..68febf9372 100644
--- a/gprof/aarch64.c
+++ b/gprof/aarch64.c
@@ -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;