diff options
author | Ian Lance Taylor <iant@google.com> | 2008-02-28 04:45:47 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2008-02-28 04:45:47 +0000 |
commit | 919ed24cbc56717156ee86a754281cc08919d2ba (patch) | |
tree | 87151a758daf5709e798f285c607fb459b72523b /gold/layout.cc | |
parent | 15cf077ef4df71bb31c803ed9cf94d8ccdb72dc5 (diff) | |
download | gdb-919ed24cbc56717156ee86a754281cc08919d2ba.zip gdb-919ed24cbc56717156ee86a754281cc08919d2ba.tar.gz gdb-919ed24cbc56717156ee86a754281cc08919d2ba.tar.bz2 |
Don't check assertions until symbols are finalized. Create an output
section if the script uses a data statement with no input sections.
Don't create a loadable segment for the headers if there is no room.
Diffstat (limited to 'gold/layout.cc')
-rw-r--r-- | gold/layout.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/gold/layout.cc b/gold/layout.cc index c125014..b2fd971 100644 --- a/gold/layout.cc +++ b/gold/layout.cc @@ -712,6 +712,18 @@ Layout::make_output_section(const char* name, elfcpp::Elf_Word type, return os; } +// Make an output section for a script. + +Output_section* +Layout::make_output_section_for_script(const char* name) +{ + name = this->namepool_.add(name, false, NULL); + Output_section* os = this->make_output_section(name, elfcpp::SHT_PROGBITS, + elfcpp::SHF_ALLOC); + os->set_found_in_sections_clause(); + return os; +} + // Return the number of segments we expect to see. size_t |