diff options
author | Ian Lance Taylor <iant@google.com> | 2008-01-06 00:47:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-01-06 00:47:10 +0000 |
commit | d391083d3c938e56a0d0f3e03867d91369198d35 (patch) | |
tree | 424c6ed0d5a8fa8ec5e037cee0d3a425e48b9d3b /gold/output.h | |
parent | 2969336b5ef220b001aae71ced8b87c654734725 (diff) | |
download | gdb-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.h | 9 |
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, |