From: Ma Jiang Date: Thu, 1 Dec 2016 12:21:30 +0000 (+0000) Subject: Fix handling of MIPS16 HI16 relocs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=40a0bfddf07620f5321927b3231502debb3b73bc;p=binutils-gdb.git Fix handling of MIPS16 HI16 relocs. PR ld/16720 * elfxx-mips.c (mips_elf_calculate_relocation): Remove overflow test for HI16 relocs. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index f03aaeb8ed2..fae51f3a2b4 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2016-12-01 Ma Jiang + + PR ld/16720 + * elfxx-mips.c (mips_elf_calculate_relocation): Remove overflow + test for HI16 relocs. + 2016-12-01 Nick Clifton PR binutils/20891 diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c index 0e56ffa361d..96317aaadac 100644 --- a/bfd/elfxx-mips.c +++ b/bfd/elfxx-mips.c @@ -5920,7 +5920,6 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd, value = mips_elf_high (addend + gp - p - 1); else value = mips_elf_high (addend + gp - p); - overflowed_p = mips_elf_overflow_p (value, 16); } break;