aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2002-12-12 04:42:06 +0000
committerAlexandre Oliva <aoliva@redhat.com>2002-12-12 04:42:06 +0000
commit2e7a68a82f64ad2c66e2fe41673d26f07046e6b3 (patch)
tree27a3fad6ae10b22ccbc3d2acfe8ffd912eb57060 /bfd
parent6f171daac941741e5fa904f6e462adb75a595495 (diff)
downloadgdb-2e7a68a82f64ad2c66e2fe41673d26f07046e6b3.zip
gdb-2e7a68a82f64ad2c66e2fe41673d26f07046e6b3.tar.gz
gdb-2e7a68a82f64ad2c66e2fe41673d26f07046e6b3.tar.bz2
* elfxx-mips.c (mips_elf_calculate_relocation): Don't divide
addend by 4.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elfxx-mips.c1
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 457c047..c78a2d7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2002-12-12 Alexandre Oliva <aoliva@redhat.com>
+ * elfxx-mips.c (mips_elf_calculate_relocation): Don't divide
+ addend by 4.
+
+2002-12-12 Alexandre Oliva <aoliva@redhat.com>
+
* elfxx-mips.c (struct mips_got_entry): New.
(struct mips_got_info): Added got_entries field.
(mips_elf_got_entry_hash, mips_elf_got_entry_eq): New functions.
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index c20e444..80a583b 100644
--- a/bfd/elfxx-mips.c
+++ b/bfd/elfxx-mips.c
@@ -2561,7 +2561,6 @@ mips_elf_calculate_relocation (abfd, input_bfd, input_section, info,
case R_MIPS_PC16:
value = mips_elf_sign_extend (addend, 16) + symbol - p;
overflowed_p = mips_elf_overflow_p (value, 16);
- value = (bfd_vma) ((bfd_signed_vma) value / 4);
break;
case R_MIPS_GOT_HI16: