From: ths Date: Tue, 25 Jul 2006 09:01:02 +0000 (+0000) Subject: * elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant. X-Git-Tag: drop_9x_support_start~2136 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=25b4f13af82a26cb56d83aee15653e2684047ce9;p=pf3gnuchains%2Fpf3gnuchains4x.git * elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 8292b28ee1..86517d6678 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2006-07-25 Thiemo Seufer + + * elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant. + 2006-07-24 Michael Wetherell * elf.c (bfd_section_from_shdr): Reject unrecognised OS-specific diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 5e8bab485d..f917ba538f 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -4471,7 +4471,8 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd, case R_MIPS_GNU_REL16_S2: value = symbol + _bfd_mips_elf_sign_extend (addend, 18) - p; overflowed_p = mips_elf_overflow_p (value, 18); - value = (value >> 2) & howto->dst_mask; + value >>= howto->rightshift; + value &= howto->dst_mask; break; case R_MIPS_GOT_HI16: