Lines Matching refs:RE
86 RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0); in processRelocationRef()
87 addRelocationForSymbol(RE, TargetName); in processRelocationRef()
102 RelocationEntry RE = in processRelocationRef() local
105 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
109 RelocationEntry RE = in processRelocationRef() local
111 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
115 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType, in processRelocationRef() local
117 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
121 RelocationEntry RE = in processRelocationRef() local
124 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
130 RelocationEntry RE = in processRelocationRef() local
133 addRelocationForSection(RE, TargetSectionID); in processRelocationRef()
142 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override { in resolveRelocation() argument
143 const auto Section = Sections[RE.SectionID]; in resolveRelocation()
144 uint8_t *Target = Section.getAddressWithOffset(RE.Offset); in resolveRelocation()
146 switch (RE.RelType) { in resolveRelocation()
154 RE.Sections.SectionA == static_cast<uint32_t>(-1) in resolveRelocation()
156 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
161 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
163 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
171 uint64_t Result = Sections[RE.Sections.SectionA].getLoadAddress() - in resolveRelocation()
172 Sections[0].getLoadAddress() + RE.Addend; in resolveRelocation()
177 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
179 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
186 assert(static_cast<int32_t>(RE.SectionID) <= INT16_MAX && in resolveRelocation()
188 assert(static_cast<int32_t>(RE.SectionID) >= INT16_MIN && in resolveRelocation()
190 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
191 << " RelType: IMAGE_REL_ARM_SECTION Value: " << RE.SectionID in resolveRelocation()
193 writeBytesUnaligned(RE.SectionID, Target, 2); in resolveRelocation()
197 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
199 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
201 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
202 << " RelType: IMAGE_REL_ARM_SECREL Value: " << RE.Addend in resolveRelocation()
204 writeBytesUnaligned(RE.Addend, Target, 2); in resolveRelocation()
209 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend); in resolveRelocation()
214 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
216 << " TargetSection: " << RE.Sections.SectionA in resolveRelocation()
239 RE.Addend - (Sections[RE.SectionID].getLoadAddress() + RE.Offset) - 4; in resolveRelocation()
240 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
242 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
244 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
254 RE.Addend - (Sections[RE.SectionID].getLoadAddress() + RE.Offset) - 4; in resolveRelocation()
255 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
257 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
259 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()
269 RE.Addend - (Sections[RE.SectionID].getLoadAddress() + RE.Offset) - 4; in resolveRelocation()
270 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX && in resolveRelocation()
272 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN && in resolveRelocation()
274 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset in resolveRelocation()