From 8ff09c128e068b93ad4a6fca96389a29c214e31d Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 24 Feb 2011 22:58:05 +0000 Subject: [PATCH] Don't mark entry symbol IR only. 2011-02-24 H.J. Lu PR ld/12507 * plugin.c (get_symbols): Don't mark entry symbol IR only. --- ld/ChangeLog | 5 +++++ ld/plugin.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ld/ChangeLog b/ld/ChangeLog index 7b3d9bd939a..c6722094e40 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,8 @@ +2011-02-24 H.J. Lu + + PR ld/12507 + * plugin.c (get_symbols): Don't mark entry symbol IR only. + 2011-02-18 John David Anglin PR ld/12376 diff --git a/ld/plugin.c b/ld/plugin.c index 86d80ca4a15..6e3f9232453 100644 --- a/ld/plugin.c +++ b/ld/plugin.c @@ -493,8 +493,10 @@ get_symbols (const void *handle, int nsyms, struct ld_plugin_symbol *syms) 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. */ -- 2.30.2