Lines Matching refs:sections
390 static void handleSectionGroup(ArrayRef<InputSectionBase *> sections, in handleSectionGroup() argument
394 if (index >= sections.size()) in handleSectionGroup()
396 if (InputSectionBase *s = sections[index]) in handleSectionGroup()
412 InputSectionBase *s = sections[index]; in handleSectionGroup()
453 ArrayRef<InputSectionBase *> sections = s->file->getSections(); in getDILineInfo() local
454 for (uint64_t curIndex = 0; curIndex < sections.size(); ++curIndex) { in getDILineInfo()
455 if (s == sections[curIndex]) { in getDILineInfo()
470 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection() argument
471 for (const Elf_Shdr &sec : sections) in findSection()
506 ArrayRef<Elf_Shdr> sections = CHECK(obj.sections(), this); in init() local
507 elfShdrs = sections.data(); in init()
508 numELFShdrs = sections.size(); in init()
512 findSection(sections, k == SharedKind ? SHT_DYNSYM : SHT_SYMTAB); in init()
526 stringTable = CHECK(obj.getStringTableForSymtab(*symtabSec, sections), this); in init()
550 sections.resize(size); in parse()
569 this->sections[i] = &InputSection::discarded; in parse()
578 this->sections[i] = &InputSection::discarded; in parse()
594 this->sections[i] = in.attributes.get(); in parse()
617 this->sections[i] = createInputSection( in parse()
627 this->sections[secIndex] = &InputSection::discarded; in parse()
639 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature() argument
702 sections.resize(numELFShdrs); in initializeJustSymbols()
713 if (this->sections[i] == &InputSection::discarded) in initializeSections()
738 this->sections[i] = &InputSection::discarded; in initializeSections()
745 sections[i] = &InputSection::discarded; in initializeSections()
766 this->sections[i] = createInputSection(i, sec, check(obj.getSectionName(sec, shstrtab))); in initializeSections()
777 this->sections[i] = in initializeSections()
790 if (this->sections[i] == &InputSection::discarded) in initializeSections()
814 sections[info] = s; in initializeSections()
833 sections[i] = isec; in initializeSections()
845 linkSec = this->sections[sec.sh_link]; in initializeSections()
851 InputSection *isec = cast<InputSection>(this->sections[i]); in initializeSections()
860 handleSectionGroup<ELFT>(this->sections, entries); in initializeSections()
937 if (info < this->sections.size()) { in getRelocTarget()
938 InputSectionBase *target = this->sections[info]; in getRelocTarget()
1115 if (LLVM_UNLIKELY(secIdx >= sections.size())) in initSectionsAndLocalSyms()
1121 InputSectionBase *sec = sections[secIdx]; in initSectionsAndLocalSyms()
1175 if (LLVM_UNLIKELY(secIdx >= sections.size())) in postParse()
1177 InputSectionBase *sec = sections[secIdx]; in postParse()
1339 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment() argument
1344 if (0 < sym.st_shndx && sym.st_shndx < sections.size()) in getAlignment()
1345 ret = std::min<uint64_t>(ret, sections[sym.st_shndx].sh_addralign); in getAlignment()
1373 ArrayRef<Elf_Shdr> sections = getELFShdrs<ELFT>(); in parse() local
1376 CHECK(obj.getSectionStringTable(sections), this); in parse()
1383 for (const Elf_Shdr &sec : sections) { in parse()
1522 uint32_t alignment = getAlignment<ELFT>(sections, sym); in parse()
1735 sections.push_back(section); in parse()