Lines Matching refs:Section

226 void RuntimeDyldELF::resolveX86_64Relocation(const SectionEntry &Section,  in resolveX86_64Relocation()  argument
235 support::ulittle64_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
238 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
248 support::ulittle32_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
251 << format("%p\n", Section.getAddressWithOffset(Offset))); in resolveX86_64Relocation()
255 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveX86_64Relocation()
259 Section.getAddress()[Offset] = TruncOffset; in resolveX86_64Relocation()
263 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveX86_64Relocation()
267 support::ulittle32_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
272 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveX86_64Relocation()
274 support::ulittle64_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86_64Relocation()
281 void RuntimeDyldELF::resolveX86Relocation(const SectionEntry &Section, in resolveX86Relocation() argument
286 support::ulittle32_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86Relocation()
292 Section.getLoadAddressWithOffset(Offset) & 0xFFFFFFFF; in resolveX86Relocation()
294 support::ulittle32_t::ref(Section.getAddressWithOffset(Offset)) = in resolveX86Relocation()
306 void RuntimeDyldELF::resolveAArch64Relocation(const SectionEntry &Section, in resolveAArch64Relocation() argument
310 reinterpret_cast<uint32_t *>(Section.getAddressWithOffset(Offset)); in resolveAArch64Relocation()
311 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveAArch64Relocation()
314 << format("%llx", Section.getAddressWithOffset(Offset)) in resolveAArch64Relocation()
326 reinterpret_cast<uint64_t *>(Section.getAddressWithOffset(Offset)); in resolveAArch64Relocation()
445 void RuntimeDyldELF::resolveARMRelocation(const SectionEntry &Section, in resolveARMRelocation() argument
450 reinterpret_cast<uint32_t *>(Section.getAddressWithOffset(Offset)); in resolveARMRelocation()
451 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset) & 0xFFFFFFFF; in resolveARMRelocation()
455 << Section.getAddressWithOffset(Offset) in resolveARMRelocation()
496 void RuntimeDyldELF::resolveMIPSRelocation(const SectionEntry &Section, in resolveMIPSRelocation() argument
499 uint8_t *TargetPtr = Section.getAddressWithOffset(Offset); in resolveMIPSRelocation()
503 << Section.getAddressWithOffset(Offset) << " FinalAddress: " in resolveMIPSRelocation()
504 << format("%p", Section.getLoadAddressWithOffset(Offset)) in resolveMIPSRelocation()
535 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveMIPSRelocation()
540 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveMIPSRelocation()
547 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveMIPSRelocation()
554 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveMIPSRelocation()
561 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveMIPSRelocation()
568 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveMIPSRelocation()
575 uint32_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolveMIPSRelocation()
599 void RuntimeDyldELF::resolveMIPS64Relocation(const SectionEntry &Section, in resolveMIPS64Relocation() argument
611 int64_t CalculatedValue = evaluateMIPS64Relocation(Section, Offset, Value, in resolveMIPS64Relocation()
616 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPS64Relocation()
622 CalculatedValue = evaluateMIPS64Relocation(Section, Offset, 0, RelType, in resolveMIPS64Relocation()
626 applyMIPS64Relocation(Section.getAddressWithOffset(Offset), CalculatedValue, in resolveMIPS64Relocation()
631 RuntimeDyldELF::evaluateMIPS64Relocation(const SectionEntry &Section, in evaluateMIPS64Relocation() argument
637 << format("%llx", Section.getAddressWithOffset(Offset)) in evaluateMIPS64Relocation()
639 << format("%llx", Section.getLoadAddressWithOffset(Offset)) in evaluateMIPS64Relocation()
695 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
699 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
703 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
707 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
711 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
715 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
719 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
723 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in evaluateMIPS64Relocation()
797 for (auto &Section: Obj.sections()) { in findPPC64TOCSection() local
799 if (auto EC = Section.getName(SectionName)) in findPPC64TOCSection()
807 findOrEmitSection(Obj, Section, false, LocalSections)) in findPPC64TOCSection()
927 void RuntimeDyldELF::resolvePPC32Relocation(const SectionEntry &Section, in resolvePPC32Relocation() argument
930 uint8_t *LocalAddress = Section.getAddressWithOffset(Offset); in resolvePPC32Relocation()
947 void RuntimeDyldELF::resolvePPC64Relocation(const SectionEntry &Section, in resolvePPC64Relocation() argument
950 uint8_t *LocalAddress = Section.getAddressWithOffset(Offset); in resolvePPC64Relocation()
992 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolvePPC64Relocation()
997 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolvePPC64Relocation()
1002 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolvePPC64Relocation()
1013 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolvePPC64Relocation()
1021 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolvePPC64Relocation()
1028 uint64_t FinalAddress = Section.getLoadAddressWithOffset(Offset); in resolvePPC64Relocation()
1038 void RuntimeDyldELF::resolveSystemZRelocation(const SectionEntry &Section, in resolveSystemZRelocation() argument
1041 uint8_t *LocalAddress = Section.getAddressWithOffset(Offset); in resolveSystemZRelocation()
1048 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
1055 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
1061 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
1070 int64_t Delta = (Value + Addend) - Section.getLoadAddressWithOffset(Offset); in resolveSystemZRelocation()
1099 const SectionEntry &Section = Sections[RE.SectionID]; in resolveRelocation() local
1100 return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend, in resolveRelocation()
1104 void RuntimeDyldELF::resolveRelocation(const SectionEntry &Section, in resolveRelocation() argument
1110 resolveX86_64Relocation(Section, Offset, Value, Type, Addend, SymOffset); in resolveRelocation()
1113 resolveX86Relocation(Section, Offset, (uint32_t)(Value & 0xffffffffL), Type, in resolveRelocation()
1118 resolveAArch64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1124 resolveARMRelocation(Section, Offset, (uint32_t)(Value & 0xffffffffL), Type, in resolveRelocation()
1132 resolveMIPSRelocation(Section, Offset, (uint32_t)(Value & 0xffffffffL), in resolveRelocation()
1135 resolveMIPS64Relocation(Section, Offset, Value, Type, Addend, SymOffset, in resolveRelocation()
1141 resolvePPC32Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1145 resolvePPC64Relocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1148 resolveSystemZRelocation(Section, Offset, Value, Type, Addend); in resolveRelocation()
1287 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
1292 resolveRelocation(Section, Offset, in processRelocationRef()
1293 (uint64_t)Section.getAddressWithOffset(i->second), in processRelocationRef()
1299 Stubs[Value] = Section.getStubOffset(); in processRelocationRef()
1301 Section.getAddressWithOffset(Section.getStubOffset())); in processRelocationRef()
1304 StubTargetAddr - Section.getAddress(), in processRelocationRef()
1307 Section.getAddress() + 4, in processRelocationRef()
1310 Section.getAddress() + 8, in processRelocationRef()
1313 Section.getAddress() + 12, in processRelocationRef()
1327 resolveRelocation(Section, Offset, in processRelocationRef()
1328 reinterpret_cast<uint64_t>(Section.getAddressWithOffset( in processRelocationRef()
1329 Section.getStubOffset())), in processRelocationRef()
1331 Section.advanceStubOffset(getMaxStubSize()); in processRelocationRef()
1338 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
1344 Section, Offset, in processRelocationRef()
1345 reinterpret_cast<uint64_t>(Section.getAddressWithOffset(i->second)), in processRelocationRef()
1351 Stubs[Value] = Section.getStubOffset(); in processRelocationRef()
1353 Section.getAddressWithOffset(Section.getStubOffset())); in processRelocationRef()
1354 RelocationEntry RE(SectionID, StubTargetAddr - Section.getAddress(), in processRelocationRef()
1361 resolveRelocation(Section, Offset, reinterpret_cast<uint64_t>( in processRelocationRef()
1362 Section.getAddressWithOffset( in processRelocationRef()
1363 Section.getStubOffset())), in processRelocationRef()
1365 Section.advanceStubOffset(getMaxStubSize()); in processRelocationRef()
1386 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
1404 Stubs[Value] = Section.getStubOffset(); in processRelocationRef()
1406 Section.getAddressWithOffset(Section.getStubOffset())); in processRelocationRef()
1409 RelocationEntry REHi(SectionID, StubTargetAddr - Section.getAddress(), in processRelocationRef()
1412 StubTargetAddr - Section.getAddress() + 4, in processRelocationRef()
1424 RelocationEntry RE(SectionID, Offset, RelType, Section.getStubOffset()); in processRelocationRef()
1426 Section.advanceStubOffset(getMaxStubSize()); in processRelocationRef()
1493 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
1494 uint8_t *Target = Section.getAddressWithOffset(Offset); in processRelocationRef()
1529 resolveRelocation(Section, Offset, in processRelocationRef()
1531 Section.getAddressWithOffset(i->second)), in processRelocationRef()
1537 Stubs[Value] = Section.getStubOffset(); in processRelocationRef()
1539 Section.getAddressWithOffset(Section.getStubOffset()), in processRelocationRef()
1541 RelocationEntry RE(SectionID, StubTargetAddr - Section.getAddress(), in processRelocationRef()
1548 uint64_t StubRelocOffset = StubTargetAddr - Section.getAddress(); in processRelocationRef()
1573 resolveRelocation(Section, Offset, reinterpret_cast<uint64_t>( in processRelocationRef()
1574 Section.getAddressWithOffset( in processRelocationRef()
1575 Section.getStubOffset())), in processRelocationRef()
1577 Section.advanceStubOffset(getMaxStubSize()); in processRelocationRef()
1654 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
1660 StubAddress = uintptr_t(Section.getAddressWithOffset(i->second)); in processRelocationRef()
1666 uintptr_t BaseAddress = uintptr_t(Section.getAddress()); in processRelocationRef()
1669 (BaseAddress + Section.getStubOffset() + StubAlignment - 1) & in processRelocationRef()
1681 Section.advanceStubOffset(getMaxStubSize()); in processRelocationRef()
1685 resolveRelocation(Section, Offset, StubAddress + 8, ELF::R_390_PC32DBL, in processRelocationRef()
1688 resolveRelocation(Section, Offset, StubAddress, RelType, Addend); in processRelocationRef()
1710 SectionEntry &Section = Sections[SectionID]; in processRelocationRef() local
1714 StubAddress = uintptr_t(Section.getAddress()) + i->second; in processRelocationRef()
1720 uintptr_t BaseAddress = uintptr_t(Section.getAddress()); in processRelocationRef()
1723 (BaseAddress + Section.getStubOffset() + StubAlignment - 1) & in processRelocationRef()
1730 Section.advanceStubOffset(getMaxStubSize()); in processRelocationRef()
1745 resolveRelocation(Section, Offset, StubAddress, ELF::R_X86_64_PC32, in processRelocationRef()
1888 const SectionRef &Section = i->first; in finalizeLoad() local
1890 Section.getName(Name); in finalizeLoad()