• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/

Lines Matching refs:RelType

937   return resolveRelocation(Section, RE.Offset, Value, RE.RelType, RE.Addend,
987 void RuntimeDyldELF::processSimpleRelocation(unsigned SectionID, uint64_t Offset, unsigned RelType, RelocationValueRef Value) {
988 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend, Value.Offset);
995 uint32_t RuntimeDyldELF::getMatchingLoRelocation(uint32_t RelType,
997 switch (RelType) {
1069 unsigned RelType = RelI->getType();
1075 RelType, 0);
1110 RelType, 0);
1120 uint64_t RelType = RelI->getType();
1136 LLVM_DEBUG(dbgs() << "\t\tRelType: " << RelType << " Addend: " << Addend
1213 if (RelType == ELF::R_AARCH64_CALL26 || RelType == ELF::R_AARCH64_JUMP26) {
1215 } else if (RelType == ELF::R_AARCH64_ADR_GOT_PAGE) {
1222 } else if (RelType == ELF::R_AARCH64_LD64_GOT_LO12_NC) {
1227 processSimpleRelocation(SectionID, Offset, RelType, Value);
1230 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL ||
1231 RelType == ELF::R_ARM_JUMP24) {
1242 RelType, 0);
1260 RelType, 0);
1266 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 ||
1267 RelType == ELF::R_ARM_ABS32) {
1269 } else if (RelType == ELF::R_ARM_MOVW_ABS_NC || RelType == ELF::R_ARM_MOVT_ABS) {
1273 processSimpleRelocation(SectionID, Offset, RelType, Value);
1279 if (RelType == ELF::R_MIPS_26) {
1294 RelocationEntry RE(SectionID, Offset, RelType, i->second);
1322 RelocationEntry RE(SectionID, Offset, RelType, Section.getStubOffset());
1326 } else if (RelType == ELF::R_MIPS_HI16 || RelType == ELF::R_MIPS_PCHI16) {
1328 RelocationEntry RE(SectionID, Offset, RelType, Addend);
1330 } else if (RelType == ELF::R_MIPS_LO16 || RelType == ELF::R_MIPS_PCLO16) {
1336 RelType == getMatchingLoRelocation(Reloc.RelType) &&
1347 RelocationEntry RE(SectionID, Offset, RelType, Addend);
1353 if (RelType == ELF::R_MIPS_32)
1355 else if (RelType == ELF::R_MIPS_PC16)
1357 else if (RelType == ELF::R_MIPS_PC19_S2)
1359 else if (RelType == ELF::R_MIPS_PC21_S2)
1361 else if (RelType == ELF::R_MIPS_PC26_S2)
1363 processSimpleRelocation(SectionID, Offset, RelType, Value);
1366 uint32_t r_type = RelType & 0xff;
1367 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend);
1381 } else if (RelType == ELF::R_MIPS_26) {
1389 RelocationEntry RE(SectionID, Offset, RelType, i->second);
1443 RelocationEntry RE(SectionID, Offset, RelType, Section.getStubOffset());
1448 processSimpleRelocation(SectionID, Offset, RelType, Value);
1452 if (RelType == ELF::R_PPC64_REL24) {
1487 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend);
1501 RelType, 0);
1545 RelType, 0);
1556 } else if (RelType == ELF::R_PPC64_TOC16 ||
1557 RelType == ELF::R_PPC64_TOC16_DS ||
1558 RelType == ELF::R_PPC64_TOC16_LO ||
1559 RelType == ELF::R_PPC64_TOC16_LO_DS ||
1560 RelType == ELF::R_PPC64_TOC16_HI ||
1561 RelType == ELF::R_PPC64_TOC16_HA) {
1572 switch (RelType) {
1573 case ELF::R_PPC64_TOC16: RelType = ELF::R_PPC64_ADDR16; break;
1574 case ELF::R_PPC64_TOC16_DS: RelType = ELF::R_PPC64_ADDR16_DS; break;
1575 case ELF::R_PPC64_TOC16_LO: RelType = ELF::R_PPC64_ADDR16_LO; break;
1576 case ELF::R_PPC64_TOC16_LO_DS: RelType = ELF::R_PPC64_ADDR16_LO_DS; break;
1577 case ELF::R_PPC64_TOC16_HI: RelType = ELF::R_PPC64_ADDR16_HI; break;
1578 case ELF::R_PPC64_TOC16_HA: RelType = ELF::R_PPC64_ADDR16_HA; break;
1588 resolveRelocation(Sections[SectionID], Offset, Value.Addend, RelType, 0);
1594 if (RelType == ELF::R_PPC64_TOC) {
1595 RelType = ELF::R_PPC64_ADDR64;
1604 RelocationEntry RE(SectionID, Offset, RelType, Value.Addend);
1612 (RelType == ELF::R_390_PLT32DBL || RelType == ELF::R_390_GOTENT)) {
1653 if (RelType == ELF::R_390_GOTENT)
1657 resolveRelocation(Section, Offset, StubAddress, RelType, Addend);
1659 if (RelType == ELF::R_X86_64_PLT32) {
1722 } else if (RelType == ELF::R_X86_64_GOTPCREL ||
1723 RelType == ELF::R_X86_64_GOTPCRELX ||
1724 RelType == ELF::R_X86_64_REX_GOTPCRELX) {
1736 } else if (RelType == ELF::R_X86_64_GOT64) {
1749 } else if (RelType == ELF::R_X86_64_GOTPC64) {
1755 } else if (RelType == ELF::R_X86_64_GOTOFF64) {
1758 processSimpleRelocation(SectionID, Offset, RelType, Value);
1759 } else if (RelType == ELF::R_X86_64_PC32) {
1761 processSimpleRelocation(SectionID, Offset, RelType, Value);
1762 } else if (RelType == ELF::R_X86_64_PC64) {
1764 processSimpleRelocation(SectionID, Offset, RelType, Value);
1766 processSimpleRelocation(SectionID, Offset, RelType, Value);
1772 processSimpleRelocation(SectionID, Offset, RelType, Value);