Lines Matching refs:section
353 const Section* section, in Add() argument
364 Add(sym, section); in Add()
368 void Add(Elf_Sym sym, const Section* section) { in Add() argument
369 DCHECK(section != nullptr); in Add()
370 DCHECK_LE(section->GetAddress(), sym.st_value); in Add()
371 DCHECK_LE(sym.st_value, section->GetAddress() + section->header_.sh_size); in Add()
372 sym.st_shndx = section->GetSectionIndex(); in Add()
539 for (auto* section : sections_) { in End()
540 section->header_.sh_name = shstrtab_.Write(section->name_); in End()
541 if (section->link_ != nullptr) { in End()
542 section->header_.sh_link = section->link_->GetSectionIndex(); in End()
544 if (section->header_.sh_offset == 0) { in End()
545 section->header_.sh_type = SHT_NOBITS; in End()
554 for (auto* section : sections_) { in End()
555 shdrs.push_back(section->header_); in End()
598 for (Section* section : sections_) { in Strip()
599 if (section == &shstrtab_ || // Section names will be recreated. in Strip()
600 section == &symtab_ || in Strip()
601 section == &strtab_ || in Strip()
602 section->name_.find(".debug_") == 0) { in Strip()
603 section->header_.sh_offset = 0; in Strip()
604 section->header_.sh_size = 0; in Strip()
605 section->section_index_ = 0; in Strip()
607 if (section->header_.sh_type != SHT_NOBITS) { in Strip()
608 DCHECK_LE(section->header_.sh_offset, end + kPageSize) << "Large gap between sections"; in Strip()
609 end = std::max<off_t>(end, section->header_.sh_offset + section->header_.sh_size); in Strip()
611 non_debug_sections.push_back(section); in Strip()
879 for (auto* section : sections_) { in MakeProgramHeaders()
880 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders()
889 load.p_flags = section->phdr_flags_; in MakeProgramHeaders()
910 for (auto* section : sections_) { in MakeProgramHeaders()
911 const Elf_Shdr& shdr = section->header_; in MakeProgramHeaders()
915 if (section->phdr_type_ != 0) { in MakeProgramHeaders()
917 phdr.p_type = section->phdr_type_; in MakeProgramHeaders()
918 phdr.p_flags = section->phdr_flags_; in MakeProgramHeaders()