From 18ff9f4f1bddd11c341a37177885ac89fcccedd9 Mon Sep 17 00:00:00 2001 From: obrien Date: Fri, 12 Apr 2002 19:33:52 +0000 Subject: Import of Binutils from the FSF 2.12 branch. (this fixes several linker problems and coredumps) These bits are taken from the FSF anoncvs repo on 10-April-2002 13:24 Zulu --- contrib/binutils/bfd/elf64-x86-64.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib/binutils/bfd/elf64-x86-64.c') diff --git a/contrib/binutils/bfd/elf64-x86-64.c b/contrib/binutils/bfd/elf64-x86-64.c index 87e5dbb..61d2c6e 100644 --- a/contrib/binutils/bfd/elf64-x86-64.c +++ b/contrib/binutils/bfd/elf64-x86-64.c @@ -1118,6 +1118,9 @@ elf64_x86_64_discard_copies (h, inf) struct elf64_x86_64_pcrel_relocs_copied *s; struct bfd_link_info *info = (struct bfd_link_info *) inf; + if (h->root.root.type == bfd_link_hash_warning) + h = (struct elf64_x86_64_link_hash_entry *) h->root.root.u.i.link; + /* If a symbol has been forced local or we have found a regular definition for the symbolic link case, then we won't be needing any relocs. */ -- cgit v1.1