aboutsummaryrefslogtreecommitdiff
path: root/gold/plugin.cc
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-15 19:22:25 +0000
committerRafael Ávila de Espíndola <respindola@mozilla.com>2010-06-15 19:22:25 +0000
commit91ff43fe2d1d9c8594e06385af78ed29a063690f (patch)
tree042f7253b1a57bfae42c18a978c306e2bfd8c3d9 /gold/plugin.cc
parent0407b3f19d91f3dea29b994d0465d2f0fafdedb3 (diff)
downloadgdb-91ff43fe2d1d9c8594e06385af78ed29a063690f.zip
gdb-91ff43fe2d1d9c8594e06385af78ed29a063690f.tar.gz
gdb-91ff43fe2d1d9c8594e06385af78ed29a063690f.tar.bz2
2010-06-15 Rafael Espindola <espindola@google.com>
* plugin.cc (Plugin_hook::run): Set in_real_elf for the start symbol.
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r--gold/plugin.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc
index 798b601..4cf2f6a 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -916,6 +916,14 @@ void
Plugin_hook::run(Workqueue* workqueue)
{
gold_assert(this->options_.has_plugins());
+ Symbol* start_sym;
+ if (parameters->options().entry())
+ start_sym = this->symtab_->lookup(parameters->options().entry());
+ else
+ start_sym = this->symtab_->lookup("_start");
+ if (start_sym != NULL)
+ start_sym->set_in_real_elf();
+
this->options_.plugins()->all_symbols_read(workqueue,
this,
this->input_objects_,