reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
204 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); 205 const SectionEntry &Section = Sections[RE.SectionID]; 206 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 210 if (RE.IsPCRel) { 211 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); 215 Value -= (RE.RelType == MachO::ARM_THUMB_RELOC_BR22) ? 4 : 8; 218 switch (RE.RelType) { 220 Value += RE.Addend; 237 if (RE.IsTargetThumbFunc) 239 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); 239 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); 244 Value += RE.Addend; 260 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); 261 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); 264 Value = SectionABase - SectionBBase + RE.Addend; 265 if (RE.Size & 0x1) // :upper16: 268 bool IsThumb = RE.Size & 0x2;