Commit fbcb30f2 authored by Alan Modra's avatar Alan Modra
Browse files

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.

(cherry picked from commit 738174e1)
parent 7b647b69
2020-01-29 Alan Modra <amodra@gmail.com>
Apply from master
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 H.J. Lu <hongjiu.lu@intel.com>
Alan Modra <amodra@gmail.com>
PR ld/25458
......
......@@ -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)
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment