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

overflow for calls to undefined weak symbols.
This commit is contained in:
Richard Sandiford 2004-12-14 09:48:20 +00:00
parent 4446463b16
commit c314987d19
6 changed files with 28 additions and 1 deletions

View file

@ -3352,7 +3352,8 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
else
{
value = (_bfd_mips_elf_sign_extend (addend, 28) + symbol) >> 2;
overflowed_p = (value >> 26) != ((p + 4) >> 28);
if (h->root.root.type != bfd_link_hash_undefweak)
overflowed_p = (value >> 26) != ((p + 4) >> 28);
}
value &= howto->dst_mask;
break;