summaryrefslogtreecommitdiff
path: root/ld/ldexp.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-03-04 15:33:26 +1030
committerAlan Modra <amodra@gmail.com>2020-03-04 15:35:59 +1030
commit91114f7583fac8fdf57c58a1f632839da62e43da (patch)
tree222ae22f69b7c4cccec98cba34388d69591ebe4c /ld/ldexp.c
parent233bf4f847b136705247e2f7f11bae41c72448a4 (diff)
downloadbinutils-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.c2
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'"