From 91114f7583fac8fdf57c58a1f632839da62e43da Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Wed, 4 Mar 2020 15:33:26 +1030 Subject: PR25570, ld duplicate "warning: changing start of section" PR 25570 * ldlang.c (lang_size_sections_1): Delay emitting non-fatal errors/warnings until final pass. * ldexp.c (fold_name): Likewise. --- ld/ldexp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/ldexp.c') diff --git a/ld/ldexp.c b/ld/ldexp.c index 6d1457b929a..d2b1b43a5a9 100644 --- a/ld/ldexp.c +++ b/ld/ldexp.c @@ -742,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'" -- cgit v1.2.1