projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bfd signed overflow fixes
[deliverable/binutils-gdb.git]
/
bfd
/
libhppa.h
diff --git
a/bfd/libhppa.h
b/bfd/libhppa.h
index beebb707905e28542216ac4afccc5c5627c86b5e..632f5243d0b4befda8d438299b8ea0cbb7049f4d 100644
(file)
--- a/
bfd/libhppa.h
+++ b/
bfd/libhppa.h
@@
-1,6
+1,5
@@
/* HP PA-RISC SOM object file format: definitions internal to BFD.
/* HP PA-RISC SOM object file format: definitions internal to BFD.
- Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000,
- 2003, 2007 Free Software Foundation, Inc.
+ Copyright (C) 1990-2019 Free Software Foundation, Inc.
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
Contributed by the Center for Software Science at the
University of Utah (pa-gdb-bugs@cs.utah.edu).
@@
-149,7
+148,7
@@
enum hppa_reloc_expr_type_alt
#define HPPA_R_ARG_RELOC(a) \
(((a) >> 22) & 0x3ff)
#define HPPA_R_CONSTANT(a) \
#define HPPA_R_ARG_RELOC(a) \
(((a) >> 22) & 0x3ff)
#define HPPA_R_CONSTANT(a) \
- ((((bfd_signed_vma)
(a)) << (BFD_ARCH_SIZE-22)) >> (BFD_ARCH_SIZE-22)
)
+ ((((bfd_signed_vma)
(a) & 0x3fffff) ^ 0x200000) - 0x200000
)
#define HPPA_R_ADDEND(r, c) \
(((r) << 22) + ((c) & 0x3fffff))
#define HPPA_R_ADDEND(r, c) \
(((r) << 22) + ((c) & 0x3fffff))
@@
-463,7
+462,7
@@
enum hppa_opcode_type
static inline int
bfd_hppa_insn2fmt (bfd *abfd, int insn)
{
static inline int
bfd_hppa_insn2fmt (bfd *abfd, int insn)
{
- enum hppa_opcode_type op = get_opcode (insn);
+ enum hppa_opcode_type op =
(enum hppa_opcode_type)
get_opcode (insn);
switch (op)
{
switch (op)
{
This page took
0.023613 seconds
and
4
git commands to generate.