Lines Matching refs:ELF

267   case ELF::R_X86_64_NONE:  in resolveX86_64Relocation()
269 case ELF::R_X86_64_8: { in resolveX86_64Relocation()
278 case ELF::R_X86_64_16: { in resolveX86_64Relocation()
288 case ELF::R_X86_64_64: { in resolveX86_64Relocation()
295 case ELF::R_X86_64_32: in resolveX86_64Relocation()
296 case ELF::R_X86_64_32S: { in resolveX86_64Relocation()
298 assert((Type == ELF::R_X86_64_32 && (Value <= UINT32_MAX)) || in resolveX86_64Relocation()
299 (Type == ELF::R_X86_64_32S && in resolveX86_64Relocation()
308 case ELF::R_X86_64_PC8: { in resolveX86_64Relocation()
316 case ELF::R_X86_64_PC32: { in resolveX86_64Relocation()
325 case ELF::R_X86_64_PC64: { in resolveX86_64Relocation()
334 case ELF::R_X86_64_GOTOFF64: { in resolveX86_64Relocation()
355 case ELF::R_386_32: { in resolveX86Relocation()
362 case ELF::R_386_PLT32: in resolveX86Relocation()
363 case ELF::R_386_PC32: { in resolveX86Relocation()
399 case ELF::R_AARCH64_ABS16: { in resolveAArch64Relocation()
405 case ELF::R_AARCH64_ABS32: { in resolveAArch64Relocation()
411 case ELF::R_AARCH64_ABS64: in resolveAArch64Relocation()
414 case ELF::R_AARCH64_PLT32: { in resolveAArch64Relocation()
421 case ELF::R_AARCH64_PREL32: { in resolveAArch64Relocation()
428 case ELF::R_AARCH64_PREL64: in resolveAArch64Relocation()
431 case ELF::R_AARCH64_CONDBR19: { in resolveAArch64Relocation()
440 case ELF::R_AARCH64_TSTBR14: { in resolveAArch64Relocation()
450 case ELF::R_AARCH64_CALL26: // fallthrough in resolveAArch64Relocation()
451 case ELF::R_AARCH64_JUMP26: { in resolveAArch64Relocation()
461 case ELF::R_AARCH64_MOVW_UABS_G3: in resolveAArch64Relocation()
464 case ELF::R_AARCH64_MOVW_UABS_G2_NC: in resolveAArch64Relocation()
467 case ELF::R_AARCH64_MOVW_UABS_G1_NC: in resolveAArch64Relocation()
470 case ELF::R_AARCH64_MOVW_UABS_G0_NC: in resolveAArch64Relocation()
473 case ELF::R_AARCH64_ADR_PREL_PG_HI21: { in resolveAArch64Relocation()
486 case ELF::R_AARCH64_ADD_ABS_LO12_NC: in resolveAArch64Relocation()
492 case ELF::R_AARCH64_LDST8_ABS_LO12_NC: in resolveAArch64Relocation()
498 case ELF::R_AARCH64_LDST16_ABS_LO12_NC: in resolveAArch64Relocation()
504 case ELF::R_AARCH64_LDST32_ABS_LO12_NC: in resolveAArch64Relocation()
510 case ELF::R_AARCH64_LDST64_ABS_LO12_NC: in resolveAArch64Relocation()
516 case ELF::R_AARCH64_LDST128_ABS_LO12_NC: in resolveAArch64Relocation()
522 case ELF::R_AARCH64_LD_PREL_LO19: { in resolveAArch64Relocation()
535 case ELF::R_AARCH64_ADR_PREL_LO21: { in resolveAArch64Relocation()
572 case ELF::R_ARM_NONE: in resolveARMRelocation()
575 case ELF::R_ARM_PREL31: in resolveARMRelocation()
580 case ELF::R_ARM_TARGET1: in resolveARMRelocation()
581 case ELF::R_ARM_ABS32: in resolveARMRelocation()
586 case ELF::R_ARM_MOVW_ABS_NC: in resolveARMRelocation()
587 case ELF::R_ARM_MOVT_ABS: in resolveARMRelocation()
588 if (Type == ELF::R_ARM_MOVW_ABS_NC) in resolveARMRelocation()
590 else if (Type == ELF::R_ARM_MOVT_ABS) in resolveARMRelocation()
597 case ELF::R_ARM_PC24: // Fall through. in resolveARMRelocation()
598 case ELF::R_ARM_CALL: // Fall through. in resolveARMRelocation()
599 case ELF::R_ARM_JUMP24: in resolveARMRelocation()
619 IsMipsO32ABI = AbiVariant & ELF::EF_MIPS_ABI_O32; in setMipsABI()
620 IsMipsN32ABI = AbiVariant & ELF::EF_MIPS_ABI2; in setMipsABI()
697 if (TypeFunc != ELF::R_PPC64_ADDR64) { in findOPDEntrySection()
716 if (TypeTOC != ELF::R_PPC64_TOC) in findOPDEntrySection()
784 case ELF::R_PPC_ADDR16_LO: in resolvePPC32Relocation()
787 case ELF::R_PPC_ADDR16_HI: in resolvePPC32Relocation()
790 case ELF::R_PPC_ADDR16_HA: in resolvePPC32Relocation()
804 case ELF::R_PPC64_ADDR16: in resolvePPC64Relocation()
807 case ELF::R_PPC64_ADDR16_DS: in resolvePPC64Relocation()
810 case ELF::R_PPC64_ADDR16_LO: in resolvePPC64Relocation()
813 case ELF::R_PPC64_ADDR16_LO_DS: in resolvePPC64Relocation()
816 case ELF::R_PPC64_ADDR16_HI: in resolvePPC64Relocation()
817 case ELF::R_PPC64_ADDR16_HIGH: in resolvePPC64Relocation()
820 case ELF::R_PPC64_ADDR16_HA: in resolvePPC64Relocation()
821 case ELF::R_PPC64_ADDR16_HIGHA: in resolvePPC64Relocation()
824 case ELF::R_PPC64_ADDR16_HIGHER: in resolvePPC64Relocation()
827 case ELF::R_PPC64_ADDR16_HIGHERA: in resolvePPC64Relocation()
830 case ELF::R_PPC64_ADDR16_HIGHEST: in resolvePPC64Relocation()
833 case ELF::R_PPC64_ADDR16_HIGHESTA: in resolvePPC64Relocation()
836 case ELF::R_PPC64_ADDR14: { in resolvePPC64Relocation()
842 case ELF::R_PPC64_REL16_LO: { in resolvePPC64Relocation()
847 case ELF::R_PPC64_REL16_HI: { in resolvePPC64Relocation()
852 case ELF::R_PPC64_REL16_HA: { in resolvePPC64Relocation()
857 case ELF::R_PPC64_ADDR32: { in resolvePPC64Relocation()
863 case ELF::R_PPC64_REL24: { in resolvePPC64Relocation()
872 case ELF::R_PPC64_REL32: { in resolvePPC64Relocation()
879 case ELF::R_PPC64_REL64: { in resolvePPC64Relocation()
884 case ELF::R_PPC64_ADDR64: in resolvePPC64Relocation()
898 case ELF::R_390_PC16DBL: in resolveSystemZRelocation()
899 case ELF::R_390_PLT16DBL: { in resolveSystemZRelocation()
905 case ELF::R_390_PC32DBL: in resolveSystemZRelocation()
906 case ELF::R_390_PLT32DBL: { in resolveSystemZRelocation()
912 case ELF::R_390_PC16: { in resolveSystemZRelocation()
918 case ELF::R_390_PC32: { in resolveSystemZRelocation()
924 case ELF::R_390_PC64: { in resolveSystemZRelocation()
929 case ELF::R_390_8: in resolveSystemZRelocation()
932 case ELF::R_390_16: in resolveSystemZRelocation()
935 case ELF::R_390_32: in resolveSystemZRelocation()
938 case ELF::R_390_64: in resolveSystemZRelocation()
953 case ELF::R_BPF_NONE: in resolveBPFRelocation()
954 case ELF::R_BPF_64_64: in resolveBPFRelocation()
955 case ELF::R_BPF_64_32: in resolveBPFRelocation()
956 case ELF::R_BPF_64_NODYLD32: in resolveBPFRelocation()
958 case ELF::R_BPF_64_ABS64: { in resolveBPFRelocation()
964 case ELF::R_BPF_64_ABS32: { in resolveBPFRelocation()
1060 case ELF::R_MICROMIPS_GOT16: in getMatchingLoRelocation()
1062 return ELF::R_MICROMIPS_LO16; in getMatchingLoRelocation()
1064 case ELF::R_MICROMIPS_HI16: in getMatchingLoRelocation()
1065 return ELF::R_MICROMIPS_LO16; in getMatchingLoRelocation()
1066 case ELF::R_MIPS_GOT16: in getMatchingLoRelocation()
1068 return ELF::R_MIPS_LO16; in getMatchingLoRelocation()
1070 case ELF::R_MIPS_HI16: in getMatchingLoRelocation()
1071 return ELF::R_MIPS_LO16; in getMatchingLoRelocation()
1072 case ELF::R_MIPS_PCHI16: in getMatchingLoRelocation()
1073 return ELF::R_MIPS_PCLO16; in getMatchingLoRelocation()
1077 return ELF::R_MIPS_NONE; in getMatchingLoRelocation()
1147 ELF::R_AARCH64_MOVW_UABS_G3, Value.Addend); in resolveAArch64Branch()
1150 ELF::R_AARCH64_MOVW_UABS_G2_NC, Value.Addend); in resolveAArch64Branch()
1153 ELF::R_AARCH64_MOVW_UABS_G1_NC, Value.Addend); in resolveAArch64Branch()
1156 ELF::R_AARCH64_MOVW_UABS_G0_NC, Value.Addend); in resolveAArch64Branch()
1275 if ((RelType == ELF::R_AARCH64_CALL26 || in processRelocationRef()
1276 RelType == ELF::R_AARCH64_JUMP26) && in processRelocationRef()
1279 } else if (RelType == ELF::R_AARCH64_ADR_GOT_PAGE) { in processRelocationRef()
1282 uint64_t GOTOffset = findOrAllocGOTEntry(Value, ELF::R_AARCH64_ABS64); in processRelocationRef()
1284 ELF::R_AARCH64_ADR_PREL_PG_HI21); in processRelocationRef()
1286 } else if (RelType == ELF::R_AARCH64_LD64_GOT_LO12_NC) { in processRelocationRef()
1287 uint64_t GOTOffset = findOrAllocGOTEntry(Value, ELF::R_AARCH64_ABS64); in processRelocationRef()
1289 ELF::R_AARCH64_LDST64_ABS_LO12_NC); in processRelocationRef()
1294 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL || in processRelocationRef()
1295 RelType == ELF::R_ARM_JUMP24) { in processRelocationRef()
1315 ELF::R_ARM_ABS32, Value.Addend); in processRelocationRef()
1330 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 || in processRelocationRef()
1331 RelType == ELF::R_ARM_ABS32) { in processRelocationRef()
1333 } else if (RelType == ELF::R_ARM_MOVW_ABS_NC || RelType == ELF::R_ARM_MOVT_ABS) { in processRelocationRef()
1343 if (RelType == ELF::R_MIPS_26) { in processRelocationRef()
1373 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1376 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1390 } else if (RelType == ELF::R_MIPS_HI16 || RelType == ELF::R_MIPS_PCHI16) { in processRelocationRef()
1394 } else if (RelType == ELF::R_MIPS_LO16 || RelType == ELF::R_MIPS_PCLO16) { in processRelocationRef()
1417 if (RelType == ELF::R_MIPS_32) in processRelocationRef()
1419 else if (RelType == ELF::R_MIPS_PC16) in processRelocationRef()
1421 else if (RelType == ELF::R_MIPS_PC19_S2) in processRelocationRef()
1423 else if (RelType == ELF::R_MIPS_PC21_S2) in processRelocationRef()
1425 else if (RelType == ELF::R_MIPS_PC26_S2) in processRelocationRef()
1432 if (r_type == ELF::R_MIPS_CALL16 || r_type == ELF::R_MIPS_GOT_PAGE in processRelocationRef()
1433 || r_type == ELF::R_MIPS_GOT_DISP) { in processRelocationRef()
1445 } else if (RelType == ELF::R_MIPS_26) { in processRelocationRef()
1469 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1472 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1485 ELF::R_MIPS_HIGHEST, Value.Addend); in processRelocationRef()
1488 ELF::R_MIPS_HIGHER, Value.Addend); in processRelocationRef()
1491 ELF::R_MIPS_HI16, Value.Addend); in processRelocationRef()
1494 ELF::R_MIPS_LO16, Value.Addend); in processRelocationRef()
1516 if (RelType == ELF::R_PPC64_REL24) { in processRelocationRef()
1519 AbiVariant &= ELF::EF_PPC64_ABI; in processRelocationRef()
1540 Value.Addend += ELF::decodePPC64LocalEntryOffset(SymOther); in processRelocationRef()
1575 ELF::R_PPC64_ADDR64, Value.Addend); in processRelocationRef()
1586 ELF::R_PPC64_ADDR16_HIGHEST, Value.Addend); in processRelocationRef()
1588 ELF::R_PPC64_ADDR16_HIGHER, Value.Addend); in processRelocationRef()
1590 ELF::R_PPC64_ADDR16_HI, Value.Addend); in processRelocationRef()
1592 ELF::R_PPC64_ADDR16_LO, Value.Addend); in processRelocationRef()
1620 } else if (RelType == ELF::R_PPC64_TOC16 || in processRelocationRef()
1621 RelType == ELF::R_PPC64_TOC16_DS || in processRelocationRef()
1622 RelType == ELF::R_PPC64_TOC16_LO || in processRelocationRef()
1623 RelType == ELF::R_PPC64_TOC16_LO_DS || in processRelocationRef()
1624 RelType == ELF::R_PPC64_TOC16_HI || in processRelocationRef()
1625 RelType == ELF::R_PPC64_TOC16_HA) { in processRelocationRef()
1637 case ELF::R_PPC64_TOC16: RelType = ELF::R_PPC64_ADDR16; break; in processRelocationRef()
1638 case ELF::R_PPC64_TOC16_DS: RelType = ELF::R_PPC64_ADDR16_DS; break; in processRelocationRef()
1639 case ELF::R_PPC64_TOC16_LO: RelType = ELF::R_PPC64_ADDR16_LO; break; in processRelocationRef()
1640 case ELF::R_PPC64_TOC16_LO_DS: RelType = ELF::R_PPC64_ADDR16_LO_DS; break; in processRelocationRef()
1641 case ELF::R_PPC64_TOC16_HI: RelType = ELF::R_PPC64_ADDR16_HI; break; in processRelocationRef()
1642 case ELF::R_PPC64_TOC16_HA: RelType = ELF::R_PPC64_ADDR16_HA; break; in processRelocationRef()
1658 if (RelType == ELF::R_PPC64_TOC) { in processRelocationRef()
1659 RelType = ELF::R_PPC64_ADDR64; in processRelocationRef()
1676 (RelType == ELF::R_390_PLT32DBL || RelType == ELF::R_390_GOTENT)) { in processRelocationRef()
1708 RelocationEntry RE(SectionID, StubOffset + 8, ELF::R_390_64, in processRelocationRef()
1717 if (RelType == ELF::R_390_GOTENT) in processRelocationRef()
1718 resolveRelocation(Section, Offset, StubAddress + 8, ELF::R_390_PC32DBL, in processRelocationRef()
1723 if (RelType == ELF::R_X86_64_PLT32) { in processRelocationRef()
1773 ELF::R_X86_64_PC32); in processRelocationRef()
1777 computeGOTOffsetRE(GOTOffset, 0, ELF::R_X86_64_64), in processRelocationRef()
1782 resolveRelocation(*Section, Offset, StubAddress, ELF::R_X86_64_PC32, in processRelocationRef()
1787 processSimpleRelocation(SectionID, Offset, ELF::R_X86_64_PC32, Value); in processRelocationRef()
1789 } else if (RelType == ELF::R_X86_64_GOTPCREL || in processRelocationRef()
1790 RelType == ELF::R_X86_64_GOTPCRELX || in processRelocationRef()
1791 RelType == ELF::R_X86_64_REX_GOTPCRELX) { in processRelocationRef()
1794 ELF::R_X86_64_PC32); in processRelocationRef()
1798 computeGOTOffsetRE(GOTOffset, Value.Offset, ELF::R_X86_64_64); in processRelocationRef()
1803 } else if (RelType == ELF::R_X86_64_GOT64) { in processRelocationRef()
1807 ELF::R_X86_64_64, 0); in processRelocationRef()
1811 computeGOTOffsetRE(GOTOffset, Value.Offset, ELF::R_X86_64_64); in processRelocationRef()
1816 } else if (RelType == ELF::R_X86_64_GOTPC64) { in processRelocationRef()
1821 resolveGOTOffsetRelocation(SectionID, Offset, Addend, ELF::R_X86_64_PC64); in processRelocationRef()
1822 } else if (RelType == ELF::R_X86_64_GOTOFF64) { in processRelocationRef()
1826 } else if (RelType == ELF::R_X86_64_PC32) { in processRelocationRef()
1829 } else if (RelType == ELF::R_X86_64_PC64) { in processRelocationRef()
1999 return RelTy == ELF::R_AARCH64_ADR_GOT_PAGE || in relocationNeedsGot()
2000 RelTy == ELF::R_AARCH64_LD64_GOT_LO12_NC; in relocationNeedsGot()
2003 return RelTy == ELF::R_X86_64_GOTPCREL || in relocationNeedsGot()
2004 RelTy == ELF::R_X86_64_GOTPCRELX || in relocationNeedsGot()
2005 RelTy == ELF::R_X86_64_GOT64 || in relocationNeedsGot()
2006 RelTy == ELF::R_X86_64_REX_GOTPCRELX; in relocationNeedsGot()
2019 case ELF::R_X86_64_GOTPCREL: in relocationNeedsStub()
2020 case ELF::R_X86_64_GOTPCRELX: in relocationNeedsStub()
2021 case ELF::R_X86_64_REX_GOTPCRELX: in relocationNeedsStub()
2022 case ELF::R_X86_64_GOTPC64: in relocationNeedsStub()
2023 case ELF::R_X86_64_GOT64: in relocationNeedsStub()
2024 case ELF::R_X86_64_GOTOFF64: in relocationNeedsStub()
2025 case ELF::R_X86_64_PC32: in relocationNeedsStub()
2026 case ELF::R_X86_64_PC64: in relocationNeedsStub()
2027 case ELF::R_X86_64_64: in relocationNeedsStub()