bfd/
[deliverable/binutils-gdb.git] / bfd / elfxx-mips.c
index ef4650b1eb6c35b76c4abe7904335936ed2a84b5..9ec9c86dcb0547b1425d48546685e0dc1f4ed479 100644 (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;
This page took 0.0241170000000001 seconds and 4 git commands to generate.