aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJason Eckhardt <jle@rice.edu>2003-05-18 21:24:33 +0000
committerJason Eckhardt <jle@rice.edu>2003-05-18 21:24:33 +0000
commitb645cb172661834dbd2f7baa71d610bc52f02e47 (patch)
treed151567e42057669fb972e799af44a5c12d75153 /bfd
parentd0b45d99e856027785d6ee913238f02f38ff91fe (diff)
downloadgdb-b645cb172661834dbd2f7baa71d610bc52f02e47.zip
gdb-b645cb172661834dbd2f7baa71d610bc52f02e47.tar.gz
gdb-b645cb172661834dbd2f7baa71d610bc52f02e47.tar.bz2
2003-05-18 Jason Eckhardt <jle@rice.edu>
gas: * config/tc-i860.c (i860_process_insn): Initialize fc after each opcode mismatch. include/opcode: * i860.h (form, pform): Add missing .dd suffix. opcodes: * i860-dis.c (print_insn_i860): Instruction shrd has a dual bit, print it. bfd: * elf32-i860.c (elf32_i860_relocate_highadj): Simplify calculation.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/elf32-i860.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index b5a6a89..646cdd5 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2003-05-18 Jason Eckhardt <jle@rice.edu>
+
+ * elf32-i860.c (elf32_i860_relocate_highadj): Simplify calculation.
+
2003-05-17 Andreas Schwab <schwab@suse.de>
* elf32-m68k.c (elf_m68k_check_relocs): Cache reloc section in
diff --git a/bfd/elf32-i860.c b/bfd/elf32-i860.c
index 7a132c6..74112f1 100644
--- a/bfd/elf32-i860.c
+++ b/bfd/elf32-i860.c
@@ -803,7 +803,7 @@ elf32_i860_relocate_highadj (input_bfd, rel, contents, value)
insn = bfd_get_32 (input_bfd, contents + rel->r_offset);
value += rel->r_addend;
- value += (value & 0x8000) << 1;
+ value += 0x8000;
value = ((value >> 16) & 0xffff);
insn = (insn & 0xffff0000) | value;