diff options
author | Alan Modra <amodra@gmail.com> | 2013-05-24 00:28:06 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2013-05-24 00:28:06 +0000 |
commit | a8dcd388143a928b2ba779377ae173a4fd1facd3 (patch) | |
tree | 6f0786596097ddda053f8afcbdbfaa2ac4c0f9c9 /gprof | |
parent | daily update (diff) | |
download | binutils-gdb-a8dcd388143a928b2ba779377ae173a4fd1facd3.tar.gz binutils-gdb-a8dcd388143a928b2ba779377ae173a4fd1facd3.tar.bz2 binutils-gdb-a8dcd388143a928b2ba779377ae173a4fd1facd3.zip |
* aarch64.c (aarch64_find_call): Promote to bfd_vma before sign
extending.
Diffstat (limited to 'gprof')
-rw-r--r-- | gprof/ChangeLog | 5 | ||||
-rw-r--r-- | gprof/aarch64.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gprof/ChangeLog b/gprof/ChangeLog index aa4c966fdaf..d8556672c00 100644 --- a/gprof/ChangeLog +++ b/gprof/ChangeLog @@ -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. 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; |