// Layout methods.
-Layout::Layout(int number_of_input_files, Script_options* script_options)
+Layout::Layout(int number_of_input_files, Script_options* script_opts)
: number_of_input_files_(number_of_input_files),
- script_options_(script_options),
+ script_options_(script_opts),
namepool_(),
sympool_(),
dynpool_(),
// inconvenient to check.
if (this->allocated_output_section_count() >= elfcpp::SHN_LORESERVE)
{
- Output_section* dynsym_xindex =
+ Output_section* dyn_sym_xindex =
this->choose_output_section(NULL, ".dynsym_shndx",
elfcpp::SHT_SYMTAB_SHNDX,
elfcpp::SHF_ALLOC,
this->dynsym_xindex_ = new Output_symtab_xindex(index);
- dynsym_xindex->add_output_section_data(this->dynsym_xindex_);
+ dyn_sym_xindex->add_output_section_data(this->dynsym_xindex_);
- dynsym_xindex->set_link_section(dynsym);
- dynsym_xindex->set_addralign(4);
- dynsym_xindex->set_entsize(4);
+ dyn_sym_xindex->set_link_section(dynsym);
+ dyn_sym_xindex->set_addralign(4);
+ dyn_sym_xindex->set_entsize(4);
- dynsym_xindex->set_after_input_sections();
+ dyn_sym_xindex->set_after_input_sections();
// This tells the driver code to wait until the symbol table has
// written out before writing out the postprocessing sections,
// Store the allocated sections into the section list.
void
-Layout::get_allocated_sections(Section_list* section_list) const
+Layout::get_allocated_sections(Section_list* sec_list) const
{
for (Section_list::const_iterator p = this->section_list_.begin();
p != this->section_list_.end();
++p)
if (((*p)->flags() & elfcpp::SHF_ALLOC) != 0)
- section_list->push_back(*p);
+ sec_list->push_back(*p);
}
// Create an output segment.
{
if (!parameters->options().strip_all())
{
- const Output_section* symtab_section = this->symtab_section_;
+ const Output_section* sym_tab_section = this->symtab_section_;
for (Section_list::const_iterator p = this->section_list_.begin();
p != this->section_list_.end();
++p)
{
if ((*p)->needs_symtab_index())
{
- gold_assert(symtab_section != NULL);
+ gold_assert(sym_tab_section != NULL);
unsigned int index = (*p)->symtab_index();
gold_assert(index > 0 && index != -1U);
- off_t off = (symtab_section->offset()
- + index * symtab_section->entsize());
+ off_t off = (sym_tab_section->offset()
+ + index * sym_tab_section->entsize());
symtab->write_section_symbol(*p, this->symtab_xindex_, of, off);
}
}
}
- const Output_section* dynsym_section = this->dynsym_section_;
+ const Output_section* dyn_sym_section = this->dynsym_section_;
for (Section_list::const_iterator p = this->section_list_.begin();
p != this->section_list_.end();
++p)
{
if ((*p)->needs_dynsym_index())
{
- gold_assert(dynsym_section != NULL);
+ gold_assert(dyn_sym_section != NULL);
unsigned int index = (*p)->dynsym_index();
gold_assert(index > 0 && index != -1U);
- off_t off = (dynsym_section->offset()
- + index * dynsym_section->entsize());
+ off_t off = (dyn_sym_section->offset()
+ + index * dyn_sym_section->entsize());
symtab->write_section_symbol(*p, this->dynsym_xindex_, of, off);
}
}