aboutsummaryrefslogtreecommitdiff
path: root/gold/layout.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/layout.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/layout.cc')
-rw-r--r--gold/layout.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gold/layout.cc b/gold/layout.cc
index 356a664..f44640c 100644
--- a/gold/layout.cc
+++ b/gold/layout.cc
@@ -2192,9 +2192,8 @@ Layout::finalize(const Input_objects* input_objects, Symbol_table* symtab,
: new Output_segment_headers(this->segment_list_));
// Lay out the file header.
- Output_file_header* file_header
- = new Output_file_header(target, symtab, segment_headers,
- parameters->options().entry());
+ Output_file_header* file_header = new Output_file_header(target, symtab,
+ segment_headers);
this->special_output_list_.push_back(file_header);
if (segment_headers != NULL)