mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-11-23 20:19:49 +00:00
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
This commit is contained in:
parent
fad2f28d11
commit
b56cbdb94b
@ -1,3 +1,7 @@
|
||||
2006-01-17 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
|
||||
|
||||
2006-01-17 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/2159
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user