From cab87ef999efe2137895d35dc933188bd69bad17 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Fri, 17 Feb 2006 12:52:58 +0000 Subject: * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling. * elf64-ppc.c (allocate_dynrelocs): Likewise. --- bfd/elf64-ppc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bfd/elf64-ppc.c') diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index 785c859..1cfac82 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -7582,7 +7582,8 @@ allocate_dynrelocs (struct elf_link_hash_entry *h, void *inf) /* Also discard relocs on undefined weak syms with non-default visibility. */ - if (h->root.type == bfd_link_hash_undefweak) + if (eh->dyn_relocs != NULL + && h->root.type == bfd_link_hash_undefweak) { if (ELF_ST_VISIBILITY (h->other) != STV_DEFAULT) eh->dyn_relocs = NULL; -- cgit v1.1