This is the mail archive of the
binutils-cvs@sourceware.org
mailing list for the binutils project.
[binutils-gdb] [AArch64] Remove BFD overflow check restrictions
- From: Jiong Wang <jiwang at sourceware dot org>
- To: bfd-cvs at sourceware dot org
- Date: 14 May 2015 11:47:47 -0000
- Subject: [binutils-gdb] [AArch64] Remove BFD overflow check restrictions
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=fdc3b1b1ef461fb81a53c9ce95117e5f134fc828
commit fdc3b1b1ef461fb81a53c9ce95117e5f134fc828
Author: Jiong Wang <jiong.wang@arm.com>
Date: Thu May 14 12:46:31 2015 +0100
[AArch64] Remove BFD overflow check restrictions
bfd/
* elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow
check restriction.
Diff:
---
bfd/ChangeLog | 5 +++++
bfd/elfnn-aarch64.c | 12 +++---------
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 24f08d9..9ef7a5d 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2015-05-14 Jiong Wang <jiong.wang@arm.com>
+
+ * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow
+ check restrictions.
+
2015-05-14 Max Filippov <jcmvbkbc@gmail.com>
* elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Treat PLT reference
diff --git a/bfd/elfnn-aarch64.c b/bfd/elfnn-aarch64.c
index c252b13..ddca5dd 100644
--- a/bfd/elfnn-aarch64.c
+++ b/bfd/elfnn-aarch64.c
@@ -5635,15 +5635,9 @@ elfNN_aarch64_relocate_section (bfd *output_bfd,
switch (r)
{
case bfd_reloc_overflow:
- /* If the overflowing reloc was to an undefined symbol,
- we have already printed one error message and there
- is no point complaining again. */
- if ((!h ||
- h->root.type != bfd_link_hash_undefined)
- && (!((*info->callbacks->reloc_overflow)
- (info, (h ? &h->root : NULL), name, howto->name,
- (bfd_vma) 0, input_bfd, input_section,
- rel->r_offset))))
+ if (!(*info->callbacks->reloc_overflow)
+ (info, (h ? &h->root : NULL), name, howto->name, (bfd_vma) 0,
+ input_bfd, input_section, rel->r_offset))
return FALSE;
break;