diff options
author | Ian Lance Taylor <ian@airs.com> | 2008-05-05 19:16:43 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2008-05-05 19:16:43 +0000 |
commit | 8825ac63ef01c08e4668e652d461f94e6761a312 (patch) | |
tree | 535e0e766b8a0a6473bd103a911c07f6c80fff9b /gold/output.h | |
parent | b3dc826bc7308d6e556424dd369d57fe8acc8a96 (diff) | |
download | gdb-8825ac63ef01c08e4668e652d461f94e6761a312.zip gdb-8825ac63ef01c08e4668e652d461f94e6761a312.tar.gz gdb-8825ac63ef01c08e4668e652d461f94e6761a312.tar.bz2 |
* object.cc (Sized_relobj::include_section_group): Adjust section
indexes read from group data. Build vector to pass to
layout_group.
* layout.cc (Layout::layout_group): Add flags and shndxes
parameters. Remove contents parameter. Change caller. Update
explicit instantiations.
* layout.h (class Layout): Update layout_group declaration.
* output.cc (Output_data_group::Output_data_group): Add flags and
input_shndxes parameters. Remove contents parameter. Change
caller.
(Output_data_group::do_write): Change input_sections_ to
input_shndxes_.
* output.h (class Output_data_group): Update constructor
declaration. Rename input_sections_ to input_shndxes_.
* testsuite/many_sections_test.cc: Add template.
Diffstat (limited to 'gold/output.h')
-rw-r--r-- | gold/output.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gold/output.h b/gold/output.h index b6527a3..9d6577e 100644 --- a/gold/output.h +++ b/gold/output.h @@ -1346,9 +1346,11 @@ template<int size, bool big_endian> class Output_data_group : public Output_section_data { public: + // The constructor clears *INPUT_SHNDXES. Output_data_group(Sized_relobj<size, big_endian>* relobj, section_size_type entry_count, - const elfcpp::Elf_Word* contents); + elfcpp::Elf_Word flags, + std::vector<unsigned int>* input_shndxes); void do_write(Output_file*); @@ -1359,7 +1361,7 @@ class Output_data_group : public Output_section_data // The group flag word. elfcpp::Elf_Word flags_; // The section indexes of the input sections in this group. - std::vector<unsigned int> input_sections_; + std::vector<unsigned int> input_shndxes_; }; // Output_data_got is used to manage a GOT. Each entry in the GOT is |