[AArch64] Remove BFD overflow check restrictions
authorJiong Wang <jiong.wang@arm.com>
Thu, 14 May 2015 11:46:31 +0000 (12:46 +0100)
committerJiong Wang <jiong.wang@arm.com>
Thu, 14 May 2015 11:46:31 +0000 (12:46 +0100)
bfd/
  * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Remove overflow
  check restriction.

bfd/ChangeLog
bfd/elfnn-aarch64.c

index 24f08d948ed03b65543af409e26d627b6be14efd..9ef7a5d2adccfc7a9bd6700995c3dd8ae28bcecf 100644 (file)
@@ -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
index c252b13f515e1b9a892ae40b91e29ed0187cb857..ddca5dd483f61044c06da6e4a671278f0080b6da 100644 (file)
@@ -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;