diff options
Diffstat (limited to 'bfd/linker.c')
-rw-r--r-- | bfd/linker.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/linker.c b/bfd/linker.c index d4b053c..1a5ecef 100644 --- a/bfd/linker.c +++ b/bfd/linker.c @@ -1806,7 +1806,9 @@ _bfd_generic_link_add_one_symbol (struct bfd_link_info *info, case WARN: /* Warn if this symbol has been referenced already from non-IR, otherwise add a warning. */ - if (h->non_ir_ref) + if ((!info->lto_plugin_active + && (h->u.undef.next != NULL || info->hash->undefs_tail == h)) + || h->non_ir_ref) { if (! (*info->callbacks->warning) (info, string, h->root.string, hash_entry_bfd (h), NULL, 0)) |