PR ld/815

* elflink.c (elf_smash_syms): Clear undef.next if it's not being
	used as a list pointer.
This commit is contained in:
Alan Modra 2005-04-15 03:42:46 +00:00
parent 86fc41d1fe
commit 2e8b3a6111
2 changed files with 10 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-04-15 Alan Modra <amodra@bigpond.net.au>
PR ld/815
* elflink.c (elf_smash_syms): Clear undef.next if it's not being
used as a list pointer.
2005-04-14 Alan Modra <amodra@bigpond.net.au>
* Makefile.am (NO_WERROR): Define.

View File

@ -2935,8 +2935,11 @@ elf_smash_syms (struct elf_link_hash_entry *h, void *data)
if (h->ref_regular)
abort ();
/* Set sym back to newly created state, but keep undefs list pointer. */
/* Set sym back to newly created state, but keep undef.next if it is
being used as a list pointer. */
bh = h->root.u.undef.next;
if (bh == &h->root)
bh = NULL;
if (bh != NULL || inf->htab->root.undefs_tail == &h->root)
inf->twiddled = TRUE;
(*inf->htab->root.table.newfunc) (&h->root.root,