diff options
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index d880164ded..23a4a78ee9 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -997,7 +997,8 @@ plugin_notice (struct bfd_link_info *info, /* Replace the undefined dummy bfd with the real one. */ if ((h->type == bfd_link_hash_undefined || h->type == bfd_link_hash_undefweak) - && (h->u.undef.abfd->flags & BFD_PLUGIN) != 0) + && (h->u.undef.abfd == NULL + || (h->u.undef.abfd->flags & BFD_PLUGIN) != 0)) h->u.undef.abfd = abfd; h->non_ir_ref = TRUE; } |