PR ld/11583
* ldexp.c (exp_fold_tree_1): If assignment source expression is invalid, make the destination symbol undefined.
This commit is contained in:
parent
6595d32bb2
commit
e092cb30d2
@ -1,3 +1,9 @@
|
||||
2010-05-14 Alan Modra <amodra@gmail.com>
|
||||
|
||||
PR ld/11583
|
||||
* ldexp.c (exp_fold_tree_1): If assignment source expression is
|
||||
invalid, make the destination symbol undefined.
|
||||
|
||||
2010-05-11 Kai Tietz <kai.tietz@onevision.com>
|
||||
|
||||
* emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
|
||||
|
@ -830,6 +830,14 @@ exp_fold_tree_1 (etree_type *tree)
|
||||
hsrc);
|
||||
}
|
||||
}
|
||||
else if (expld.phase == lang_final_phase_enum)
|
||||
{
|
||||
h = bfd_link_hash_lookup (link_info.hash, tree->assign.dst,
|
||||
FALSE, FALSE, TRUE);
|
||||
if (h != NULL
|
||||
&& h->type == bfd_link_hash_new)
|
||||
h->type = bfd_link_hash_undefined;
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user