• Home
  • Raw
  • Download

Lines Matching refs:ELF

234   case ELF::R_X86_64_64: {  in resolveX86_64Relocation()
241 case ELF::R_X86_64_32: in resolveX86_64Relocation()
242 case ELF::R_X86_64_32S: { in resolveX86_64Relocation()
244 assert((Type == ELF::R_X86_64_32 && (Value <= UINT32_MAX)) || in resolveX86_64Relocation()
245 (Type == ELF::R_X86_64_32S && in resolveX86_64Relocation()
254 case ELF::R_X86_64_PC8: { in resolveX86_64Relocation()
262 case ELF::R_X86_64_PC32: { in resolveX86_64Relocation()
271 case ELF::R_X86_64_PC64: { in resolveX86_64Relocation()
285 case ELF::R_386_32: { in resolveX86Relocation()
290 case ELF::R_386_PC32: { in resolveX86Relocation()
324 case ELF::R_AARCH64_ABS64: { in resolveAArch64Relocation()
330 case ELF::R_AARCH64_PREL32: { in resolveAArch64Relocation()
337 case ELF::R_AARCH64_CALL26: // fallthrough in resolveAArch64Relocation()
338 case ELF::R_AARCH64_JUMP26: { in resolveAArch64Relocation()
353 case ELF::R_AARCH64_MOVW_UABS_G3: { in resolveAArch64Relocation()
365 case ELF::R_AARCH64_MOVW_UABS_G2_NC: { in resolveAArch64Relocation()
377 case ELF::R_AARCH64_MOVW_UABS_G1_NC: { in resolveAArch64Relocation()
389 case ELF::R_AARCH64_MOVW_UABS_G0_NC: { in resolveAArch64Relocation()
401 case ELF::R_AARCH64_ADR_PREL_PG_HI21: { in resolveAArch64Relocation()
418 case ELF::R_AARCH64_LDST32_ABS_LO12_NC: { in resolveAArch64Relocation()
430 case ELF::R_AARCH64_LDST64_ABS_LO12_NC: { in resolveAArch64Relocation()
464 case ELF::R_ARM_NONE: in resolveARMRelocation()
466 case ELF::R_ARM_PREL31: in resolveARMRelocation()
467 case ELF::R_ARM_TARGET1: in resolveARMRelocation()
468 case ELF::R_ARM_ABS32: in resolveARMRelocation()
473 case ELF::R_ARM_MOVW_ABS_NC: in resolveARMRelocation()
474 case ELF::R_ARM_MOVT_ABS: in resolveARMRelocation()
475 if (Type == ELF::R_ARM_MOVW_ABS_NC) in resolveARMRelocation()
477 else if (Type == ELF::R_ARM_MOVT_ABS) in resolveARMRelocation()
484 case ELF::R_ARM_PC24: // Fall through. in resolveARMRelocation()
485 case ELF::R_ARM_CALL: // Fall through. in resolveARMRelocation()
486 case ELF::R_ARM_JUMP24: in resolveARMRelocation()
515 case ELF::R_MIPS_32: in resolveMIPSRelocation()
518 case ELF::R_MIPS_26: in resolveMIPSRelocation()
523 case ELF::R_MIPS_HI16: in resolveMIPSRelocation()
529 case ELF::R_MIPS_LO16: in resolveMIPSRelocation()
534 case ELF::R_MIPS_PC32: { in resolveMIPSRelocation()
539 case ELF::R_MIPS_PC16: { in resolveMIPSRelocation()
546 case ELF::R_MIPS_PC19_S2: { in resolveMIPSRelocation()
553 case ELF::R_MIPS_PC21_S2: { in resolveMIPSRelocation()
560 case ELF::R_MIPS_PC26_S2: { in resolveMIPSRelocation()
567 case ELF::R_MIPS_PCHI16: { in resolveMIPSRelocation()
574 case ELF::R_MIPS_PCLO16: { in resolveMIPSRelocation()
593 IsMipsO32ABI = AbiVariant & ELF::EF_MIPS_ABI_O32; in setMipsABI()
595 if (AbiVariant & ELF::EF_MIPS_ABI2) in setMipsABI()
614 if (r_type2 != ELF::R_MIPS_NONE) { in resolveMIPS64Relocation()
620 if (r_type3 != ELF::R_MIPS_NONE) { in resolveMIPS64Relocation()
648 case ELF::R_MIPS_JALR: in evaluateMIPS64Relocation()
649 case ELF::R_MIPS_NONE: in evaluateMIPS64Relocation()
651 case ELF::R_MIPS_32: in evaluateMIPS64Relocation()
652 case ELF::R_MIPS_64: in evaluateMIPS64Relocation()
654 case ELF::R_MIPS_26: in evaluateMIPS64Relocation()
656 case ELF::R_MIPS_GPREL16: { in evaluateMIPS64Relocation()
660 case ELF::R_MIPS_SUB: in evaluateMIPS64Relocation()
662 case ELF::R_MIPS_HI16: in evaluateMIPS64Relocation()
665 case ELF::R_MIPS_LO16: in evaluateMIPS64Relocation()
667 case ELF::R_MIPS_CALL16: in evaluateMIPS64Relocation()
668 case ELF::R_MIPS_GOT_DISP: in evaluateMIPS64Relocation()
669 case ELF::R_MIPS_GOT_PAGE: { in evaluateMIPS64Relocation()
675 if (Type == ELF::R_MIPS_GOT_PAGE) in evaluateMIPS64Relocation()
686 case ELF::R_MIPS_GOT_OFST: { in evaluateMIPS64Relocation()
690 case ELF::R_MIPS_GPREL32: { in evaluateMIPS64Relocation()
694 case ELF::R_MIPS_PC16: { in evaluateMIPS64Relocation()
698 case ELF::R_MIPS_PC32: { in evaluateMIPS64Relocation()
702 case ELF::R_MIPS_PC18_S3: { in evaluateMIPS64Relocation()
706 case ELF::R_MIPS_PC19_S2: { in evaluateMIPS64Relocation()
710 case ELF::R_MIPS_PC21_S2: { in evaluateMIPS64Relocation()
714 case ELF::R_MIPS_PC26_S2: { in evaluateMIPS64Relocation()
718 case ELF::R_MIPS_PCHI16: { in evaluateMIPS64Relocation()
722 case ELF::R_MIPS_PCLO16: { in evaluateMIPS64Relocation()
738 case ELF::R_MIPS_32: in applyMIPS64Relocation()
739 case ELF::R_MIPS_GPREL32: in applyMIPS64Relocation()
740 case ELF::R_MIPS_PC32: in applyMIPS64Relocation()
743 case ELF::R_MIPS_64: in applyMIPS64Relocation()
744 case ELF::R_MIPS_SUB: in applyMIPS64Relocation()
747 case ELF::R_MIPS_26: in applyMIPS64Relocation()
748 case ELF::R_MIPS_PC26_S2: in applyMIPS64Relocation()
752 case ELF::R_MIPS_GPREL16: in applyMIPS64Relocation()
756 case ELF::R_MIPS_HI16: in applyMIPS64Relocation()
757 case ELF::R_MIPS_LO16: in applyMIPS64Relocation()
758 case ELF::R_MIPS_PCHI16: in applyMIPS64Relocation()
759 case ELF::R_MIPS_PCLO16: in applyMIPS64Relocation()
760 case ELF::R_MIPS_PC16: in applyMIPS64Relocation()
761 case ELF::R_MIPS_CALL16: in applyMIPS64Relocation()
762 case ELF::R_MIPS_GOT_DISP: in applyMIPS64Relocation()
763 case ELF::R_MIPS_GOT_PAGE: in applyMIPS64Relocation()
764 case ELF::R_MIPS_GOT_OFST: in applyMIPS64Relocation()
768 case ELF::R_MIPS_PC18_S3: in applyMIPS64Relocation()
772 case ELF::R_MIPS_PC19_S2: in applyMIPS64Relocation()
776 case ELF::R_MIPS_PC21_S2: in applyMIPS64Relocation()
839 if (TypeFunc != ELF::R_PPC64_ADDR64) { in findOPDEntrySection()
856 if (TypeTOC != ELF::R_PPC64_TOC) in findOPDEntrySection()
916 case ELF::R_PPC_ADDR16_LO: in resolvePPC32Relocation()
919 case ELF::R_PPC_ADDR16_HI: in resolvePPC32Relocation()
922 case ELF::R_PPC_ADDR16_HA: in resolvePPC32Relocation()
936 case ELF::R_PPC64_ADDR16: in resolvePPC64Relocation()
939 case ELF::R_PPC64_ADDR16_DS: in resolvePPC64Relocation()
942 case ELF::R_PPC64_ADDR16_LO: in resolvePPC64Relocation()
945 case ELF::R_PPC64_ADDR16_LO_DS: in resolvePPC64Relocation()
948 case ELF::R_PPC64_ADDR16_HI: in resolvePPC64Relocation()
951 case ELF::R_PPC64_ADDR16_HA: in resolvePPC64Relocation()
954 case ELF::R_PPC64_ADDR16_HIGHER: in resolvePPC64Relocation()
957 case ELF::R_PPC64_ADDR16_HIGHERA: in resolvePPC64Relocation()
960 case ELF::R_PPC64_ADDR16_HIGHEST: in resolvePPC64Relocation()
963 case ELF::R_PPC64_ADDR16_HIGHESTA: in resolvePPC64Relocation()
966 case ELF::R_PPC64_ADDR14: { in resolvePPC64Relocation()
972 case ELF::R_PPC64_REL16_LO: { in resolvePPC64Relocation()
977 case ELF::R_PPC64_REL16_HI: { in resolvePPC64Relocation()
982 case ELF::R_PPC64_REL16_HA: { in resolvePPC64Relocation()
987 case ELF::R_PPC64_ADDR32: { in resolvePPC64Relocation()
993 case ELF::R_PPC64_REL24: { in resolvePPC64Relocation()
1001 case ELF::R_PPC64_REL32: { in resolvePPC64Relocation()
1008 case ELF::R_PPC64_REL64: { in resolvePPC64Relocation()
1013 case ELF::R_PPC64_ADDR64: in resolvePPC64Relocation()
1027 case ELF::R_390_PC16DBL: in resolveSystemZRelocation()
1028 case ELF::R_390_PLT16DBL: { in resolveSystemZRelocation()
1034 case ELF::R_390_PC32DBL: in resolveSystemZRelocation()
1035 case ELF::R_390_PLT32DBL: { in resolveSystemZRelocation()
1041 case ELF::R_390_PC32: { in resolveSystemZRelocation()
1047 case ELF::R_390_64: in resolveSystemZRelocation()
1146 case ELF::R_MICROMIPS_GOT16: in getMatchingLoRelocation()
1148 return ELF::R_MICROMIPS_LO16; in getMatchingLoRelocation()
1150 case ELF::R_MICROMIPS_HI16: in getMatchingLoRelocation()
1151 return ELF::R_MICROMIPS_LO16; in getMatchingLoRelocation()
1152 case ELF::R_MIPS_GOT16: in getMatchingLoRelocation()
1154 return ELF::R_MIPS_LO16; in getMatchingLoRelocation()
1156 case ELF::R_MIPS_HI16: in getMatchingLoRelocation()
1157 return ELF::R_MIPS_LO16; in getMatchingLoRelocation()
1158 case ELF::R_MIPS_PCHI16: in getMatchingLoRelocation()
1159 return ELF::R_MIPS_PCLO16; in getMatchingLoRelocation()
1163 return ELF::R_MIPS_NONE; in getMatchingLoRelocation()
1239 (RelType == ELF::R_AARCH64_CALL26 || RelType == ELF::R_AARCH64_JUMP26)) { in processRelocationRef()
1260 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in processRelocationRef()
1263 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in processRelocationRef()
1266 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in processRelocationRef()
1269 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in processRelocationRef()
1289 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL || in processRelocationRef()
1290 RelType == ELF::R_ARM_JUMP24) { in processRelocationRef()
1310 ELF::R_ARM_ABS32, Value.Addend); in processRelocationRef()
1325 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 || in processRelocationRef()
1326 RelType == ELF::R_ARM_ABS32) { in processRelocationRef()
1328 } else if (RelType == ELF::R_ARM_MOVW_ABS_NC || RelType == ELF::R_ARM_MOVT_ABS) { in processRelocationRef()
1338 if (RelType == ELF::R_MIPS_26) { in processRelocationRef()
1365 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1368 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1383 } else if (RelType == ELF::R_MIPS_HI16 || RelType == ELF::R_MIPS_PCHI16) { in processRelocationRef()
1387 } else if (RelType == ELF::R_MIPS_LO16 || RelType == ELF::R_MIPS_PCLO16) { in processRelocationRef()
1410 if (RelType == ELF::R_MIPS_32) in processRelocationRef()
1412 else if (RelType == ELF::R_MIPS_PC16) in processRelocationRef()
1414 else if (RelType == ELF::R_MIPS_PC19_S2) in processRelocationRef()
1416 else if (RelType == ELF::R_MIPS_PC21_S2) in processRelocationRef()
1418 else if (RelType == ELF::R_MIPS_PC26_S2) in processRelocationRef()
1425 if (r_type == ELF::R_MIPS_CALL16 || r_type == ELF::R_MIPS_GOT_PAGE in processRelocationRef()
1426 || r_type == ELF::R_MIPS_GOT_DISP) { in processRelocationRef()
1440 if (RelType == ELF::R_PPC64_REL24) { in processRelocationRef()
1444 AbiVariant &= ELF::EF_PPC64_ABI; in processRelocationRef()
1461 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1496 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1507 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1509 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1511 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1513 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1541 } else if (RelType == ELF::R_PPC64_TOC16 || in processRelocationRef()
1542 RelType == ELF::R_PPC64_TOC16_DS || in processRelocationRef()
1543 RelType == ELF::R_PPC64_TOC16_LO || in processRelocationRef()
1544 RelType == ELF::R_PPC64_TOC16_LO_DS || in processRelocationRef()
1545 RelType == ELF::R_PPC64_TOC16_HI || in processRelocationRef()
1546 RelType == ELF::R_PPC64_TOC16_HA) { in processRelocationRef()
1558 case ELF::R_PPC64_TOC16: RelType = ELF::R_PPC64_ADDR16; break; in processRelocationRef()
1559 case ELF::R_PPC64_TOC16_DS: RelType = ELF::R_PPC64_ADDR16_DS; break; in processRelocationRef()
1560 case ELF::R_PPC64_TOC16_LO: RelType = ELF::R_PPC64_ADDR16_LO; break; in processRelocationRef()
1561 case ELF::R_PPC64_TOC16_LO_DS: RelType = ELF::R_PPC64_ADDR16_LO_DS; break; in processRelocationRef()
1562 case ELF::R_PPC64_TOC16_HI: RelType = ELF::R_PPC64_ADDR16_HI; break; in processRelocationRef()
1563 case ELF::R_PPC64_TOC16_HA: RelType = ELF::R_PPC64_ADDR16_HA; break; in processRelocationRef()
1578 if (RelType == ELF::R_PPC64_TOC) { in processRelocationRef()
1579 RelType = ELF::R_PPC64_ADDR64; in processRelocationRef()
1594 (RelType == ELF::R_390_PLT32DBL || RelType == ELF::R_390_GOTENT)) { in processRelocationRef()
1626 RelocationEntry RE(SectionID, StubOffset + 8, ELF::R_390_64, in processRelocationRef()
1635 if (RelType == ELF::R_390_GOTENT) in processRelocationRef()
1636 resolveRelocation(Section, Offset, StubAddress + 8, ELF::R_390_PC32DBL, in processRelocationRef()
1641 if (RelType == ELF::R_X86_64_PLT32) { in processRelocationRef()
1691 computeGOTOffsetRE(SectionID, GOTOffset, 0, ELF::R_X86_64_64), in processRelocationRef()
1696 resolveRelocation(Section, Offset, StubAddress, ELF::R_X86_64_PC32, in processRelocationRef()
1699 RelocationEntry RE(SectionID, Offset, ELF::R_X86_64_PC32, Value.Addend, in processRelocationRef()
1703 } else if (RelType == ELF::R_X86_64_GOTPCREL) { in processRelocationRef()
1708 RelocationEntry RE = computeGOTOffsetRE(SectionID, GOTOffset, Value.Offset, ELF::R_X86_64_64); in processRelocationRef()
1713 } else if (RelType == ELF::R_X86_64_PC32) { in processRelocationRef()
1716 } else if (RelType == ELF::R_X86_64_PC64) { in processRelocationRef()
1783 RelocationEntry GOTRE(SectionID, Offset, ELF::R_X86_64_PC32, GOTOffset); in resolveGOTOffsetRelocation()
1863 case ELF::R_X86_64_GOTPCREL: in relocationNeedsStub()
1864 case ELF::R_X86_64_PC32: in relocationNeedsStub()
1865 case ELF::R_X86_64_PC64: in relocationNeedsStub()
1866 case ELF::R_X86_64_64: in relocationNeedsStub()