Lines Matching refs:section
115 void AddDynamicTag(Elf_Sword tag, Elf_Word value, const Section* section) { in AddDynamicTag() argument
117 dynamics_.push_back({tag, value, section}); in AddDynamicTag()
302 void AddSymbol(const std::string& name, const Section* section,
305 CHECK(section != nullptr);
307 symbols_.push_back({ name, section, addr, size, is_relative,
622 for (Section* section : other_sections_) { in Write()
623 sections.push_back(section); in Write()
656 for (auto* section : sections) { in Write()
657 Elf_Shdr* header = section->GetHeader(); in Write()
659 header->sh_size = section->GetSize(); in Write()
660 header->sh_link = section->GetLink(); in Write()
672 LOG(INFO) << "Section " << section->GetName() << ":" << std::hex in Write()
738 for (Section* section : sections) { in Write()
739 const Elf_Shdr* header = section->GetHeader(); in Write()
741 if (!SeekTo(elf_file, header->sh_offset) || !section->Write(elf_file)) { in Write()
742 LOG(INFO) << "Failed to write section " << section->GetName(); in Write()
759 void RegisterSection(Section* section) { in RegisterSection() argument
760 other_sections_.push_back(section); in RegisterSection()
764 for (const auto* section : other_sections_) { in FindSection() local
765 if (section->GetName() == name) { in FindSection()
766 return section; in FindSection()
812 const Section& section) { in MakeProgramHeader() argument
813 const Elf_Shdr* shdr = section.GetHeader(); in MakeProgramHeader()