diff options
author | Alan Modra <amodra@bigpond.net.au> | 2006-01-17 13:00:16 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2006-01-17 13:00:16 +0000 |
commit | dbf5368f9faf34b27fcd7da677d259835185c8ef (patch) | |
tree | e151b4088f05ad3a2543529bf6e5fb1c5423d661 /bfd/elf64-ppc.c | |
parent | 5a1330da8939f32c71933b0866c62a0c5f4984b4 (diff) | |
download | binutils-redhat-dbf5368f9faf34b27fcd7da677d259835185c8ef.tar.gz |
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
Diffstat (limited to 'bfd/elf64-ppc.c')
-rw-r--r-- | bfd/elf64-ppc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c index a2cfaacdb2..501d4b7f87 100644 --- a/bfd/elf64-ppc.c +++ b/bfd/elf64-ppc.c @@ -4958,7 +4958,7 @@ ppc64_elf_gc_mark_hook (asection *sec, struct bfd_sym_chain *sym = info->gc_sym_list; info->gc_sym_list = NULL; - do + for (; sym != NULL; sym = sym->next) { struct ppc_link_hash_entry *eh; @@ -4988,10 +4988,7 @@ ppc64_elf_gc_mark_hook (asection *sec, rsec = eh->elf.root.u.def.section; if (!rsec->gc_mark) _bfd_elf_gc_mark (info, rsec, ppc64_elf_gc_mark_hook); - - sym = sym->next; } - while (sym != NULL); } /* Syms return NULL if we're marking .opd, so we avoid marking all |