| /llvm-project-15.0.7/bolt/lib/Core/ |
| H A D | Relocation.cpp | 31 case ELF::R_X86_64_8: in isSupportedX86() 32 case ELF::R_X86_64_16: in isSupportedX86() 33 case ELF::R_X86_64_32: in isSupportedX86() 34 case ELF::R_X86_64_32S: in isSupportedX86() 35 case ELF::R_X86_64_64: in isSupportedX86() 36 case ELF::R_X86_64_PC8: in isSupportedX86() 37 case ELF::R_X86_64_PC32: in isSupportedX86() 38 case ELF::R_X86_64_PC64: in isSupportedX86() 99 case ELF::R_X86_64_8: in getSizeForTypeX86() 102 case ELF::R_X86_64_16: in getSizeForTypeX86() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Hexagon/MCTargetDesc/ |
| H A D | HexagonELFObjectWriter.cpp | 72 return IsPCRel ? ELF::R_HEX_32_PCREL : ELF::R_HEX_32; in getRelocType() 93 return ELF::R_HEX_16; in getRelocType() 98 return ELF::R_HEX_8; in getRelocType() 106 return ELF::R_HEX_LO16; in getRelocType() 110 return ELF::R_HEX_32; in getRelocType() 112 return ELF::R_HEX_16; in getRelocType() 114 return ELF::R_HEX_8; in getRelocType() 152 return ELF::R_HEX_9_X; in getRelocType() 154 return ELF::R_HEX_8_X; in getRelocType() 156 return ELF::R_HEX_7_X; in getRelocType() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Mips/MCTargetDesc/ |
| H A D | MipsELFObjectWriter.cpp | 235 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in getRelocType() 238 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in getRelocType() 242 ? setRTypes(ELF::R_MIPS_PC32, ELF::R_MIPS_64, ELF::R_MIPS_NONE) in getRelocType() 293 is64Bit() ? ELF::R_MIPS_64 : ELF::R_MIPS_NONE, in getRelocType() 328 return setRTypes(ELF::R_MIPS_GPREL16, ELF::R_MIPS_SUB, ELF::R_MIPS_HI16); in getRelocType() 330 return setRTypes(ELF::R_MICROMIPS_GPREL16, ELF::R_MICROMIPS_SUB, in getRelocType() 333 return setRTypes(ELF::R_MIPS_GPREL16, ELF::R_MIPS_SUB, ELF::R_MIPS_LO16); in getRelocType() 335 return setRTypes(ELF::R_MICROMIPS_GPREL16, ELF::R_MICROMIPS_SUB, in getRelocType() 556 case ELF::R_MIPS_16: in needsRelocateWithSymbol() 557 case ELF::R_MIPS_32: in needsRelocateWithSymbol() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/Sparc/MCTargetDesc/ |
| H A D | SparcELFObjectWriter.cpp | 26 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter() 51 return ELF::R_SPARC_DISP32; in getRelocType() 75 case FK_Data_1: return ELF::R_SPARC_8; in getRelocType() 122 return ELF::R_SPARC_NONE; in getRelocType() 135 case ELF::R_SPARC_GOT10: in needsRelocateWithSymbol() 136 case ELF::R_SPARC_GOT13: in needsRelocateWithSymbol() 137 case ELF::R_SPARC_GOT22: in needsRelocateWithSymbol() 138 case ELF::R_SPARC_GOTDATA_HIX22: in needsRelocateWithSymbol() 139 case ELF::R_SPARC_GOTDATA_LOX10: in needsRelocateWithSymbol() 140 case ELF::R_SPARC_GOTDATA_OP_HIX22: in needsRelocateWithSymbol() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/MCTargetDesc/ |
| H A D | PPCELFObjectWriter.cpp | 38 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, in PPCELFObjectWriter() 93 Type = ELF::R_PPC_REL24; in getRelocType() 108 Type = ELF::R_PPC_REL14; in getRelocType() 114 Type = ELF::R_PPC_REL16; in getRelocType() 155 Type = ELF::R_PPC_REL32; in getRelocType() 159 Type = ELF::R_PPC64_REL64; in getRelocType() 166 Type = ELF::R_PPC_ADDR24; in getRelocType() 205 Type = ELF::R_PPC_GOT16; in getRelocType() 459 Type = ELF::R_PPC_ADDR32; in getRelocType() 462 Type = ELF::R_PPC_ADDR16; in getRelocType() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Object/ |
| H A D | ELF.cpp | 25 case ELF::EM_68K: in getELFRelocationTypeName() 39 case ELF::EM_386: in getELFRelocationTypeName() 40 case ELF::EM_IAMCU: in getELFRelocationTypeName() 47 case ELF::EM_MIPS: in getELFRelocationTypeName() 61 case ELF::EM_ARM: in getELFRelocationTypeName() 76 case ELF::EM_AVR: in getELFRelocationTypeName() 97 case ELF::EM_PPC: in getELFRelocationTypeName() 141 case ELF::EM_BPF: in getELFRelocationTypeName() 155 case ELF::EM_VE: in getELFRelocationTypeName() 188 case ELF::EM_386: in getELFRelativeRelocationType() [all …]
|
| H A D | RelocationResolver.cpp | 44 case ELF::R_X86_64_64: in supportsX86_64() 132 case ELF::R_MIPS_32: in supportsMips64() 133 case ELF::R_MIPS_64: in supportsMips64() 145 case ELF::R_MIPS_32: in resolveMips64() 147 case ELF::R_MIPS_64: in resolveMips64() 210 case ELF::R_390_32: in supportsSystemZ() 211 case ELF::R_390_64: in supportsSystemZ() 221 case ELF::R_390_32: in resolveSystemZ() 223 case ELF::R_390_64: in resolveSystemZ() 279 case ELF::R_386_32: in supportsX86() [all …]
|
| H A D | ELFObjectFile.cpp | 103 case ELF::EF_MIPS_ARCH_1: in getMIPSFeatures() 105 case ELF::EF_MIPS_ARCH_2: in getMIPSFeatures() 108 case ELF::EF_MIPS_ARCH_3: in getMIPSFeatures() 111 case ELF::EF_MIPS_ARCH_4: in getMIPSFeatures() 114 case ELF::EF_MIPS_ARCH_5: in getMIPSFeatures() 117 case ELF::EF_MIPS_ARCH_32: in getMIPSFeatures() 346 case ELF::EM_MIPS: in getFeatures() 348 case ELF::EM_ARM: in getFeatures() 350 case ELF::EM_RISCV: in getFeatures() 359 case ELF::EM_AMDGPU: in tryGetCPUName() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/XCore/ |
| H A D | XCoreTargetObjectFile.cpp | 24 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 27 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 30 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 33 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize() 40 ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::XCORE_SHF_DP_SECTION); in Initialize() 43 ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION); in Initialize() 46 ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION); in Initialize() 49 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 4); in Initialize() 52 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 8); in Initialize() 55 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 16); in Initialize() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/ARM/MCTargetDesc/ |
| H A D | ARMELFObjectWriter.cpp | 63 case ELF::R_ARM_PREL31: in needsRelocateWithSymbol() 64 case ELF::R_ARM_ABS32: in needsRelocateWithSymbol() 91 return ELF::R_ARM_NONE; in GetRelocTypeInner() 163 return ELF::R_ARM_NONE; in GetRelocTypeInner() 169 return ELF::R_ARM_NONE; in GetRelocTypeInner() 171 return ELF::R_ARM_ABS8; in GetRelocTypeInner() 178 return ELF::R_ARM_NONE; in GetRelocTypeInner() 187 return ELF::R_ARM_NONE; in GetRelocTypeInner() 189 return ELF::R_ARM_NONE; in GetRelocTypeInner() 225 return ELF::R_ARM_JUMP24; in GetRelocTypeInner() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/RISCV/MCTargetDesc/ |
| H A D | RISCVELFObjectWriter.cpp | 78 return ELF::R_RISCV_JAL; in getRelocType() 111 return ELF::R_RISCV_NONE; in getRelocType() 114 return ELF::R_RISCV_NONE; in getRelocType() 117 return ELF::R_RISCV_NONE; in getRelocType() 122 return ELF::R_RISCV_32; in getRelocType() 124 return ELF::R_RISCV_64; in getRelocType() 126 return ELF::R_RISCV_HI20; in getRelocType() 144 return ELF::R_RISCV_SET6; in getRelocType() 146 return ELF::R_RISCV_SUB6; in getRelocType() 148 return ELF::R_RISCV_ADD8; in getRelocType() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AVR/MCTargetDesc/ |
| H A D | AVRELFObjectWriter.cpp | 47 return ELF::R_AVR_8; in getRelocType() 62 return ELF::R_AVR_32; in getRelocType() 71 return ELF::R_AVR_16; in getRelocType() 79 return ELF::R_AVR_32; in getRelocType() 85 return ELF::R_AVR_16; in getRelocType() 87 return ELF::R_AVR_16_PM; in getRelocType() 113 return ELF::R_AVR_CALL; in getRelocType() 115 return ELF::R_AVR_LDI; in getRelocType() 117 return ELF::R_AVR_6; in getRelocType() 129 return ELF::R_AVR_8; in getRelocType() [all …]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | sections.test | 22 # ELF: Sections [ 28 # ELF-NEXT: ] 36 # ELF-NEXT: } 44 # ELF-NEXT: ] 53 # ELF-NEXT: } 59 # ELF-NEXT: ] 68 # ELF-NEXT: } 74 # ELF-NEXT: ] 83 # ELF-NEXT: } 84 # ELF-NEXT: ] [all …]
|
| H A D | program-headers.test | 132 # ELF-LLVM-NEXT: } 145 # ELF-LLVM-NEXT: } 158 # ELF-LLVM-NEXT: } 173 # ELF-LLVM-NEXT: } 187 # ELF-LLVM-NEXT: } 199 # ELF-LLVM-NEXT: } 211 # ELF-LLVM-NEXT: } 404 # ELF-LLVM-NEXT: ] 406 --- !ELF 640 --- !ELF [all …]
|
| /llvm-project-15.0.7/llvm/test/Object/ |
| H A D | obj2yaml.test | 355 # ELF-MIPSEL-NEXT: Sections: 431 # ELF-MIPSEL-NEXT: Symbols: 476 # ELF-MIPSEL-NEXT: ... 528 # ELF-MIPS64EL-NEXT: Symbols: 548 # ELF-MIPS64EL-NEXT: ... 559 # ELF-X86-64-NEXT: Sections: 593 # ELF-X86-64-NEXT: Symbols: 616 --- !ELF 683 # ELF-AVR: FileHeader: 701 # ELF-AVR-NEXT: Sections: [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/ |
| H A D | MCSectionELF.cpp | 72 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection() 76 if (Flags & ELF::SHF_WRITE) in printSwitchToSection() 80 if (Flags & ELF::SHF_TLS) in printSwitchToSection() 87 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection() 89 if (Flags & ELF::SHF_EXCLUDE) in printSwitchToSection() 93 if (Flags & ELF::SHF_GROUP) in printSwitchToSection() 95 if (Flags & ELF::SHF_WRITE) in printSwitchToSection() 97 if (Flags & ELF::SHF_MERGE) in printSwitchToSection() 99 if (Flags & ELF::SHF_STRINGS) in printSwitchToSection() 101 if (Flags & ELF::SHF_TLS) in printSwitchToSection() [all …]
|
| H A D | MCSymbolELF.cpp | 46 case ELF::STB_LOCAL: in setBinding() 49 case ELF::STB_GLOBAL: in setBinding() 52 case ELF::STB_WEAK: in setBinding() 96 case ELF::STT_NOTYPE: in setType() 99 case ELF::STT_OBJECT: in setType() 102 case ELF::STT_FUNC: in setType() 105 case ELF::STT_SECTION: in setType() 108 case ELF::STT_COMMON: in setType() 111 case ELF::STT_TLS: in setType() 145 assert(Visibility == ELF::STV_DEFAULT || Visibility == ELF::STV_INTERNAL || in setVisibility() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/VE/MCTargetDesc/ |
| H A D | VEELFObjectWriter.cpp | 51 return ELF::R_VE_NONE; in getRelocType() 83 return ELF::R_VE_NONE; in getRelocType() 86 return ELF::R_VE_NONE; in getRelocType() 89 return ELF::R_VE_NONE; in getRelocType() 99 return ELF::R_VE_NONE; in getRelocType() 101 return ELF::R_VE_HI32; in getRelocType() 103 return ELF::R_VE_LO32; in getRelocType() 107 return ELF::R_VE_NONE; in getRelocType() 111 return ELF::R_VE_NONE; in getRelocType() 134 return ELF::R_VE_NONE; in getRelocType() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/CSKY/MCTargetDesc/ |
| H A D | CSKYELFObjectWriter.cpp | 48 return ELF::R_CKCORE_NONE; in getRelocType() 51 return ELF::R_CKCORE_PCREL32; in getRelocType() 73 return ELF::R_CKCORE_NONE; in getRelocType() 76 return ELF::R_CKCORE_NONE; in getRelocType() 79 return ELF::R_CKCORE_NONE; in getRelocType() 86 return ELF::R_CKCORE_GOT32; in getRelocType() 90 return ELF::R_CKCORE_PLT32; in getRelocType() 113 return ELF::R_CKCORE_NONE; in getRelocType() 124 return ELF::R_CKCORE_NONE; in getRelocType() 127 return ELF::R_CKCORE_NONE; in getRelocType() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/MCTargetDesc/ |
| H A D | X86ELFObjectWriter.cpp | 118 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64() 120 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64() 124 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64() 126 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64() 132 return IsPCRel ? ELF::R_X86_64_GOTPC64 : ELF::R_X86_64_GOT64; in getRelocType64() 134 return IsPCRel ? ELF::R_X86_64_GOTPC32 : ELF::R_X86_64_GOT32; in getRelocType64() 264 return IsPCRel ? ELF::R_386_PC32 : ELF::R_386_32; in getRelocType32() 266 return IsPCRel ? ELF::R_386_PC16 : ELF::R_386_16; in getRelocType32() 268 return IsPCRel ? ELF::R_386_PC8 : ELF::R_386_8; in getRelocType32() 309 return ELF::R_386_PLT32; in getRelocType32() [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/MCTargetDesc/ |
| H A D | AMDGPUTargetStreamer.cpp | 253 case ELF::STT_AMDGPU_HSA_KERNEL: in EmitAMDGPUSymbolType() 413 case ELF::ELFABIVERSION_AMDGPU_HSA_V2: in EmitAmdhsaKernelDescriptor() 415 case ELF::ELFABIVERSION_AMDGPU_HSA_V3: in EmitAmdhsaKernelDescriptor() 416 case ELF::ELFABIVERSION_AMDGPU_HSA_V4: in EmitAmdhsaKernelDescriptor() 417 case ELF::ELFABIVERSION_AMDGPU_HSA_V5: in EmitAmdhsaKernelDescriptor() 536 NoteFlags = ELF::SHF_ALLOC; in EmitNote() 598 case ELF::ELFABIVERSION_AMDGPU_HSA_V2: in getEFlagsAMDHSA() 599 case ELF::ELFABIVERSION_AMDGPU_HSA_V3: in getEFlagsAMDHSA() 601 case ELF::ELFABIVERSION_AMDGPU_HSA_V4: in getEFlagsAMDHSA() 602 case ELF::ELFABIVERSION_AMDGPU_HSA_V5: in getEFlagsAMDHSA() [all …]
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
| H A D | RuntimeDyldELFMips.cpp | 68 case ELF::R_MIPS_32: in evaluateMIPS32Relocation() 70 case ELF::R_MIPS_26: in evaluateMIPS32Relocation() 72 case ELF::R_MIPS_HI16: in evaluateMIPS32Relocation() 75 case ELF::R_MIPS_LO16: in evaluateMIPS32Relocation() 130 case ELF::R_MIPS_32: in evaluateMIPS64Relocation() 131 case ELF::R_MIPS_64: in evaluateMIPS64Relocation() 133 case ELF::R_MIPS_26: in evaluateMIPS64Relocation() 139 case ELF::R_MIPS_SUB: in evaluateMIPS64Relocation() 248 case ELF::R_MIPS_26: in applyMIPSRelocation() 253 case ELF::R_MIPS_32: in applyMIPSRelocation() [all …]
|
| /llvm-project-15.0.7/llvm/test/MC/Mips/ |
| H A D | expansion-jal-sym-pic.s | 64 # ELF-O32-NEXT: 03 20 f8 09 jalr $25 140 # ELF-O32-NEXT: 00 00 00 00 nop 153 # ELF-XO32-NEXT: 00 00 00 00 nop 305 # ELF-O32-NEXT: 00 00 00 00 nop 322 # ELF-XO32-NEXT: 00 00 00 00 nop 485 # ELF-O32-NEXT: 00 00 00 00 nop 502 # ELF-XO32-NEXT: 00 00 00 00 nop 652 # ELF-XO32-NEXT: 00 00 00 00 nop 783 # ELF-O32-NEXT: 00 00 00 00 nop 796 # ELF-XO32-NEXT: 00 00 00 00 nop [all …]
|
| /llvm-project-15.0.7/llvm/test/CodeGen/AMDGPU/ |
| H A D | elf-notes.ll | 20 ; OSABI-UNK-ELF: AMD HSA ISA Name: 37 ; OSABI-HSA-ELF: AMD HSA ISA Name: 40 ; OSABI-HSA-ELF: HSA Metadata: 41 ; OSABI-HSA-ELF: --- 42 ; OSABI-HSA-ELF: Version: [ 1, 0 ] 43 ; OSABI-HSA-ELF: Kernels: 46 ; OSABI-HSA-ELF: CodeProps: 53 ; OSABI-HSA-ELF: ... 67 ; OSABI-PAL-ELF: AMDGPU Metadata: 70 ; OSABI-PAL-ELF: .cs: [all …]
|
| /llvm-project-15.0.7/llvm/lib/Target/SystemZ/MCTargetDesc/ |
| H A D | SystemZMCObjectWriter.cpp | 45 case FK_Data_1: return ELF::R_390_8; in getAbsoluteReloc() 46 case FK_Data_2: return ELF::R_390_16; in getAbsoluteReloc() 47 case FK_Data_4: return ELF::R_390_32; in getAbsoluteReloc() 48 case FK_Data_8: return ELF::R_390_64; in getAbsoluteReloc() 72 case FK_Data_4: return ELF::R_390_TLS_LE32; in getTLSLEReloc() 73 case FK_Data_8: return ELF::R_390_TLS_LE64; in getTLSLEReloc() 81 case FK_Data_4: return ELF::R_390_TLS_LDO32; in getTLSLDOReloc() 100 case FK_Data_4: return ELF::R_390_TLS_GD32; in getTLSGDReloc() 101 case FK_Data_8: return ELF::R_390_TLS_GD64; in getTLSGDReloc() 138 return ELF::R_390_TLS_IEENT; in getRelocType() [all …]
|