Lines Matching full:re
66 RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI)); in processRelocationRef()
67 RE.Addend = memcpyAddend(RE); in processRelocationRef()
69 if (auto ValueOrErr = getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)) in processRelocationRef()
79 // if (IsExtern && RE.IsPCRel) { in processRelocationRef()
84 if (RE.IsPCRel) in processRelocationRef()
85 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
87 RE.Addend = Value.Offset; in processRelocationRef()
90 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
92 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
97 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
98 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); in resolveRelocation()
100 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
101 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
103 if (RE.IsPCRel) { in resolveRelocation()
104 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
108 switch (RE.RelType) { in resolveRelocation()
110 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
114 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); in resolveRelocation()
115 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); in resolveRelocation()
118 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
119 writeBytesUnaligned(Value, LocalAddress, 1 << RE.Size); in resolveRelocation()
150 MachO::any_relocation_info RE = in processSECTDIFFRelocation() local
154 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processSECTDIFFRelocation()
155 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation()
156 unsigned Size = Obj.getAnyRelocationLength(RE); in processSECTDIFFRelocation()
166 uint32_t AddrA = Obj.getScatteredRelocationValue(RE); in processSECTDIFFRelocation()
236 RelocationEntry RE(JTSectionID, JTEntryOffset + 1, in populateJumpTable()
238 addRelocationForSymbol(RE, *IndirectSymbolName); in populateJumpTable()