From a10ae760821ec6f09cf63f93e3b2ff0e03fbaa3d Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Wed, 25 May 2011 00:17:47 +0000 Subject: * 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. --- gold/output.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gold/output.h') diff --git a/gold/output.h b/gold/output.h index da2e9cb..86c308f 100644 --- a/gold/output.h +++ b/gold/output.h @@ -566,8 +566,7 @@ class Output_file_header : public Output_data public: Output_file_header(const Target*, const Symbol_table*, - const Output_segment_headers*, - const char* entry); + const Output_segment_headers*); // Add information about the section headers. We lay out the ELF // file header before we create the section headers. @@ -614,7 +613,6 @@ class Output_file_header : public Output_data const Output_segment_headers* segment_header_; const Output_section_headers* section_header_; const Output_section* shstrtab_; - const char* entry_; }; // Output sections are mainly comprised of input sections. However, -- cgit v1.1