Lines Matching refs:ELFT

161 template <class ELFT> static void doParseFile(InputFile *file) {  in doParseFile()
178 cast<ObjFile<ELFT>>(file)->parseLazy(); in doParseFile()
188 f->parse<ELFT>(); in doParseFile()
195 f->parse<ELFT>(); in doParseFile()
201 cast<ObjFile<ELFT>>(file)->parse(); in doParseFile()
216 template <class ELFT>
217 static std::string getSrcMsgAux(ObjFile<ELFT> &file, const Symbol &sym, in getSrcMsgAux()
261 template <class ELFT> DWARFCache *ObjFile<ELFT>::getDwarf() { in getDwarf()
264 std::make_unique<LLDDwarfObj<ELFT>>(this), "", in getDwarf()
276 template <class ELFT>
278 ObjFile<ELFT>::getVariableLoc(StringRef name) { in getVariableLoc()
284 template <class ELFT>
285 Optional<DILineInfo> ObjFile<ELFT>::getDILineInfo(InputSectionBase *s, in getDILineInfo()
329 template <class ELFT> void ELFFileBase::init() { in init()
330 using Elf_Shdr = typename ELFT::Shdr; in init()
331 using Elf_Sym = typename ELFT::Sym; in init()
334 const ELFFile<ELFT> &obj = getObj<ELFT>(); in init()
364 template <class ELFT>
365 uint32_t ObjFile<ELFT>::getSectionIndex(const Elf_Sym &sym) const { in getSectionIndex()
367 this->getObj().getSectionIndex(sym, getELFSyms<ELFT>(), shndxTable), in getSectionIndex()
371 template <class ELFT> void ObjFile<ELFT>::parse(bool ignoreComdats) { in parse()
372 object::ELFFile<ELFT> obj = this->getObj(); in parse()
386 template <class ELFT>
387 StringRef ObjFile<ELFT>::getShtGroupSignature(ArrayRef<Elf_Shdr> sections, in getShtGroupSignature()
389 typename ELFT::SymRange symbols = this->getELFSyms<ELFT>(); in getShtGroupSignature()
392 const typename ELFT::Sym &sym = symbols[sec.sh_info]; in getShtGroupSignature()
396 template <class ELFT>
397 bool ObjFile<ELFT>::shouldMerge(const Elf_Shdr &sec, StringRef name) { in shouldMerge()
449 template <class ELFT> void ObjFile<ELFT>::initializeJustSymbols() { in initializeJustSymbols()
476 template <class ELFT>
478 ArrayRef<typename ELFT::Word> entries) { in handleSectionGroup()
512 template <class ELFT>
513 void ObjFile<ELFT>::initializeSections(bool ignoreComdats, in initializeSections()
514 const llvm::object::ELFFile<ELFT> &obj) { in initializeSections()
515 ArrayRef<Elf_Shdr> objSections = getELFShdrs<ELFT>(); in initializeSections()
683 handleSectionGroup<ELFT>(this->sections, entries); in initializeSections()
784 template <class ELFT> static uint32_t readAndFeatures(const InputSection &sec) { in readAndFeatures()
785 using Elf_Nhdr = typename ELFT::Nhdr; in readAndFeatures()
786 using Elf_Note = typename ELFT::Note; in readAndFeatures()
816 uint32_t type = read32<ELFT::TargetEndianness>(desc.data()); in readAndFeatures()
817 uint32_t size = read32<ELFT::TargetEndianness>(desc.data() + 4); in readAndFeatures()
828 featuresSet |= read32<ELFT::TargetEndianness>(desc.data()); in readAndFeatures()
832 desc = desc.slice(alignTo<(ELFT::Is64Bits ? 8 : 4)>(size)); in readAndFeatures()
842 template <class ELFT>
843 InputSectionBase *ObjFile<ELFT>::getRelocTarget(uint32_t idx, in getRelocTarget()
864 template <class ELFT>
865 InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx, in createInputSection()
957 this->andFeatures = readAndFeatures<ELFT>(InputSection(*this, sec, name)); in createInputSection()
1005 template <class ELFT>
1006 void ObjFile<ELFT>::initializeSymbols(const object::ELFFile<ELFT> &obj) { in initializeSymbols()
1009 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in initializeSymbols()
1066 template <class ELFT> void ObjFile<ELFT>::initializeLocalSymbols() { in initializeLocalSymbols()
1072 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in initializeLocalSymbols()
1077 secIdx = check(getExtendedSymbolTableIndex<ELFT>(eSym, i, shndxTable)); in initializeLocalSymbols()
1107 template <class ELFT> void ObjFile<ELFT>::postParse() { in postParse()
1109 ArrayRef<Elf_Sym> eSyms = this->getELFSyms<ELFT>(); in postParse()
1136 secIdx = check(getExtendedSymbolTableIndex<ELFT>(eSym, i, shndxTable)); in postParse()
1202 template <class ELFT>
1205 ObjFile<ELFT> *obj = make<ObjFile<ELFT>>(mb, archiveName); in isNonCommonDef()
1208 for (auto sym : obj->template getGlobalELFSyms<ELFT>()) { in isNonCommonDef()
1238 template <typename ELFT>
1240 parseVerdefs(const uint8_t *base, const typename ELFT::Shdr *sec) { in parseVerdefs()
1249 auto *curVerdef = reinterpret_cast<const typename ELFT::Verdef *>(verdef); in parseVerdefs()
1263 template <typename ELFT>
1264 std::vector<uint32_t> SharedFile::parseVerneed(const ELFFile<ELFT> &obj, in parseVerneed()
1265 const typename ELFT::Shdr *sec) { in parseVerneed()
1272 if (verneedBuf + sizeof(typename ELFT::Verneed) > data.end()) in parseVerneed()
1274 auto *vn = reinterpret_cast<const typename ELFT::Verneed *>(verneedBuf); in parseVerneed()
1277 if (vernauxBuf + sizeof(typename ELFT::Vernaux) > data.end()) in parseVerneed()
1279 auto *aux = reinterpret_cast<const typename ELFT::Vernaux *>(vernauxBuf); in parseVerneed()
1297 template <typename ELFT>
1298 static uint64_t getAlignment(ArrayRef<typename ELFT::Shdr> sections, in getAlignment()
1299 const typename ELFT::Sym &sym) { in getAlignment()
1323 template <class ELFT> void SharedFile::parse() { in parse()
1324 using Elf_Dyn = typename ELFT::Dyn; in parse()
1325 using Elf_Shdr = typename ELFT::Shdr; in parse()
1326 using Elf_Sym = typename ELFT::Sym; in parse()
1327 using Elf_Verdef = typename ELFT::Verdef; in parse()
1328 using Elf_Versym = typename ELFT::Versym; in parse()
1331 const ELFFile<ELFT> obj = this->getObj<ELFT>(); in parse()
1332 ArrayRef<Elf_Shdr> sections = getELFShdrs<ELFT>(); in parse()
1395 verdefs = parseVerdefs<ELFT>(obj.base(), verdefSec); in parse()
1396 std::vector<uint32_t> verneeds = parseVerneed<ELFT>(obj, verneedSec); in parse()
1419 ArrayRef<Elf_Sym> syms = this->getGlobalELFSyms<ELFT>(); in parse()
1466 uint32_t alignment = getAlignment<ELFT>(sections, sym); in parse()
1603 template <class ELFT>
1634 template <class ELFT> void BitcodeFile::parse() { in parse()
1648 createBitcodeSymbol<ELFT>(sym, keptComdats, it.value(), *this); in parse()
1653 createBitcodeSymbol<ELFT>(sym, keptComdats, it.value(), *this); in parse()
1736 template <class ELFT> void ObjFile<ELFT>::parseLazy() { in parseLazy()
1737 const ArrayRef<typename ELFT::Sym> eSyms = this->getELFSyms<ELFT>(); in parseLazy()