aboutsummaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-01-06 00:47:10 +0000
committerIan Lance Taylor <iant@google.com>2008-01-06 00:47:10 +0000
commitd391083d3c938e56a0d0f3e03867d91369198d35 (patch)
tree424c6ed0d5a8fa8ec5e037cee0d3a425e48b9d3b /gold/output.h
parent2969336b5ef220b001aae71ced8b87c654734725 (diff)
downloadgdb-d391083d3c938e56a0d0f3e03867d91369198d35.zip
gdb-d391083d3c938e56a0d0f3e03867d91369198d35.tar.gz
gdb-d391083d3c938e56a0d0f3e03867d91369198d35.tar.bz2
Add support for -e and for ENTRY in linker scripts.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/gold/output.h b/gold/output.h
index 07a336d..f384c8c 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -393,7 +393,8 @@ class Output_file_header : public Output_data
public:
Output_file_header(const Target*,
const Symbol_table*,
- const Output_segment_headers*);
+ const Output_segment_headers*,
+ const char* entry);
// Add information about the section headers. We lay out the ELF
// file header before we create the section headers.
@@ -416,11 +417,17 @@ class Output_file_header : public Output_data
void
do_sized_write(Output_file*);
+ // Return the value to use for the entry address.
+ template<int size>
+ typename elfcpp::Elf_types<size>::Elf_Addr
+ entry();
+
const Target* target_;
const Symbol_table* symtab_;
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,