* elfxx-mips.c (mips_elf_calculate_relocation): Don't divide

addend by 4.
This commit is contained in:
Alexandre Oliva 2002-12-12 04:42:06 +00:00
parent 6f171daac9
commit 2e7a68a82f
2 changed files with 5 additions and 1 deletions

View 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.

View 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: