From a8dcd388143a928b2ba779377ae173a4fd1facd3 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 24 May 2013 00:28:06 +0000 Subject: * aarch64.c (aarch64_find_call): Promote to bfd_vma before sign extending. --- gprof/aarch64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gprof/aarch64.c') diff --git a/gprof/aarch64.c b/gprof/aarch64.c index 4187d97a912..68febf93723 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; -- cgit v1.2.1