Lines Matching defs:SectionID
668 // Set a default SectionID in case we do not find a TOC section below.
674 Rel.SectionID = 0;
690 Rel.SectionID = *SectionIDOrErr;
774 Rel.SectionID = *SectionIDOrErr;
1014 // The target location for the relocation is described by RE.SectionID and
1015 // RE.Offset. RE.SectionID can be used to find the SectionEntry. Each
1036 const SectionEntry &Section = Sections[RE.SectionID];
1038 RE.SymOffset, RE.SectionID);
1044 uint64_t SymOffset, SID SectionID) {
1084 void *RuntimeDyldELF::computePlaceholderAddress(unsigned SectionID, uint64_t Offset) const {
1085 return (void *)(Sections[SectionID].getObjAddress() + Offset);
1088 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValueRef Value) {
1089 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset);
1093 addRelocationForSection(RE, Value.SectionID);
1129 unsigned SectionID, relocation_iterator RelI,
1145 TargetSectionID = Value.SectionID;
1151 if (TargetSectionID != SectionID)
1162 RelocationEntry RE(SectionID, SourceOffset, RelI->getType(), Value.Addend);
1166 addRelocationForSection(RE, Value.SectionID);
1171 void RuntimeDyldELF::resolveAArch64Branch(unsigned SectionID,
1177 SectionEntry &Section = Sections[SectionID];
1187 } else if (!resolveAArch64ShortBranch(SectionID, RelI, Value)) {
1194 RelocationEntry REmovz_g3(SectionID, StubTargetAddr - Section.getAddress(),
1196 RelocationEntry REmovk_g2(SectionID,
1199 RelocationEntry REmovk_g1(SectionID,
1202 RelocationEntry REmovk_g0(SectionID,
1212 addRelocationForSection(REmovz_g3, Value.SectionID);
1213 addRelocationForSection(REmovk_g2, Value.SectionID);
1214 addRelocationForSection(REmovk_g1, Value.SectionID);
1215 addRelocationForSection(REmovk_g0, Value.SectionID);
1226 unsigned SectionID, relocation_iterator RelI, const ObjectFile &O,
1266 Value.SectionID = SymInfo.getSectionID();
1289 Value.SectionID = *SectionIDOrErr;
1318 LLVM_DEBUG(dbgs() << "\t\tSectionID: " << SectionID << " Offset: " << Offset
1324 resolveAArch64Branch(SectionID, Value, RelI, Stubs);
1329 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend,
1334 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend,
1337 processSimpleRelocation(SectionID, Offset, RelType, Value);
1344 SectionEntry &Section = Sections[SectionID];
1359 RelocationEntry RE(SectionID, StubTargetAddr - Section.getAddress(),
1364 addRelocationForSection(RE, Value.SectionID);
1374 reinterpret_cast<uint32_t*>(computePlaceholderAddress(SectionID, Offset));
1382 processSimpleRelocation(SectionID, Offset, RelType, Value);
1386 computePlaceholderAddress(SectionID, Offset));
1391 SectionEntry &Section = Sections[SectionID];
1403 RelocationEntry RE(SectionID, Offset, RelType, i->second);
1404 addRelocationForSection(RE, SectionID);
1417 RelocationEntry REHi(SectionID, StubTargetAddr - Section.getAddress(),
1419 RelocationEntry RELo(SectionID,
1427 addRelocationForSection(REHi, Value.SectionID);
1428 addRelocationForSection(RELo, Value.SectionID);
1431 RelocationEntry RE(SectionID, Offset, RelType, Section.getStubOffset());
1432 addRelocationForSection(RE, SectionID);
1437 RelocationEntry RE(SectionID, Offset, RelType, Addend);
1446 SectionID == Reloc.SectionID) {
1451 addRelocationForSection(Reloc, Value.SectionID);
1456 RelocationEntry RE(SectionID, Offset, RelType, Addend);
1460 addRelocationForSection(RE, Value.SectionID);
1472 processSimpleRelocation(SectionID, Offset, RelType, Value);
1476 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend);
1489 addRelocationForSection(RE, Value.SectionID);
1493 SectionEntry &Section = Sections[SectionID];
1498 RelocationEntry RE(SectionID, Offset, RelType, i->second);
1499 addRelocationForSection(RE, SectionID);
1513 RelocationEntry REHi(SectionID, StubTargetAddr - Section.getAddress(),
1515 RelocationEntry RELo(SectionID,
1522 addRelocationForSection(REHi, Value.SectionID);
1523 addRelocationForSection(RELo, Value.SectionID);
1528 RelocationEntry REHighest(SectionID,
1531 RelocationEntry REHigher(SectionID,
1534 RelocationEntry REHi(SectionID,
1537 RelocationEntry RELo(SectionID,
1546 addRelocationForSection(REHighest, Value.SectionID);
1547 addRelocationForSection(REHigher, Value.SectionID);
1548 addRelocationForSection(REHi, Value.SectionID);
1549 addRelocationForSection(RELo, Value.SectionID);
1552 RelocationEntry RE(SectionID, Offset, RelType, Section.getStubOffset());
1553 addRelocationForSection(RE, SectionID);
1557 processSimpleRelocation(SectionID, Offset, RelType, Value);
1569 SectionEntry &Section = Sections[SectionID];
1583 if (Value.SectionID == SectionID){
1589 Sections[Value.SectionID].getAddressWithOffset(Value.Addend);
1595 (AbiVariant == 2 && Value.SectionID == SectionID)) {
1596 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend);
1597 addRelocationForSection(RE, Value.SectionID);
1600 if (IsExtern || (AbiVariant == 2 && Value.SectionID != SectionID) ||
1618 RelocationEntry RE(SectionID, StubTargetAddr - Section.getAddress(),
1629 RelocationEntry REhst(SectionID, StubRelocOffset + 0,
1631 RelocationEntry REhr(SectionID, StubRelocOffset + 4,
1633 RelocationEntry REh(SectionID, StubRelocOffset + 12,
1635 RelocationEntry REl(SectionID, StubRelocOffset + 16,
1644 addRelocationForSection(REhst, Value.SectionID);
1645 addRelocationForSection(REhr, Value.SectionID);
1646 addRelocationForSection(REh, Value.SectionID);
1647 addRelocationForSection(REl, Value.SectionID);
1656 if (IsExtern || (AbiVariant == 2 && Value.SectionID != SectionID)) {
1693 if (Value.SymbolName || Value.SectionID != TOCValue.SectionID)
1696 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0);
1712 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend);
1717 addRelocationForSection(RE, Value.SectionID);
1731 SectionEntry &Section = Sections[SectionID];
1750 RelocationEntry RE(SectionID, StubOffset + 8, ELF::R_390_64,
1755 addRelocationForSection(RE, Value.SectionID);
1785 SectionEntry *Section = &Sections[SectionID];
1809 Section = &Sections[SectionID];
1812 resolveGOTOffsetRelocation(SectionID, StubOffset + 2, GOTOffset - 4,
1826 computePlaceholderAddress(SectionID, Offset));
1827 processSimpleRelocation(SectionID, Offset, ELF::R_X86_64_PC32, Value);
1833 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend,
1842 addRelocationForSection(RE, Value.SectionID);
1846 resolveRelocation(Sections[SectionID], Offset, GOTOffset,
1855 addRelocationForSection(RE, Value.SectionID);
1861 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC32);
1864 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC64);
1868 processSimpleRelocation(SectionID, Offset, RelType, Value);
1870 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset));
1871 processSimpleRelocation(SectionID, Offset, RelType, Value);
1873 Value.Addend += support::ulittle64_t::ref(computePlaceholderAddress(SectionID, Offset));
1874 processSimpleRelocation(SectionID, Offset, RelType, Value);
1876 processX86_64GOTTPOFFRelocation(SectionID, Offset, Value, Addend);
1882 processX86_64TLSRelocation(SectionID, Offset, RelType, Value, Addend,
1885 processSimpleRelocation(SectionID, Offset, RelType, Value);
1889 Value.Addend += support::ulittle32_t::ref(computePlaceholderAddress(SectionID, Offset));
1891 processSimpleRelocation(SectionID, Offset, RelType, Value);
1896 void RuntimeDyldELF::processX86_64GOTTPOFFRelocation(unsigned SectionID,
1960 auto &Section = Sections[SectionID];
1986 RelocationEntry RE(SectionID,
1993 addRelocationForSection(RE, Value.SectionID);
2004 resolveGOTOffsetRelocation(SectionID, Offset, GOTOffset + Addend,
2011 addRelocationForSection(RE, Value.SectionID);
2016 unsigned SectionID, uint64_t Offset, uint64_t RelType,
2128 RelocationEntry RE(SectionID, Offset - TLSSequenceOffset + TpoffRelocOffset,
2133 addRelocationForSection(RE, Value.SectionID);
2203 auto &Section = Sections[SectionID];
2279 addRelocationForSection(RE, Value.SectionID);
2287 void RuntimeDyldELF::resolveGOTOffsetRelocation(unsigned SectionID,
2292 RelocationEntry GOTRE(SectionID, Offset, Type, GOTOffset);
2347 LLVM_DEBUG(dbgs() << "Creating IFunc stubs SectionID: "