From 40a0bfddf07620f5321927b3231502debb3b73bc Mon Sep 17 00:00:00 2001 From: Ma Jiang Date: Thu, 1 Dec 2016 12:21:30 +0000 Subject: [PATCH] Fix handling of MIPS16 HI16 relocs. PR ld/16720 * elfxx-mips.c (mips_elf_calculate_relocation): Remove overflow test for HI16 relocs. --- bfd/ChangeLog | 6 ++++++ bfd/elfxx-mips.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) 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; -- 2.30.2