aboutsummaryrefslogtreecommitdiff
path: root/gold/plugin.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>2011-05-25 00:17:47 +0000
committerIan Lance Taylor <ian@airs.com>2011-05-25 00:17:47 +0000
commita10ae760821ec6f09cf63f93e3b2ff0e03fbaa3d (patch)
treedb379e021d168b95da97d0a9eb80e0175b3142ad /gold/plugin.cc
parent012ca7c8a8622d803a1f367ac9bd53be7f8eafee (diff)
downloadgdb-a10ae760821ec6f09cf63f93e3b2ff0e03fbaa3d.zip
gdb-a10ae760821ec6f09cf63f93e3b2ff0e03fbaa3d.tar.gz
gdb-a10ae760821ec6f09cf63f93e3b2ff0e03fbaa3d.tar.bz2
* archive.cc (Library_base::should_include_member): Pull in object
from archive if it defines the entry symbol. * parameters.cc (Parameters::entry): New function. * parameters.h (class Parameters): Declare entry. * output.h (class Output_file_header): Remove entry_ field. * output.cc (Output_file_header::Output_file_header): Remove entry parameter. Change all callers. (Output_file_header::entry): Use parameters->entry. * gold.cc (queue_middle_tasks): Likewise. * plugin.cc (Plugin_hook::run): Likewise.
Diffstat (limited to 'gold/plugin.cc')
-rw-r--r--gold/plugin.cc6
1 files changed, 1 insertions, 5 deletions
diff --git a/gold/plugin.cc b/gold/plugin.cc
index 3a5e672..345df28 100644
--- a/gold/plugin.cc
+++ b/gold/plugin.cc
@@ -1218,11 +1218,7 @@ 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");
+ Symbol* start_sym = this->symtab_->lookup(parameters->entry());
if (start_sym != NULL)
start_sym->set_in_real_elf();