From 8825ac63ef01c08e4668e652d461f94e6761a312 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Mon, 5 May 2008 19:16:43 +0000 Subject: * 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. --- gold/output.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gold/output.h') 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 class Output_data_group : public Output_section_data { public: + // The constructor clears *INPUT_SHNDXES. Output_data_group(Sized_relobj* relobj, section_size_type entry_count, - const elfcpp::Elf_Word* contents); + elfcpp::Elf_Word flags, + std::vector* 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 input_sections_; + std::vector input_shndxes_; }; // Output_data_got is used to manage a GOT. Each entry in the GOT is -- cgit v1.1