Lines Matching refs:sections

442 static void handleSectionGroup(ArrayRef<InputSectionBase *> sections,  in handleSectionGroup()  argument
446 if (index >= sections.size()) in handleSectionGroup()
448 if (InputSectionBase *s = sections[index]) in handleSectionGroup()
464 InputSectionBase *s = sections[index]; in handleSectionGroup()
505 ArrayRef<InputSectionBase *> sections = s->file->getSections(); in getDILineInfo() local
506 for (uint64_t curIndex = 0; curIndex < sections.size(); ++curIndex) { in getDILineInfo()
507 if (s == sections[curIndex]) { in getDILineInfo()
522 static const Elf_Shdr *findSection(ArrayRef<Elf_Shdr> sections, uint32_t type) { in findSection() argument
523 for (const Elf_Shdr &sec : sections) in findSection()
558 ArrayRef<Elf_Shdr> sections = CHECK(obj.sections(), this); in init() local
559 elfShdrs = sections.data(); in init()
560 numELFShdrs = sections.size(); in init()
564 findSection(sections, k == SharedKind ? SHT_DYNSYM : SHT_SYMTAB); in init()
578 stringTable = CHECK(obj.getStringTableForSymtab(*symtabSec, sections), this); in init()
602 sections.resize(size); in parse()
621 this->sections[i] = &InputSection::discarded; in parse()
630 this->sections[i] = &InputSection::discarded; in parse()
646 this->sections[i] = in.attributes.get(); in parse()
657 this->sections[i] = &InputSection::discarded; in parse()
679 this->sections[i] = createInputSection( in parse()
689 this->sections[secIndex] = &InputSection::discarded; in parse()
701 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature() argument
764 sections.resize(numELFShdrs); in initializeJustSymbols()
784 if (this->sections[i] == &InputSection::discarded) in initializeSections()
810 this->sections[i] = &InputSection::discarded; in initializeSections()
817 sections[i] = &InputSection::discarded; in initializeSections()
844 this->sections[i] = in initializeSections()
853 sections[i] = &InputSection::discarded; in initializeSections()
858 this->sections[i] = in initializeSections()
864 errorOrWarn(toString(this->sections[i]) + ": unknown section type 0x" + in initializeSections()
878 if (this->sections[i] == &InputSection::discarded) in initializeSections()
902 sections[info] = s; in initializeSections()
921 sections[i] = isec; in initializeSections()
933 linkSec = this->sections[sec.sh_link]; in initializeSections()
939 InputSection *isec = cast<InputSection>(this->sections[i]); in initializeSections()
948 handleSectionGroup<ELFT>(this->sections, entries); in initializeSections()
1027 if (info < this->sections.size()) { in getRelocTarget()
1028 InputSectionBase *target = this->sections[info]; in getRelocTarget()
1205 if (LLVM_UNLIKELY(secIdx >= sections.size())) in initSectionsAndLocalSyms()
1211 InputSectionBase *sec = sections[secIdx]; in initSectionsAndLocalSyms()
1265 if (LLVM_UNLIKELY(secIdx >= sections.size())) in postParse()
1267 InputSectionBase *sec = sections[secIdx]; in postParse()
1429 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment() argument
1434 if (0 < sym.st_shndx && sym.st_shndx < sections.size()) in getAlignment()
1435 ret = std::min<uint64_t>(ret, sections[sym.st_shndx].sh_addralign); in getAlignment()
1463 ArrayRef<Elf_Shdr> sections = getELFShdrs<ELFT>(); in parse() local
1470 for (const Elf_Shdr &sec : sections) { in parse()
1602 uint32_t alignment = getAlignment<ELFT>(sections, sym); in parse()
1826 sections.push_back(section); in parse()