reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
99 LLVM_DEBUG(dumpRelocationToResolve(RE, Value)); 101 const SectionEntry &Section = Sections[RE.SectionID]; 102 uint8_t *LocalAddress = Section.getAddressWithOffset(RE.Offset); 104 if (RE.IsPCRel) { 105 uint64_t FinalAddress = Section.getLoadAddressWithOffset(RE.Offset); 109 switch (RE.RelType) { 111 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); 111 writeBytesUnaligned(Value + RE.Addend, LocalAddress, 1 << RE.Size); 115 uint64_t SectionABase = Sections[RE.Sections.SectionA].getLoadAddress(); 116 uint64_t SectionBBase = Sections[RE.Sections.SectionB].getLoadAddress(); 119 Value = SectionABase - SectionBBase + RE.Addend; 120 writeBytesUnaligned(Value, LocalAddress, 1 << RE.Size);