diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2011-02-24 22:58:05 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2011-02-24 22:58:05 +0000 |
commit | ecba94bade8785ad4333ab5183710729ada408b5 (patch) | |
tree | adf7520ad3f4b8af520dfd3e6496e62f9e927286 /ld/plugin.c | |
parent | 60ba8e11b388ecf37592da7a4ecafd869aba454f (diff) | |
download | binutils-redhat-ecba94bade8785ad4333ab5183710729ada408b5.tar.gz |
Don't mark entry symbol IR only.
2011-02-24 H.J. Lu <hongjiu.lu@intel.com>
PR ld/12507
* plugin.c (get_symbols): Don't mark entry symbol IR only.
Diffstat (limited to 'ld/plugin.c')
-rw-r--r-- | ld/plugin.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ld/plugin.c b/ld/plugin.c index 86d80ca4a1..6e3f923245 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. */ |