[binutils-gdb] Fix handling of MIPS16 HI16 relocs.
Nick Clifton
nickc@sourceware.org
Thu Dec 1 12:22:00 GMT 2016
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=40a0bfddf07620f5321927b3231502debb3b73bc
commit 40a0bfddf07620f5321927b3231502debb3b73bc
Author: Ma Jiang <ma.jiang@zte.com.cn>
Date: Thu Dec 1 12:21:30 2016 +0000
Fix handling of MIPS16 HI16 relocs.
PR ld/16720
* elfxx-mips.c (mips_elf_calculate_relocation): Remove overflow
test for HI16 relocs.
Diff:
---
bfd/ChangeLog | 6 ++++++
bfd/elfxx-mips.c | 1 -
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index f03aaeb..fae51f3 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elfxx-mips.c b/bfd/elfxx-mips.c
index 0e56ffa..96317aa 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;
More information about the Binutils-cvs
mailing list