* elfxx-mips.c (mips_elf_calculate_relocation): Don't divide
authorAlexandre Oliva <aoliva@redhat.com>
Thu, 12 Dec 2002 04:42:06 +0000 (04:42 +0000)
committerAlexandre Oliva <aoliva@redhat.com>
Thu, 12 Dec 2002 04:42:06 +0000 (04:42 +0000)
addend by 4.

bfd/ChangeLog
bfd/elfxx-mips.c

index 457c04779d183d93b61966a1bb8afb2bd3b4ea85..c78a2d79b053d0ad37168c0154f30064f3d7aabd 100644 (file)
@@ -1,3 +1,8 @@
+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.
index c20e444e81a1d65fbe097c47b13ee8adfe05e51e..80a583bc60f4b8c9dc0bacde0f153a7f7f212f0a 100644 (file)
@@ -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: