mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 04:00:07 +08:00
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.
This commit is contained in:
@ -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>
|
2020-01-27 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* testsuite/ld-elfvers/vers.exp: Replace case statements with
|
* testsuite/ld-elfvers/vers.exp: Replace case statements with
|
||||||
|
@ -730,7 +730,10 @@ fold_name (etree_type *tree)
|
|||||||
tree->name.name,
|
tree->name.name,
|
||||||
TRUE, FALSE, TRUE);
|
TRUE, FALSE, TRUE);
|
||||||
if (!h)
|
if (!h)
|
||||||
|
{
|
||||||
|
if (expld.phase != lang_first_phase_enum)
|
||||||
einfo (_("%F%P: bfd_link_hash_lookup failed: %E\n"));
|
einfo (_("%F%P: bfd_link_hash_lookup failed: %E\n"));
|
||||||
|
}
|
||||||
else if (h->type == bfd_link_hash_defined
|
else if (h->type == bfd_link_hash_defined
|
||||||
|| h->type == bfd_link_hash_defweak)
|
|| h->type == bfd_link_hash_defweak)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user