diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-04 15:33:26 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-04 15:35:59 +1030 |
commit | 91114f7583fac8fdf57c58a1f632839da62e43da (patch) | |
tree | 222ae22f69b7c4cccec98cba34388d69591ebe4c /ld/ldexp.c | |
parent | 233bf4f847b136705247e2f7f11bae41c72448a4 (diff) | |
download | binutils-gdb-91114f7583fac8fdf57c58a1f632839da62e43da.tar.gz |
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.
Diffstat (limited to 'ld/ldexp.c')
-rw-r--r-- | ld/ldexp.c | 2 |
1 files changed, 1 insertions, 1 deletions
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'" |