From: Rafael Ávila de Espíndola Date: Tue, 15 Jun 2010 19:22:25 +0000 (+0000) Subject: 2010-06-15 Rafael Espindola X-Git-Tag: gdb_7_2-2010-07-07-branchpoint~223 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=91ff43fe2d1d9c8594e06385af78ed29a063690f;p=external%2Fbinutils.git 2010-06-15 Rafael Espindola * plugin.cc (Plugin_hook::run): Set in_real_elf for the start symbol. --- diff --git a/gold/ChangeLog b/gold/ChangeLog index 5c63a9a..b7bff3b 100644 --- a/gold/ChangeLog +++ b/gold/ChangeLog @@ -1,3 +1,7 @@ +2010-06-15 Rafael Espindola + + * plugin.cc (Plugin_hook::run): Set in_real_elf for the start symbol. + 2010-06-15 Viktor Kutuzov * fileread.cc: Only #include if HAVE_READV. 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_,