Lines Matching refs:sections
419 static void handleSectionGroup(ArrayRef<InputSectionBase *> sections, in handleSectionGroup() argument
423 if (index >= sections.size()) in handleSectionGroup()
425 if (InputSectionBase *s = sections[index]) in handleSectionGroup()
441 InputSectionBase *s = sections[index]; in handleSectionGroup()
482 ArrayRef<InputSectionBase *> sections = s->file->getSections(); in getDILineInfo() local
483 for (uint64_t curIndex = 0; curIndex < sections.size(); ++curIndex) { in getDILineInfo()
484 if (s == sections[curIndex]) { in getDILineInfo()
499 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection() argument
500 for (const Elf_Shdr &sec : sections) in findSection()
535 ArrayRef<Elf_Shdr> sections = CHECK(obj.sections(), this); in init() local
536 elfShdrs = sections.data(); in init()
537 numELFShdrs = sections.size(); in init()
541 findSection(sections, k == SharedKind ? SHT_DYNSYM : SHT_SYMTAB); in init()
555 stringTable = CHECK(obj.getStringTableForSymtab(*symtabSec, sections), this); in init()
579 sections.resize(size); in parse()
598 this->sections[i] = &InputSection::discarded; in parse()
607 this->sections[i] = &InputSection::discarded; in parse()
623 this->sections[i] = in.attributes.get(); in parse()
634 this->sections[i] = &InputSection::discarded; in parse()
656 this->sections[i] = createInputSection( in parse()
666 this->sections[secIndex] = &InputSection::discarded; in parse()
678 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature() argument
741 sections.resize(numELFShdrs); in initializeJustSymbols()
752 if (this->sections[i] == &InputSection::discarded) in initializeSections()
777 this->sections[i] = &InputSection::discarded; in initializeSections()
784 sections[i] = &InputSection::discarded; in initializeSections()
808 this->sections[i] = in initializeSections()
821 if (this->sections[i] == &InputSection::discarded) in initializeSections()
845 sections[info] = s; in initializeSections()
864 sections[i] = isec; in initializeSections()
876 linkSec = this->sections[sec.sh_link]; in initializeSections()
882 InputSection *isec = cast<InputSection>(this->sections[i]); in initializeSections()
891 handleSectionGroup<ELFT>(this->sections, entries); in initializeSections()
969 if (info < this->sections.size()) { in getRelocTarget()
970 InputSectionBase *target = this->sections[info]; in getRelocTarget()
1147 if (LLVM_UNLIKELY(secIdx >= sections.size())) in initSectionsAndLocalSyms()
1153 InputSectionBase *sec = sections[secIdx]; in initSectionsAndLocalSyms()
1207 if (LLVM_UNLIKELY(secIdx >= sections.size())) in postParse()
1209 InputSectionBase *sec = sections[secIdx]; in postParse()
1371 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment() argument
1376 if (0 < sym.st_shndx && sym.st_shndx < sections.size()) in getAlignment()
1377 ret = std::min<uint64_t>(ret, sections[sym.st_shndx].sh_addralign); in getAlignment()
1405 ArrayRef<Elf_Shdr> sections = getELFShdrs<ELFT>(); in parse() local
1412 for (const Elf_Shdr &sec : sections) { in parse()
1544 uint32_t alignment = getAlignment<ELFT>(sections, sym); in parse()
1768 sections.push_back(section); in parse()