Lines Matching refs:sections_
477 explicit MachO(Zone* zone) : zone_(zone), sections_(6, zone) { }
480 sections_.Add(section, zone_);
481 return sections_.length() - 1;
574 cmd->nsects = sections_.length();
587 w->CreateSlotsHere<MachOSection::Header>(sections_.length());
590 for (int section = 0; section < sections_.length(); ++section) {
591 sections_[section]->PopulateHeader(headers.at(section));
592 sections_[section]->WriteBody(headers.at(section), w);
598 ZoneList<MachOSection*> sections_;
606 explicit ELF(Zone* zone) : zone_(zone), sections_(6, zone) {
607 sections_.Add(new(zone) ELFSection("", ELFSection::TYPE_NULL, 0), zone);
608 sections_.Add(new(zone) ELFStringTable(".shstrtab"), zone);
618 return sections_[index];
622 sections_.Add(section, zone_);
623 section->set_index(sections_.length() - 1);
624 return sections_.length() - 1;
684 header->sht_entry_num = sections_.length();
693 w->CreateSlotsHere<ELFSection::Header>(sections_.length());
698 for (int i = 0, length = sections_.length();
701 sections_[i]->PopulateHeader(headers.at(i), strtab);
714 for (int i = 0, length = sections_.length();
717 sections_[i]->WriteBody(headers.at(i), w);
722 ZoneList<ELFSection*> sections_;