Lines Matching refs:Obj
38 const MachOObjectFile &Obj = in processRelocationRef() local
41 Obj.getRelocation(RelI->getRawDataRefImpl()); in processRelocationRef()
42 uint32_t RelType = Obj.getAnyRelocationType(RelInfo); in processRelocationRef()
44 if (Obj.isRelocationScattered(RelInfo)) { in processRelocationRef()
47 return processSECTDIFFRelocation(SectionID, RelI, Obj, in processRelocationRef()
50 return processI386ScatteredVANILLA(SectionID, RelI, Obj, in processRelocationRef()
55 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
58 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef()
71 makeValueAddendPCRel(Value, Obj, RelI, 1 << RE.Size); in processRelocationRef()
115 void finalizeSection(const ObjectFile &Obj, unsigned SectionID, in finalizeSection() argument
121 populateJumpTable(cast<MachOObjectFile>(Obj), Section, SectionID); in finalizeSection()
123 populateIndirectSymbolPointersSection(cast<MachOObjectFile>(Obj), in finalizeSection()
132 const MachOObjectFile &Obj = in processSECTDIFFRelocation() local
135 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
138 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processSECTDIFFRelocation()
139 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation()
140 unsigned Size = Obj.getAnyRelocationLength(RE); in processSECTDIFFRelocation()
149 Obj.getRelocation(RelI->getRawDataRefImpl()); in processSECTDIFFRelocation()
151 uint32_t AddrA = Obj.getScatteredRelocationValue(RE); in processSECTDIFFRelocation()
152 section_iterator SAI = getSectionByAddress(Obj, AddrA); in processSECTDIFFRelocation()
153 assert(SAI != Obj.section_end() && "Can't find section for address A"); in processSECTDIFFRelocation()
159 findOrEmitSection(Obj, SectionA, IsCode, ObjSectionToID); in processSECTDIFFRelocation()
161 uint32_t AddrB = Obj.getScatteredRelocationValue(RE2); in processSECTDIFFRelocation()
162 section_iterator SBI = getSectionByAddress(Obj, AddrB); in processSECTDIFFRelocation()
163 assert(SBI != Obj.section_end() && "Can't find section for address B"); in processSECTDIFFRelocation()
168 findOrEmitSection(Obj, SectionB, IsCode, ObjSectionToID); in processSECTDIFFRelocation()
192 const MachOObjectFile &Obj = in processI386ScatteredVANILLA() local
195 Obj.getRelocation(RelI->getRawDataRefImpl()); in processI386ScatteredVANILLA()
198 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processI386ScatteredVANILLA()
199 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processI386ScatteredVANILLA()
200 unsigned Size = Obj.getAnyRelocationLength(RE); in processI386ScatteredVANILLA()
207 unsigned SymbolBaseAddr = Obj.getScatteredRelocationValue(RE); in processI386ScatteredVANILLA()
208 section_iterator TargetSI = getSectionByAddress(Obj, SymbolBaseAddr); in processI386ScatteredVANILLA()
209 assert(TargetSI != Obj.section_end() && "Can't find section for symbol"); in processI386ScatteredVANILLA()
214 findOrEmitSection(Obj, TargetSection, IsCode, ObjSectionToID); in processI386ScatteredVANILLA()
225 void populateJumpTable(const MachOObjectFile &Obj, const SectionRef &JTSection, in populateJumpTable() argument
227 assert(!Obj.is64Bit() && in populateJumpTable()
230 MachO::dysymtab_command DySymTabCmd = Obj.getDysymtabLoadCommand(); in populateJumpTable()
231 MachO::section Sec32 = Obj.getSection(JTSection.getRawDataRefImpl()); in populateJumpTable()
244 Obj.getIndirectSymbolTableEntry(DySymTabCmd, FirstIndirectSymbol + i); in populateJumpTable()
245 symbol_iterator SI = Obj.getSymbolByIndex(SymbolIndex); in populateJumpTable()