mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
* 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.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user