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/testsuite | |
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/testsuite')
-rw-r--r-- | gold/testsuite/many_sections_test.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gold/testsuite/many_sections_test.cc b/gold/testsuite/many_sections_test.cc index dcb1cd2..e4b74c3 100644 --- a/gold/testsuite/many_sections_test.cc +++ b/gold/testsuite/many_sections_test.cc @@ -29,9 +29,23 @@ #include "many_sections_define.h" +// This tests a section group. +template<typename T> +class C +{ + public: + static T val() { return C::val_; } + private: + static T val_; +}; + +template<typename T> +T C<T>::val_; + int main(int, char**) { #include "many_sections_check.h" + assert(C<int>::val() == 0); return 0; } |