Lines Matching refs:sections

318   ArrayRef<InputSectionBase *> sections = s->file->getSections();  in getDILineInfo()  local
319 for (uint64_t curIndex = 0; curIndex < sections.size(); ++curIndex) { in getDILineInfo()
320 if (s == sections[curIndex]) { in getDILineInfo()
351 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection() argument
352 for (const Elf_Shdr &sec : sections) in findSection()
368 ArrayRef<Elf_Shdr> sections = CHECK(obj.sections(), this); in init() local
374 findSection(sections, isDSO ? SHT_DYNSYM : SHT_SYMTAB); in init()
388 stringTable = CHECK(obj.getStringTableForSymtab(*symtabSec, sections), this); in init()
423 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature() argument
500 ArrayRef<Elf_Shdr> sections = CHECK(this->getObj().sections(), this); in initializeJustSymbols() local
501 this->sections.resize(sections.size()); in initializeJustSymbols()
528 static void handleSectionGroup(ArrayRef<InputSectionBase *> sections, in handleSectionGroup() argument
532 if (index >= sections.size()) in handleSectionGroup()
534 if (InputSectionBase *s = sections[index]) in handleSectionGroup()
550 InputSectionBase *s = sections[index]; in handleSectionGroup()
567 ArrayRef<Elf_Shdr> objSections = CHECK(obj.sections(), this); in initializeSections()
569 this->sections.resize(size); in initializeSections()
576 if (this->sections[i] == &InputSection::discarded) in initializeSections()
602 this->sections[i] = &InputSection::discarded; in initializeSections()
610 this->sections[i] = &InputSection::discarded; in initializeSections()
627 this->sections[i] = createInputSection(sec); in initializeSections()
637 this->sections[secIndex] = &InputSection::discarded; in initializeSections()
651 this->sections[i] = createInputSection(sec); in initializeSections()
663 if (this->sections[i] == &InputSection::discarded) in initializeSections()
668 this->sections[i] = createInputSection(sec); in initializeSections()
676 if (sec.sh_link < this->sections.size()) in initializeSections()
677 linkSec = this->sections[sec.sh_link]; in initializeSections()
683 InputSection *isec = cast<InputSection>(this->sections[i]); in initializeSections()
692 handleSectionGroup<ELFT>(this->sections, entries); in initializeSections()
854 if (idx >= this->sections.size()) in getRelocTarget()
856 InputSectionBase *target = this->sections[idx]; in getRelocTarget()
963 this->sections[sec.sh_info] = target; in createInputSection()
1093 if (secIdx >= this->sections.size()) in initializeSymbols()
1113 InputSectionBase *sec = this->sections[secIdx]; in initializeSymbols()
1142 InputSectionBase *sec = this->sections[secIdx]; in initializeSymbols()
1417 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment() argument
1422 if (0 < sym.st_shndx && sym.st_shndx < sections.size()) in getAlignment()
1423 ret = std::min<uint64_t>(ret, sections[sym.st_shndx].sh_addralign); in getAlignment()
1451 ArrayRef<Elf_Shdr> sections = CHECK(obj.sections(), this); in parse() local
1458 for (const Elf_Shdr &sec : sections) { in parse()
1583 uint32_t alignment = getAlignment<ELFT>(sections, sym); in parse()
1765 sections.push_back(section); in parse()
1840 ArrayRef<typename ELFT::Shdr> sections = CHECK(obj.sections(), this); in parse() local
1842 for (const typename ELFT::Shdr &sec : sections) { in parse()
1849 StringRef strtab = CHECK(obj.getStringTableForSymtab(sec, sections), this); in parse()