diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2004-12-14 09:48:20 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2004-12-14 09:48:20 +0000 |
commit | c314987d19b8736574973103eca3a3ef1d281d0c (patch) | |
tree | c735abc19085fd831e47d29611c50cd3f54d4135 /bfd/elfxx-mips.c | |
parent | 4446463b16642b684e2151f9b316c11ba135b4a6 (diff) | |
download | gdb-c314987d19b8736574973103eca3a3ef1d281d0c.zip gdb-c314987d19b8736574973103eca3a3ef1d281d0c.tar.gz gdb-c314987d19b8736574973103eca3a3ef1d281d0c.tar.bz2 |
* elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
overflow for calls to undefined weak symbols.
Diffstat (limited to 'bfd/elfxx-mips.c')
-rw-r--r-- | bfd/elfxx-mips.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index ef4650b..9ec9c86 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -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; |