diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-02-17 12:52:58 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2006-02-17 12:52:58 +0000 |
commit | cc72220986f82896c264d1123ecbda51f5672761 (patch) | |
tree | b306a8b34af7dfc988e3074888e0d068ef9f5893 /bfd/elf32-ppc.c | |
parent | c596bd133832341d8c03d0ce0f5b5e1198d164fa (diff) | |
download | gdb-cc72220986f82896c264d1123ecbda51f5672761.tar.gz |
* elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
* elf64-ppc.c (allocate_dynrelocs): Likewise.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r-- | bfd/elf32-ppc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c index caa5ed44d9c..134b960db96 100644 --- a/bfd/elf32-ppc.c +++ b/bfd/elf32-ppc.c @@ -4546,7 +4546,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; |