Lines Matching refs:Offset
224 uint64_t Offset, uint64_t Value, in resolveX86_64Relocation() argument
232 support::ulittle64_t::ref(Section.Address + Offset) = Value + Addend; in resolveX86_64Relocation()
234 << format("%p\n", Section.Address + Offset)); in resolveX86_64Relocation()
244 support::ulittle32_t::ref(Section.Address + Offset) = TruncatedAddr; in resolveX86_64Relocation()
246 << format("%p\n", Section.Address + Offset)); in resolveX86_64Relocation()
253 (void *)(Section.ObjAddress + Offset)); in resolveX86_64Relocation()
254 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveX86_64Relocation()
257 if (Offset < Section.Size) in resolveX86_64Relocation()
261 support::ulittle32_t::ref(Section.Address + Offset) = TruncOffset; in resolveX86_64Relocation()
268 (void *)(Section.ObjAddress + Offset)); in resolveX86_64Relocation()
269 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveX86_64Relocation()
271 if (Offset < Section.Size) in resolveX86_64Relocation()
273 support::ulittle64_t::ref(Section.Address + Offset) = RealOffset; in resolveX86_64Relocation()
280 uint64_t Offset, uint32_t Value, in resolveX86Relocation() argument
287 (void *)(Section.ObjAddress + Offset)); in resolveX86Relocation()
288 support::ulittle32_t::ref(Section.Address + Offset) = in resolveX86Relocation()
296 (void *)(Section.ObjAddress + Offset)); in resolveX86Relocation()
297 uint32_t FinalAddress = ((Section.LoadAddress + Offset) & 0xFFFFFFFF); in resolveX86Relocation()
299 support::ulittle32_t::ref(Section.Address + Offset) = RealOffset; in resolveX86Relocation()
311 uint64_t Offset, uint64_t Value, in resolveAArch64Relocation() argument
313 uint32_t *TargetPtr = reinterpret_cast<uint32_t *>(Section.Address + Offset); in resolveAArch64Relocation()
314 uint64_t FinalAddress = Section.LoadAddress + Offset; in resolveAArch64Relocation()
317 << format("%llx", Section.Address + Offset) in resolveAArch64Relocation()
329 reinterpret_cast<uint64_t *>(Section.Address + Offset); in resolveAArch64Relocation()
452 uint64_t Offset, uint32_t Value, in resolveARMRelocation() argument
456 reinterpret_cast<uint32_t *>(Section.ObjAddress + Offset); in resolveARMRelocation()
457 uint32_t *TargetPtr = (uint32_t *)(Section.Address + Offset); in resolveARMRelocation()
458 uint32_t FinalAddress = ((Section.LoadAddress + Offset) & 0xFFFFFFFF); in resolveARMRelocation()
462 << Section.Address + Offset in resolveARMRelocation()
524 uint64_t Offset, uint32_t Value, in resolveMIPSRelocation() argument
527 reinterpret_cast<uint32_t *>(Section.ObjAddress + Offset); in resolveMIPSRelocation()
528 uint32_t *TargetPtr = (uint32_t *)(Section.Address + Offset); in resolveMIPSRelocation()
532 << Section.Address + Offset << " FinalAddress: " in resolveMIPSRelocation()
533 << format("%p", Section.LoadAddress + Offset) << " Value: " in resolveMIPSRelocation()
700 uint64_t Offset, uint64_t Value, in resolvePPC64Relocation() argument
702 uint8_t *LocalAddress = Section.Address + Offset; in resolvePPC64Relocation()
744 uint64_t FinalAddress = (Section.LoadAddress + Offset); in resolvePPC64Relocation()
749 uint64_t FinalAddress = (Section.LoadAddress + Offset); in resolvePPC64Relocation()
754 uint64_t FinalAddress = (Section.LoadAddress + Offset); in resolvePPC64Relocation()
765 uint64_t FinalAddress = (Section.LoadAddress + Offset); in resolvePPC64Relocation()
773 uint64_t FinalAddress = (Section.LoadAddress + Offset); in resolvePPC64Relocation()
780 uint64_t FinalAddress = (Section.LoadAddress + Offset); in resolvePPC64Relocation()
791 uint64_t Offset, uint64_t Value, in resolveSystemZRelocation() argument
793 uint8_t *LocalAddress = Section.Address + Offset; in resolveSystemZRelocation()
800 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
807 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
813 int64_t Delta = (Value + Addend) - (Section.LoadAddress + Offset); in resolveSystemZRelocation()
847 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
852 uint64_t Offset, uint64_t Value, in resolveRelocation() argument
857 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
860 resolveX86Relocation(Section, Offset, (uint32_t)(Value & 0xffffffffL), Type, in resolveRelocation()
865 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
871 resolveARMRelocation(Section, Offset, (uint32_t)(Value & 0xffffffffL), Type, in resolveRelocation()
876 resolveMIPSRelocation(Section, Offset, (uint32_t)(Value & 0xffffffffL), in resolveRelocation()
881 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
884 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
921 Value.Offset = SymInfo.getOffset(); in processRelocationRef()
958 uint64_t Offset; in processRelocationRef() local
959 Check(RelI->getOffset(Offset)); in processRelocationRef()
961 DEBUG(dbgs() << "\t\tSectionID: " << SectionID << " Offset: " << Offset in processRelocationRef()
972 resolveRelocation(Section, Offset, (uint64_t)Section.Address + i->second, in processRelocationRef()
1003 resolveRelocation(Section, Offset, in processRelocationRef()
1018 resolveRelocation(Section, Offset, (uint64_t)Section.Address + i->second, in processRelocationRef()
1034 resolveRelocation(Section, Offset, in processRelocationRef()
1044 uint8_t *Target = Section.Address + Offset; in processRelocationRef()
1055 RelocationEntry RE(SectionID, Offset, RelType, i->second); in processRelocationRef()
1079 RelocationEntry RE(SectionID, Offset, RelType, Section.StubOffset); in processRelocationRef()
1093 uint8_t *Target = Section.Address + Offset; in processRelocationRef()
1112 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1127 resolveRelocation(Section, Offset, in processRelocationRef()
1169 resolveRelocation(Section, Offset, in processRelocationRef()
1213 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0); in processRelocationRef()
1227 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend); in processRelocationRef()
1267 Value.Offset); in processRelocationRef()
1276 resolveRelocation(Section, Offset, StubAddress + 8, ELF::R_390_PC32DBL, in processRelocationRef()
1279 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1333 resolveRelocation(Section, Offset, StubAddress, ELF::R_X86_64_PC32, in processRelocationRef()
1336 RelocationEntry RE(SectionID, Offset, ELF::R_X86_64_PC32, Value.Addend, in processRelocationRef()
1337 Value.Offset); in processRelocationRef()
1342 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend); in processRelocationRef()
1345 RelocationEntry RE = computeGOTOffsetRE(SectionID, GOTOffset, Value.Offset, ELF::R_X86_64_64); in processRelocationRef()
1351 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset); in processRelocationRef()
1400 void RuntimeDyldELF::resolveGOTOffsetRelocation(unsigned SectionID, uint64_t Offset, uint64_t GOTOf… in resolveGOTOffsetRelocation() argument
1403 RelocationEntry GOTRE(SectionID, Offset, ELF::R_X86_64_PC32, GOTOffset); in resolveGOTOffsetRelocation()