Lines Matching refs:Obj

138 RuntimeDyldImpl::loadObjectImpl(const object::ObjectFile &Obj) {
142 Arch = (Triple::ArchType)Obj.getArch();
143 IsTargetLittleEndian = Obj.isLittleEndian();
144 setMipsABI(Obj);
151 computeTotalAllocSize(Obj, CodeSize, CodeAlign, RODataSize, RODataAlign,
165 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E;
207 if (SI == Obj.section_end())
213 unsigned SectionID = findOrEmitSection(Obj, *SI, IsCode, LocalSections);
226 emitCommonSymbols(Obj, CommonSymbols);
230 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end();
247 findOrEmitSection(Obj, *RelocatedSection, IsCode, LocalSections);
251 I = processRelocationRef(SectionID, I, Obj, LocalSections, Stubs);
256 Checker->registerStubMap(Obj.getFileName(), SectionID, Stubs);
260 finalizeLoad(Obj, LocalSections);
284 const ObjectFile *Obj = Section.getObject();
285 if (isa<object::ELFObjectFileBase>(Obj))
287 if (auto *COFFObj = dyn_cast<object::COFFObjectFile>(Obj)) {
291 // may be zero for sections with content. In Obj files, SizeOfRawData
301 assert(isa<MachOObjectFile>(Obj));
306 const ObjectFile *Obj = Section.getObject();
307 if (isa<object::ELFObjectFileBase>(Obj))
310 if (auto *COFFObj = dyn_cast<object::COFFObjectFile>(Obj))
319 assert(isa<MachOObjectFile>(Obj));
324 const ObjectFile *Obj = Section.getObject();
325 if (isa<object::ELFObjectFileBase>(Obj))
327 if (auto *COFFObj = dyn_cast<object::COFFObjectFile>(Obj))
331 auto *MachO = cast<MachOObjectFile>(Obj);
339 void RuntimeDyldImpl::computeTotalAllocSize(const ObjectFile &Obj,
353 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end();
369 uint64_t StubBufSize = computeSectionStubBufSize(Obj, Section);
398 for (symbol_iterator I = Obj.symbol_begin(), E = Obj.symbol_end(); I != E;
422 unsigned RuntimeDyldImpl::computeSectionStubBufSize(const ObjectFile &Obj,
432 for (section_iterator SI = Obj.section_begin(), SE = Obj.section_end();
486 void RuntimeDyldImpl::emitCommonSymbols(const ObjectFile &Obj,
558 Checker->registerSection(Obj.getFileName(), SectionID);
561 unsigned RuntimeDyldImpl::emitSection(const ObjectFile &Obj,
578 StubBufSize = computeSectionStubBufSize(Obj, Section);
653 Checker->registerSection(Obj.getFileName(), SectionID);
658 unsigned RuntimeDyldImpl::findOrEmitSection(const ObjectFile &Obj,
668 SectionID = emitSection(Obj, Section, IsCode);
924 RuntimeDyld::loadObject(const ObjectFile &Obj) {
926 if (Obj.isELF())
928 else if (Obj.isMachO())
930 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver,
932 else if (Obj.isCOFF())
934 static_cast<Triple::ArchType>(Obj.getArch()), MemMgr, Resolver,
940 if (!Dyld->isCompatibleFile(Obj))
943 auto LoadedObjInfo = Dyld->loadObject(Obj);
944 MemMgr.notifyObjectLoaded(*this, Obj);