summaryrefslogtreecommitdiff
path: root/bfd/elf64-x86-64.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-09-29 13:24:11 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-09-29 13:24:11 +0000
commit4dba4b2419ccdbf48fd016edb7e0e10016897827 (patch)
tree811a44f147c41cb3c658ab910db78fdc7ad81c88 /bfd/elf64-x86-64.c
parentaeb0c9c635d2ffc83f8e7c2a8ef0d6040ff4327f (diff)
downloadbinutils-gdb-4dba4b2419ccdbf48fd016edb7e0e10016897827.tar.gz
2006-09-29 H.J. Lu <hongjiu.lu@intel.com>
PR ld/3283 * elf64-x86-64.c (elf64_x86_64_relocate_section): Don't ignore relocation overflow on branches to undefweaks.
Diffstat (limited to 'bfd/elf64-x86-64.c')
-rw-r--r--bfd/elf64-x86-64.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c
index 6d1e4c890f3..23dee168615 100644
--- a/bfd/elf64-x86-64.c
+++ b/bfd/elf64-x86-64.c
@@ -3017,12 +3017,6 @@ elf64_x86_64_relocate_section (bfd *output_bfd, struct bfd_link_info *info,
if (r == bfd_reloc_overflow)
{
- if (h != NULL
- && h->root.type == bfd_link_hash_undefweak
- && howto->pc_relative)
- /* Ignore reloc overflow on branches to undefweak syms. */
- continue;
-
if (! ((*info->callbacks->reloc_overflow)
(info, (h ? &h->root : NULL), name, howto->name,
(bfd_vma) 0, input_bfd, input_section,