reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
87 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); 88 const SectionEntry &Section = Sections[RE.SectionID]; 89 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 93 if (RE.IsPCRel) { 96 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); 100 switch (RE.RelType) { 109 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); 109 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); 112 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); 113 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); 116 Value = SectionABase - SectionBBase + RE.Addend; 117 writeBytesUnaligned(Value, LocalAddress, 1 << RE.Size);