Fix handling of MIPS16 HI16 relocs.
authorMa Jiang <ma.jiang@zte.com.cn>
Thu, 1 Dec 2016 12:21:30 +0000 (12:21 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 1 Dec 2016 12:21:30 +0000 (12:21 +0000)
PR ld/16720
* elfxx-mips.c (mips_elf_calculate_relocation): Remove overflow
test for HI16 relocs.

bfd/ChangeLog
bfd/elfxx-mips.c

index f03aaeb..fae51f3 100644 (file)
@@ -1,3 +1,9 @@
+2016-12-01  Ma Jiang  <ma.jiang@zte.com.cn>
+
+       PR ld/16720
+       * elfxx-mips.c (mips_elf_calculate_relocation): Remove overflow
+       test for HI16 relocs.
+
 2016-12-01  Nick Clifton  <nickc@redhat.com>
 
        PR binutils/20891
index 0e56ffa..96317aa 100644 (file)
@@ -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;