PR25570, ld duplicate "warning: changing start of section"
authorAlan Modra <amodra@gmail.com>
Wed, 4 Mar 2020 10:44:19 +0000 (21:14 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 4 Mar 2020 23:18:04 +0000 (09:48 +1030)
commitbaf09cba8f97be8044f7422cb31b1cb3f23e2762
treec77d7fde7e0d7150e2ecc75753c616de57bb74bd
parent46f9f93119daaa8eceb7233a17759e10e858c9fd
PR25570, ld duplicate "warning: changing start of section"

Note that because we should report a signed delta from the previous
VMA it isn't possible to use ngettext.  ngettext only supports
unsigned long values.  So byte/bytes goes from the message.

PR 25570
* ldlang.c (lang_sizing_iteration): New static var.
(lang_size_sections_1): Warn about no memory region only on first
iteration.  Warn about changing start address on first iteration
then any delta from that on subsequent iterations.  Report a signed
delta.
(one_lang_size_sections_pass): Increment lang_sizing_iteration.
ld/ChangeLog
ld/ldlang.c