* plugin.c (get_symbols): Check symbol type correctly.
This commit is contained in:
parent
18a8530e50
commit
7bac81d3f6
2 changed files with 5 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
|||
2010-10-20 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||
|
||||
* plugin.c (get_symbols): Check symbol type correctly.
|
||||
|
||||
2010-10-15 Dave Korn <dave.korn.cygwin@gmail.com>
|
||||
|
||||
* configure.in: If <dlfcn.h> can't be found, try for <Windows.h>
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue