Home | History | Annotate | Download | only in Targets

Lines Matching refs:RE

89       RelocationEntry RE(SectionID, Offset, RelType, 0, -1, 0, 0, 0, false, 0);
90 addRelocationForSymbol(RE, TargetName);
105 RelocationEntry RE =
108 addRelocationForSection(RE, TargetSectionID);
112 RelocationEntry RE =
114 addRelocationForSection(RE, TargetSectionID);
118 RelocationEntry RE = RelocationEntry(SectionID, Offset, RelType,
120 addRelocationForSection(RE, TargetSectionID);
132 void resolveRelocation(const RelocationEntry &RE, uint64_t Value) override {
133 const auto Section = Sections[RE.SectionID];
134 uint8_t *Target = Section.getAddressWithOffset(RE.Offset);
136 switch (RE.RelType) {
143 RE.Sections.SectionA == static_cast<uint32_t>(-1)
145 : Sections[RE.Sections.SectionA].getLoadAddressWithOffset(
146 RE.Addend);
151 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
153 << " TargetSection: " << RE.Sections.SectionA
162 Sections[RE.Sections.SectionA].getLoadAddressWithOffset(RE.Addend) -
168 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
170 << " TargetSection: " << RE.Sections.SectionA
177 uint64_t Result = RE.Sections.SectionA == static_cast<uint32_t>(-1)
179 : Sections[RE.Sections.SectionA].getLoadAddress();
180 Result = Result - Section.getLoadAddress() + RE.Addend - 4 - RE.Offset;
185 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
187 << " TargetSection: " << RE.Sections.SectionA
194 assert(static_cast<int32_t>(RE.SectionID) <= INT16_MAX &&
196 assert(static_cast<int32_t>(RE.SectionID) >= INT16_MIN &&
198 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
199 << " RelType: IMAGE_REL_I386_SECTION Value: " << RE.SectionID
201 writeBytesUnaligned(RE.SectionID, Target, 2);
205 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX &&
207 assert(static_cast<int32_t>(RE.Addend) >= INT32_MIN &&
209 DEBUG(dbgs() << "\t\tOffset: " << RE.Offset
210 << " RelType: IMAGE_REL_I386_SECREL Value: " << RE.Addend
212 writeBytesUnaligned(RE.Addend, Target, 2);