* elflink.c (bfd_elf_record_link_assignment): Add comment about
	changing bfd_link_hash_undefined to bfd_link_hash_new.
	* ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
	was already on the undefs list.
This commit is contained in:
Alan Modra
2004-08-18 02:45:43 +00:00
parent 4287095258
commit a010d60faf
4 changed files with 20 additions and 2 deletions

View File

@@ -576,7 +576,8 @@ fold_name (etree_type *tree,
{
h->type = bfd_link_hash_undefined;
h->u.undef.abfd = NULL;
bfd_link_add_undef (link_info.hash, h);
if (h->und_next == NULL)
bfd_link_add_undef (link_info.hash, h);
}
}
break;