Lines Matching refs:RE
66 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
67 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
79 RelocationEntry RE = in processRelocationRef() local
82 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
86 RelocationEntry RE = in processRelocationRef() local
88 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
92 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() local
94 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
106 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
107 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
108 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
110 switch (RE.RelType) { in resolveRelocation()
117 RE.Sections.SectionA == static_cast<uint32_t>(-1) in resolveRelocation()
119 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset( in resolveRelocation()
120 RE.Addend); in resolveRelocation()
125 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
127 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
136 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) - in resolveRelocation()
142 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
144 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
151 uint64_t Result = Sections[RE.Sections.SectionA].getLoadAddress() - in resolveRelocation()
152 Section.getLoadAddress() + RE.Addend - 4 - RE.Offset; in resolveRelocation()
157 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
159 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
166 assert(static_cast<int32_t>(RE.SectionID) <= INT16_MAX && in resolveRelocation()
168 assert(static_cast<int32_t>(RE.SectionID) >= INT16_MIN && in resolveRelocation()
170 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
171 << " RelType: IMAGE_REL_I386_SECTION Value: " << RE.SectionID in resolveRelocation()
173 writeBytesUnaligned(RE.SectionID, Target, 2); in resolveRelocation()
177 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
179 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
181 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
182 << " RelType: IMAGE_REL_I386_SECREL Value: " << RE.Addend in resolveRelocation()
184 writeBytesUnaligned(RE.Addend, Target, 2); in resolveRelocation()