Lines Matching full:re

129     const RelocationEntry RE(SectionID, Offset, RelType, Addend);
130 resolveRelocation(RE, Section.getLoadAddressWithOffset(StubOffset));
248 RelocationEntry RE(SectionID, Offset, RelType, Addend);
249 addRelocationForSymbol(RE, TargetName);
251 RelocationEntry RE(SectionID, Offset, RelType, TargetOffset + Addend);
252 addRelocationForSection(RE, TargetSectionID);
257 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override {
258 const auto Section = Sections[RE.SectionID];
259 uint8_t *Target = Section.getAddressWithOffset(RE.Offset);
260 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset);
262 switch (RE.RelType) {
271 Value += RE.Addend;
277 Value += RE.Addend;
284 Value += RE.Addend;
291 Value += RE.Addend;
297 uint32_t VA = Value + RE.Addend;
303 uint64_t RVA = Value + RE.Addend - getImageBase();
309 or32le(Target + 12, ((Value + RE.Addend) & 0xFFFF) << 5);
310 or32le(Target + 8, ((Value + RE.Addend) & 0xFFFF0000) >> 11);
311 or32le(Target + 4, ((Value + RE.Addend) & 0xFFFF00000000) >> 27);
312 or32le(Target + 0, ((Value + RE.Addend) & 0xFFFF000000000000) >> 43);
318 uint64_t PCRelVal = Value + RE.Addend - FinalAddress;
327 uint64_t PCRelVal = Value + RE.Addend - FinalAddress;
336 uint64_t PCRelVal = Value + RE.Addend - FinalAddress;
344 write64le(Target, Value + RE.Addend);
349 assert(static_cast<uint32_t>(RE.SectionID) <= UINT16_MAX &&
351 add16(Target, RE.SectionID);
356 assert(static_cast<int64_t>(RE.Addend) <= INT32_MAX &&
358 assert(static_cast<int64_t>(RE.Addend) >= INT32_MIN &&
360 write32le(Target, RE.Addend);
366 write32le(Target, Result + RE.Addend);