• Home
  • Raw
  • Download

Lines Matching refs:RE

54     RelocationEntry RE(getRelocationEntry(SectionID, Obj, RelI));  in processRelocationRef()
55 RE.Addend = memcpyAddend(RE); in processRelocationRef()
57 getRelocationValueRef(Obj, RelI, RE, ObjSectionToID)); in processRelocationRef()
69 if (RE.IsPCRel) in processRelocationRef()
70 makeValueAddendPCRel(Value, RelI, 1 << RE.Size); in processRelocationRef()
72 RE.Addend = Value.Offset; in processRelocationRef()
75 addRelocationForSymbol(RE, Value.SymbolName); in processRelocationRef()
77 addRelocationForSection(RE, Value.SectionID); in processRelocationRef()
82 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
83 DEBUG(dumpRelocationToResolve(RE, Value)); in resolveRelocation()
85 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation()
86 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
88 if (RE.IsPCRel) { in resolveRelocation()
89 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); in resolveRelocation()
93 switch (RE.RelType) { in resolveRelocation()
97 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); in resolveRelocation()
101 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); in resolveRelocation()
102 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); in resolveRelocation()
105 Value = SectionABase - SectionBBase + RE.Addend; in resolveRelocation()
106 writeBytesUnaligned(Value, LocalAddress, 1 << RE.Size); in resolveRelocation()
133 MachO::any_relocation_info RE = in processSECTDIFFRelocation() local
137 uint32_t RelocType = Obj.getAnyRelocationType(RE); in processSECTDIFFRelocation()
138 bool IsPCRel = Obj.getAnyRelocationPCRel(RE); in processSECTDIFFRelocation()
139 unsigned Size = Obj.getAnyRelocationLength(RE); in processSECTDIFFRelocation()
149 uint32_t AddrA = Obj.getScatteredRelocationValue(RE); in processSECTDIFFRelocation()
212 RelocationEntry RE(JTSectionID, JTEntryOffset + 1, in populateJumpTable()
214 addRelocationForSymbol(RE, *IndirectSymbolName); in populateJumpTable()