+2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR ld/12507
+ * plugin.c (get_symbols): Don't mark entry symbol IR only.
+
2011-02-18 John David Anglin <dave.anglin@nrc-cnnrc.gc.ca>
PR ld/12376
even potentially-referenced, perhaps in a future final link if
this is a partial one, perhaps dynamically at load-time if the
symbol is externally visible. */
- ironly = !is_visible_from_outside (&syms[n], owner_sec, blhe)
- && !bfd_hash_lookup (non_ironly_hash, syms[n].name, FALSE, FALSE);
+ 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);
/* If it was originally undefined or common, then it has been
resolved; determine how. */