From 2e7a68a82f64ad2c66e2fe41673d26f07046e6b3 Mon Sep 17 00:00:00 2001 From: Alexandre Oliva Date: Thu, 12 Dec 2002 04:42:06 +0000 Subject: [PATCH] * elfxx-mips.c (mips_elf_calculate_relocation): Don't divide addend by 4. --- bfd/ChangeLog | 5 +++++ bfd/elfxx-mips.c | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 457c04779d1..c78a2d79b05 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2002-12-12 Alexandre Oliva + + * elfxx-mips.c (mips_elf_calculate_relocation): Don't divide + addend by 4. + 2002-12-12 Alexandre Oliva * elfxx-mips.c (struct mips_got_entry): New. diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index c20e444e81a..80a583bc60f 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: -- 2.30.2