PR25570, ld duplicate "warning: changing start of section"
[deliverable/binutils-gdb.git] / ld / ldexp.c
index 1fda65d714836f12a8b2351d0c5162ca554d631a..d2b1b43a5a9d72610a8d9986b173e871a0b7d7bf 100644 (file)
@@ -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)
            {
@@ -739,7 +742,7 @@ fold_name (etree_type *tree)
              output_section = h->u.def.section->output_section;
              if (output_section == NULL)
                {
-                 if (expld.phase <= lang_mark_phase_enum)
+                 if (expld.phase != lang_final_phase_enum)
                    new_rel (h->u.def.value, h->u.def.section);
                  else
                    einfo (_("%X%P:%pS: unresolvable symbol `%s'"
This page took 0.025324 seconds and 4 git commands to generate.