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 | |
parent | aeb87a633cc7a3070e563229e9411503e412318a (diff) | |
download | gdb-738174e17e539937a6d773d7dfd501241a882b0b.zip gdb-738174e17e539937a6d773d7dfd501241a882b0b.tar.gz gdb-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')
-rw-r--r-- | ld/ChangeLog | 5 | ||||
-rw-r--r-- | ld/ldexp.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index fe87678..7a1dc98 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2020-01-28 Alan Modra <amodra@gmail.com> + + * ldexp.c (fold_name): Don't print bfd_link_hash_lookup failed + in first phase. + 2020-01-27 Alan Modra <amodra@gmail.com> * testsuite/ld-elfvers/vers.exp: Replace case statements with @@ -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) { |