From f2b6d1ce1e7bf9b010077749db8cbcdfa4ade59f Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Wed, 20 Oct 2010 17:01:05 +0000 Subject: * plugin.c (get_symbols): Check symbol type correctly. --- ld/plugin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ld/plugin.c') diff --git a/ld/plugin.c b/ld/plugin.c index c1961c54f4..efc520f707 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -417,7 +417,7 @@ get_symbols (const void *handle, int nsyms, struct ld_plugin_symbol *syms) if (syms[n].def == LDPK_UNDEF || syms[n].def == LDPK_WEAKUNDEF || syms[n].def == LDPK_COMMON) { - asection *owner_sec = (syms[n].def == LDPK_COMMON) + asection *owner_sec = (blhe->type == bfd_link_hash_common) ? blhe->u.c.p->section : blhe->u.def.section; if (owner_sec->owner == link_info.output_bfd) -- cgit v1.2.1