diff options
author | Alan Modra <amodra@gmail.com> | 2020-01-28 10:07:46 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-01-28 12:11:27 +1030 |
commit | 738174e17e539937a6d773d7dfd501241a882b0b (patch) | |
tree | fe4527fb2c28af7cf7766c03d602a46759ca8a6d /ld/ldexp.c | |
parent | aeb87a633cc7a3070e563229e9411503e412318a (diff) | |
download | binutils-738174e17e539937a6d773d7dfd501241a882b0b.zip binutils-738174e17e539937a6d773d7dfd501241a882b0b.tar.gz binutils-738174e17e539937a6d773d7dfd501241a882b0b.tar.bz2 |
Don't report symbol lookup failure in first phase of linking
Until the symbol table is created, symbols can't be created.
* ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed
in first phase.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r-- | ld/ldexp.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -730,7 +730,10 @@ fold_name (etree_type *tree) tree->name.name, TRUE, FALSE, TRUE); if (!h) - einfo (_("%F%P: bfd_link_hash_lookup failed: %E\n")); + { + if (expld.phase != lang_first_phase_enum) + einfo (_("%F%P: bfd_link_hash_lookup failed: %E\n")); + } else if (h->type == bfd_link_hash_defined || h->type == bfd_link_hash_defweak) { |