Lines Matching refs:Obj
181 RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) { in loadObjectImpl() argument
185 Arch = (Triple::ArchType)Obj.getArch(); in loadObjectImpl()
186 IsTargetLittleEndian = Obj.isLittleEndian(); in loadObjectImpl()
187 setMipsABI(Obj); in loadObjectImpl()
194 if (auto Err = computeTotalAllocSize(Obj, in loadObjectImpl()
217 for (auto &Sym : Obj.symbols()) { in loadObjectImpl()
236 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in loadObjectImpl()
311 section_iterator SI = Obj.section_end(); in loadObjectImpl()
317 if (SI == Obj.section_end()) in loadObjectImpl()
328 findOrEmitSection(Obj, *SI, IsCode, LocalSections)) in loadObjectImpl()
343 if (auto Err = emitCommonSymbols(Obj, CommonSymbolsToAllocate, CommonSize, in loadObjectImpl()
349 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in loadObjectImpl()
365 if (auto SectionIDOrErr = findOrEmitSection(Obj, *RelocatedSection, IsCode, in loadObjectImpl()
374 if (auto IOrErr = processRelocationRef(SectionID, I, Obj, LocalSections, Stubs)) in loadObjectImpl()
382 Checker->registerStubMap(Obj.getFileName(), SectionID, Stubs); in loadObjectImpl()
386 if (auto Err = finalizeLoad(Obj, LocalSections)) in loadObjectImpl()
411 const ObjectFile *Obj = Section.getObject(); in isRequiredForExecution() local
412 if (isa<object::ELFObjectFileBase>(Obj)) in isRequiredForExecution()
414 if (auto *COFFObj = dyn_cast<object::COFFObjectFile>(Obj)) { in isRequiredForExecution()
429 assert(isa<MachOObjectFile>(Obj)); in isRequiredForExecution()
434 const ObjectFile *Obj = Section.getObject(); in isReadOnlyData() local
435 if (isa<object::ELFObjectFileBase>(Obj)) in isReadOnlyData()
438 if (auto *COFFObj = dyn_cast<object::COFFObjectFile>(Obj)) in isReadOnlyData()
447 assert(isa<MachOObjectFile>(Obj)); in isReadOnlyData()
452 const ObjectFile *Obj = Section.getObject(); in isZeroInit() local
453 if (isa<object::ELFObjectFileBase>(Obj)) in isZeroInit()
455 if (auto *COFFObj = dyn_cast<object::COFFObjectFile>(Obj)) in isZeroInit()
459 auto *MachO = cast<MachOObjectFile>(Obj); in isZeroInit()
467 Error RuntimeDyldImpl::computeTotalAllocSize(const ObjectFile &Obj, in computeTotalAllocSize() argument
481 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeTotalAllocSize()
499 uint64_t StubBufSize = computeSectionStubBufSize(Obj, Section); in computeTotalAllocSize()
529 if (unsigned GotSize = computeGOTSize(Obj)) { in computeTotalAllocSize()
537 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E; in computeTotalAllocSize()
569 unsigned RuntimeDyldImpl::computeGOTSize(const ObjectFile &Obj) { in computeGOTSize() argument
575 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeGOTSize()
587 unsigned RuntimeDyldImpl::computeSectionStubBufSize(const ObjectFile &Obj, in computeSectionStubBufSize() argument
597 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end(); in computeSectionStubBufSize()
656 Error RuntimeDyldImpl::emitCommonSymbols(const ObjectFile &Obj, in emitCommonSymbols() argument
707 Checker->registerSection(Obj.getFileName(), SectionID); in emitCommonSymbols()
713 RuntimeDyldImpl::emitSection(const ObjectFile &Obj, in emitSection() argument
732 StubBufSize = computeSectionStubBufSize(Obj, Section); in emitSection()
821 Checker->registerSection(Obj.getFileName(), SectionID); in emitSection()
827 RuntimeDyldImpl::findOrEmitSection(const ObjectFile &Obj, in findOrEmitSection() argument
837 if (auto SectionIDOrErr = emitSection(Obj, Section, IsCode)) in findOrEmitSection()
1245 RuntimeDyld::loadObject(const ObjectFile &Obj) { in loadObject() argument
1247 if (Obj.isELF()) in loadObject()
1249 createRuntimeDyldELF(static_cast<Triple::ArchType>(Obj.getArch()), in loadObject()
1251 else if (Obj.isMachO()) in loadObject()
1253 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver, in loadObject()
1255 else if (Obj.isCOFF()) in loadObject()
1257 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver, in loadObject()
1263 if (!Dyld->isCompatibleFile(Obj)) in loadObject()
1266 auto LoadedObjInfo = Dyld->loadObject(Obj); in loadObject()
1267 MemMgr.notifyObjectLoaded(*this, Obj); in loadObject()
1327 void jitLinkForORC(object::ObjectFile &Obj, in jitLinkForORC() argument
1340 auto Info = RTDyld.loadObject(Obj); in jitLinkForORC()