diff options
author | Alan Modra <amodra@gmail.com> | 2010-05-14 03:15:20 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2010-05-14 03:15:20 +0000 |
commit | e092cb30d23375162df46825e5b5bc99a339245b (patch) | |
tree | a4808ab88f40435294c6f5580decd4f3966398db /ld/ldexp.c | |
parent | 6595d32bb250ef0d53a93c91774a284d04988f7e (diff) | |
download | gdb-e092cb30d23375162df46825e5b5bc99a339245b.zip gdb-e092cb30d23375162df46825e5b5bc99a339245b.tar.gz gdb-e092cb30d23375162df46825e5b5bc99a339245b.tar.bz2 |
PR ld/11583
* ldexp.c (exp_fold_tree_1): If assignment source expression is
invalid, make the destination symbol undefined.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r-- | ld/ldexp.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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; |