Index: ld/plugin.c =================================================================== RCS file: /cvs/src/src/ld/plugin.c,v retrieving revision 1.24 diff -p -u -r1.24 plugin.c --- ld/plugin.c 24 Feb 2011 22:58:05 -0000 1.24 +++ ld/plugin.c 25 Feb 2011 22:41:09 -0000 @@ -496,7 +496,8 @@ get_symbols (const void *handle, int nsy ironly = (!is_visible_from_outside (&syms[n], owner_sec, blhe) && !bfd_hash_lookup (non_ironly_hash, syms[n].name, FALSE, FALSE) - && strcmp (syms[n].name, entry_symbol.name) != 0); + && (entry_symbol.name == NULL + || strcmp (syms[n].name, entry_symbol.name) != 0)); /* If it was originally undefined or common, then it has been resolved; determine how. */