Home
last modified time | relevance | path

Searched refs:ELF (Results 1 – 25 of 385) sorted by relevance

12345678910>>...16

/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp124 if (Type == ELF::R_MIPS_HI16) in getMatchingLoType()
125 return ELF::R_MIPS_LO16; in getMatchingLoType()
126 if (Type == ELF::R_MICROMIPS_HI16) in getMatchingLoType()
127 return ELF::R_MICROMIPS_LO16; in getMatchingLoType()
128 if (Type == ELF::R_MIPS16_HI16) in getMatchingLoType()
129 return ELF::R_MIPS16_LO16; in getMatchingLoType()
131 if (Reloc.Symbol && Reloc.Symbol->getBinding() != ELF::STB_LOCAL) in getMatchingLoType()
132 return ELF::R_MIPS_NONE; in getMatchingLoType()
134 if (Type == ELF::R_MIPS_GOT16) in getMatchingLoType()
135 return ELF::R_MIPS_LO16; in getMatchingLoType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/
H A DLoongArchMCAsmInfo.cpp31 case ELF::R_LARCH_B16: in getLoongArchSpecifierName()
33 case ELF::R_LARCH_B21: in getLoongArchSpecifierName()
35 case ELF::R_LARCH_ABS_HI20: in getLoongArchSpecifierName()
37 case ELF::R_LARCH_ABS_LO12: in getLoongArchSpecifierName()
39 case ELF::R_LARCH_ABS64_LO20: in getLoongArchSpecifierName()
41 case ELF::R_LARCH_ABS64_HI12: in getLoongArchSpecifierName()
43 case ELF::R_LARCH_PCALA_HI20: in getLoongArchSpecifierName()
45 case ELF::R_LARCH_PCALA_LO12: in getLoongArchSpecifierName()
47 case ELF::R_LARCH_PCALA64_LO20: in getLoongArchSpecifierName()
49 case ELF::R_LARCH_PCALA64_HI12: in getLoongArchSpecifierName()
[all …]
H A DLoongArchELFObjectWriter.cpp41 : MCELFObjectTargetWriter(Is64Bit, OSABI, ELF::EM_LOONGARCH, in LoongArchELFObjectWriter()
51 case ELF::R_LARCH_TLS_LE_HI20: in getRelocType()
52 case ELF::R_LARCH_TLS_IE_PC_HI20: in getRelocType()
53 case ELF::R_LARCH_TLS_IE_HI20: in getRelocType()
54 case ELF::R_LARCH_TLS_LD_PC_HI20: in getRelocType()
55 case ELF::R_LARCH_TLS_LD_HI20: in getRelocType()
56 case ELF::R_LARCH_TLS_GD_PC_HI20: in getRelocType()
57 case ELF::R_LARCH_TLS_GD_HI20: in getRelocType()
58 case ELF::R_LARCH_TLS_DESC_PC_HI20: in getRelocType()
59 case ELF::R_LARCH_TLS_DESC_HI20: in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonELFObjectWriter.cpp37 : MCELFObjectTargetWriter(/*Is64bit*/ false, OSABI, ELF::EM_HEXAGON, in HexagonELFObjectWriter()
54 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
66 return ELF::R_HEX_DTPREL_32; in getRelocType()
68 return ELF::R_HEX_GOT_32; in getRelocType()
70 return ELF::R_HEX_GOTREL_32; in getRelocType()
72 return ELF::R_HEX_GD_GOT_32; in getRelocType()
74 return ELF::R_HEX_IE_32; in getRelocType()
76 return ELF::R_HEX_IE_GOT_32; in getRelocType()
78 return ELF::R_HEX_LD_GOT_32; in getRelocType()
80 return ELF::R_HEX_32_PCREL; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcMCExpr.cpp29 case ELF::R_SPARC_LO10: return "lo"; in getSpecifierName()
30 case ELF::R_SPARC_HI22: return "hi"; in getSpecifierName()
31 case ELF::R_SPARC_H44: return "h44"; in getSpecifierName()
32 case ELF::R_SPARC_M44: return "m44"; in getSpecifierName()
33 case ELF::R_SPARC_L44: return "l44"; in getSpecifierName()
34 case ELF::R_SPARC_HH22: return "hh"; in getSpecifierName()
35 case ELF::R_SPARC_HM10: return "hm"; in getSpecifierName()
36 case ELF::R_SPARC_LM22: return "lm"; in getSpecifierName()
38 case ELF::R_SPARC_PC22: return "hi"; in getSpecifierName()
39 case ELF::R_SPARC_PC10: return "lo"; in getSpecifierName()
[all …]
H A DSparcELFObjectWriter.cpp28 Is64Bit ? ELF::EM_SPARCV9 in SparcELFObjectWriter()
29 : (IsV8Plus ? ELF::EM_SPARC32PLUS : ELF::EM_SPARC), in SparcELFObjectWriter()
46 case ELF::R_SPARC_TLS_GD_HI22: in getRelocType()
47 case ELF::R_SPARC_TLS_GD_LO10: in getRelocType()
48 case ELF::R_SPARC_TLS_GD_ADD: in getRelocType()
49 case ELF::R_SPARC_TLS_LDM_HI22: in getRelocType()
50 case ELF::R_SPARC_TLS_LDM_LO10: in getRelocType()
51 case ELF::R_SPARC_TLS_LDM_ADD: in getRelocType()
52 case ELF::R_SPARC_TLS_LDO_HIX22: in getRelocType()
53 case ELF::R_SPARC_TLS_LDO_LOX10: in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFObjectWriter.cpp37 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, in PPCELFObjectWriter()
90 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
110 Type = ELF::R_PPC_REL24; in getRelocType()
113 Type = ELF::R_PPC_PLTREL24; in getRelocType()
116 Type = ELF::R_PPC_LOCAL24PC; in getRelocType()
119 Type = ELF::R_PPC64_REL24_NOTOC; in getRelocType()
125 Type = ELF::R_PPC_REL14; in getRelocType()
131 return ELF::R_PPC_NONE; in getRelocType()
133 return ELF::R_PPC_REL16; in getRelocType()
135 return ELF::R_PPC_REL16_LO; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMELFObjectWriter.cpp47 ELF::EM_ARM, in ARMELFObjectWriter()
66 case ELF::R_ARM_PREL31: in needsRelocateWithSymbol()
67 case ELF::R_ARM_ABS32: in needsRelocateWithSymbol()
81 if (getOSABI() != ELF::ELFOSABI_ARM_FDPIC) in getRelocType()
84 object::getELFRelocationTypeName(ELF::EM_ARM, Type) + in getRelocType()
101 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
111 return ELF::R_ARM_NONE; in getRelocType()
117 return ELF::R_ARM_NONE; in getRelocType()
123 return ELF::R_ARM_BASE_PREL; in getRelocType()
125 return ELF::R_ARM_REL32; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DRelocationResolver.cpp41 case ELF::R_X86_64_NONE: in supportsX86_64()
42 case ELF::R_X86_64_64: in supportsX86_64()
43 case ELF::R_X86_64_DTPOFF32: in supportsX86_64()
44 case ELF::R_X86_64_DTPOFF64: in supportsX86_64()
45 case ELF::R_X86_64_PC32: in supportsX86_64()
46 case ELF::R_X86_64_PC64: in supportsX86_64()
47 case ELF::R_X86_64_32: in supportsX86_64()
48 case ELF::R_X86_64_32S: in supportsX86_64()
58 case ELF::R_X86_64_NONE: in resolveX86_64()
60 case ELF::R_X86_64_64: in resolveX86_64()
[all …]
H A DELFObjectFile.cpp41 {"None", "NOTYPE", ELF::STT_NOTYPE},
42 {"Object", "OBJECT", ELF::STT_OBJECT},
43 {"Function", "FUNC", ELF::STT_FUNC},
44 {"Section", "SECTION", ELF::STT_SECTION},
45 {"File", "FILE", ELF::STT_FILE},
46 {"Common", "COMMON", ELF::STT_COMMON},
47 {"TLS", "TLS", ELF::STT_TLS},
51 {"GNU_IFunc", "IFUNC", ELF::STT_GNU_IFUNC},
82 if (Ident.first == ELF::ELFCLASS32) { in createELFObjectFile()
83 if (Ident.second == ELF::ELFDATA2LSB) in createELFObjectFile()
[all …]
H A DELF.cpp23 #define ELF_RELOC(name, value) STRINGIFY_ENUM_CASE(ELF, name)
28 case ELF::EM_68K: in getELFRelocationTypeName()
35 case ELF::EM_X86_64: in getELFRelocationTypeName()
42 case ELF::EM_386: in getELFRelocationTypeName()
43 case ELF::EM_IAMCU: in getELFRelocationTypeName()
50 case ELF::EM_MIPS: in getELFRelocationTypeName()
57 case ELF::EM_AARCH64: in getELFRelocationTypeName()
64 case ELF::EM_ARM: in getELFRelocationTypeName()
71 case ELF::EM_ARC_COMPACT: in getELFRelocationTypeName()
72 case ELF::EM_ARC_COMPACT2: in getELFRelocationTypeName()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.cpp23 BSSSection = Ctx.getELFSection(".dp.bss", ELF::SHT_NOBITS, in Initialize()
24 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize()
25 ELF::XCORE_SHF_DP_SECTION); in Initialize()
26 BSSSectionLarge = Ctx.getELFSection(".dp.bss.large", ELF::SHT_NOBITS, in Initialize()
27 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize()
28 ELF::XCORE_SHF_DP_SECTION); in Initialize()
29 DataSection = Ctx.getELFSection(".dp.data", ELF::SHT_PROGBITS, in Initialize()
30 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize()
31 ELF::XCORE_SHF_DP_SECTION); in Initialize()
32 DataSectionLarge = Ctx.getELFSection(".dp.data.large", ELF::SHT_PROGBITS, in Initialize()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRELFObjectWriter.cpp34 : MCELFObjectTargetWriter(false, OSABI, ELF::EM_AVR, true) {} in AVRELFObjectWriter()
46 return ELF::R_AVR_8; in getRelocType()
48 return ELF::R_AVR_DIFF8; in getRelocType()
50 return ELF::R_AVR_8_LO8; in getRelocType()
52 return ELF::R_AVR_8_HI8; in getRelocType()
54 return ELF::R_AVR_8_HLO8; in getRelocType()
61 return ELF::R_AVR_32; in getRelocType()
63 return ELF::R_AVR_DIFF32; in getRelocType()
70 return ELF::R_AVR_16; in getRelocType()
73 return ELF::R_AVR_16_PM; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp26 : MCELFObjectTargetWriter(/* Is64Bit */ true, OSABI, ELF::EM_VE, in VEELFObjectWriter()
48 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
55 return ELF::R_VE_PC_LO32; in getRelocType()
62 return ELF::R_VE_NONE; in getRelocType()
66 return ELF::R_VE_NONE; in getRelocType()
70 return ELF::R_VE_NONE; in getRelocType()
72 return ELF::R_VE_SREL32; in getRelocType()
76 return ELF::R_VE_NONE; in getRelocType()
79 return ELF::R_VE_SREL32; in getRelocType()
81 return ELF::R_VE_PC_HI32; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/MC/
H A DMCSectionELF.cpp70 !(Flags & ELF::SHF_MERGE)) { in printSwitchToSection()
71 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection()
73 if (Flags & ELF::SHF_EXECINSTR) in printSwitchToSection()
75 if (Flags & ELF::SHF_WRITE) in printSwitchToSection()
77 if (Flags & ELF::SHF_EXCLUDE) in printSwitchToSection()
79 if (Flags & ELF::SHF_TLS) in printSwitchToSection()
86 if (Flags & ELF::SHF_ALLOC) in printSwitchToSection()
88 if (Flags & ELF::SHF_EXCLUDE) in printSwitchToSection()
90 if (Flags & ELF::SHF_EXECINSTR) in printSwitchToSection()
92 if (Flags & ELF::SHF_WRITE) in printSwitchToSection()
[all …]
H A DMCSymbolELF.cpp49 case ELF::STB_LOCAL: in setBinding()
52 case ELF::STB_GLOBAL: in setBinding()
55 case ELF::STB_WEAK: in setBinding()
58 case ELF::STB_GNU_UNIQUE: in setBinding()
73 return ELF::STB_LOCAL; in getBinding()
75 return ELF::STB_GLOBAL; in getBinding()
77 return ELF::STB_WEAK; in getBinding()
79 return ELF::STB_GNU_UNIQUE; in getBinding()
84 return ELF::STB_LOCAL; in getBinding()
86 return ELF::STB_GLOBAL; in getBinding()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFObjectWriter.cpp43 : MCELFObjectTargetWriter(Is64Bit, OSABI, ELF::EM_RISCV, in RISCVELFObjectWriter()
54 case ELF::R_RISCV_TPREL_HI20: in getRelocType()
55 case ELF::R_RISCV_TLS_GOT_HI20: in getRelocType()
56 case ELF::R_RISCV_TLS_GD_HI20: in getRelocType()
57 case ELF::R_RISCV_TLSDESC_HI20: in getRelocType()
59 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
61 case ELF::R_RISCV_PLT32: in getRelocType()
62 case ELF::R_RISCV_GOT32_PCREL: in getRelocType()
67 return ELF::R_RISCV_NONE; in getRelocType()
81 return ELF::R_RISCV_NONE; in getRelocType()
[all …]
H A DRISCVMCExpr.cpp32 .Case("hi", ELF::R_RISCV_HI20) in parseSpecifierName()
34 .Case("pcrel_hi", ELF::R_RISCV_PCREL_HI20) in parseSpecifierName()
35 .Case("got_pcrel_hi", ELF::R_RISCV_GOT_HI20) in parseSpecifierName()
37 .Case("tprel_hi", ELF::R_RISCV_TPREL_HI20) in parseSpecifierName()
38 .Case("tprel_add", ELF::R_RISCV_TPREL_ADD) in parseSpecifierName()
39 .Case("tls_ie_pcrel_hi", ELF::R_RISCV_TLS_GOT_HI20) in parseSpecifierName()
40 .Case("tls_gd_pcrel_hi", ELF::R_RISCV_TLS_GD_HI20) in parseSpecifierName()
41 .Case("tlsdesc_hi", ELF::R_RISCV_TLSDESC_HI20) in parseSpecifierName()
42 .Case("tlsdesc_load_lo", ELF::R_RISCV_TLSDESC_LOAD_LO12) in parseSpecifierName()
43 .Case("tlsdesc_add_lo", ELF::R_RISCV_TLSDESC_ADD_LO12) in parseSpecifierName()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYELFObjectWriter.cpp27 : MCELFObjectTargetWriter(false, OSABI, ELF::EM_CSKY, true){}; in CSKYELFObjectWriter()
52 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
63 return ELF::R_CKCORE_NONE; in getRelocType()
65 return ELF::R_CKCORE_PCREL32; in getRelocType()
67 return ELF::R_CKCORE_PCREL_IMM16_4; in getRelocType()
69 return ELF::R_CKCORE_PCREL_IMM8_4; in getRelocType()
71 return ELF::R_CKCORE_PCREL_IMM26_2; in getRelocType()
73 return ELF::R_CKCORE_PCREL_IMM18_2; in getRelocType()
75 return ELF::R_CKCORE_PCREL_IMM16_2; in getRelocType()
77 return ELF::R_CKCORE_PCREL_IMM10_2; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86ELFObjectWriter.cpp57 (EMachine != ELF::EM_386) && in X86ELFObjectWriter()
58 (EMachine != ELF::EM_IAMCU)) {} in X86ELFObjectWriter()
118 return ELF::R_X86_64_NONE; in getRelocType64()
121 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64()
123 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64()
125 return ELF::R_X86_64_32S; in getRelocType64()
127 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64()
129 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64()
135 return IsPCRel ? ELF::R_X86_64_GOTPC64 : ELF::R_X86_64_GOT64; in getRelocType64()
137 return IsPCRel ? ELF::R_X86_64_GOTPC32 : ELF::R_X86_64_GOT32; in getRelocType64()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUTargetStreamer.cpp59 case ELF::EF_AMDGPU_MACH_R600_R600: AK = GK_R600; break; in getArchNameFromElfMach()
60 case ELF::EF_AMDGPU_MACH_R600_R630: AK = GK_R630; break; in getArchNameFromElfMach()
61 case ELF::EF_AMDGPU_MACH_R600_RS880: AK = GK_RS880; break; in getArchNameFromElfMach()
62 case ELF::EF_AMDGPU_MACH_R600_RV670: AK = GK_RV670; break; in getArchNameFromElfMach()
63 case ELF::EF_AMDGPU_MACH_R600_RV710: AK = GK_RV710; break; in getArchNameFromElfMach()
64 case ELF::EF_AMDGPU_MACH_R600_RV730: AK = GK_RV730; break; in getArchNameFromElfMach()
65 case ELF::EF_AMDGPU_MACH_R600_RV770: AK = GK_RV770; break; in getArchNameFromElfMach()
66 case ELF::EF_AMDGPU_MACH_R600_CEDAR: AK = GK_CEDAR; break; in getArchNameFromElfMach()
67 case ELF::EF_AMDGPU_MACH_R600_CYPRESS: AK = GK_CYPRESS; break; in getArchNameFromElfMach()
68 case ELF::EF_AMDGPU_MACH_R600_JUNIPER: AK = GK_JUNIPER; break; in getArchNameFromElfMach()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/M68k/MCTargetDesc/
H A DM68kELFObjectWriter.cpp42 : MCELFObjectTargetWriter(false, OSABI, ELF::EM_68K, /* RELA */ true) {} in M68kELFObjectWriter()
74 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
87 return ELF::R_68K_TLS_GD32; in getRelocType()
89 return ELF::R_68K_TLS_GD16; in getRelocType()
91 return ELF::R_68K_TLS_GD8; in getRelocType()
97 return ELF::R_68K_TLS_LDM32; in getRelocType()
99 return ELF::R_68K_TLS_LDM16; in getRelocType()
101 return ELF::R_68K_TLS_LDM8; in getRelocType()
107 return ELF::R_68K_TLS_LDO32; in getRelocType()
109 return ELF::R_68K_TLS_LDO16; in getRelocType()
[all …]
/freebsd/usr.bin/clang/lld/
H A DMakefile19 CFLAGS+= -I${LLD_SRCS}/ELF
38 SRCS+= ELF/AArch64ErrataFix.cpp
39 SRCS+= ELF/ARMErrataFix.cpp
40 SRCS+= ELF/Arch/AArch64.cpp
41 SRCS+= ELF/Arch/AMDGPU.cpp
42 SRCS+= ELF/Arch/ARM.cpp
43 SRCS+= ELF/Arch/AVR.cpp
44 SRCS+= ELF/Arch/Hexagon.cpp
45 SRCS+= ELF/Arch/LoongArch.cpp
46 SRCS+= ELF/Arch/MSP430.cpp
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldELFMips.cpp68 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()
77 case ELF::R_MIPS_PC32: { in evaluateMIPS32Relocation()
81 case ELF::R_MIPS_PC16: { in evaluateMIPS32Relocation()
85 case ELF::R_MIPS_PC19_S2: { in evaluateMIPS32Relocation()
89 case ELF::R_MIPS_PC21_S2: { in evaluateMIPS32Relocation()
93 case ELF::R_MIPS_PC26_S2: { in evaluateMIPS32Relocation()
97 case ELF::R_MIPS_PCHI16: { in evaluateMIPS32Relocation()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp50 : MCELFObjectTargetWriter(/*Is64Bit*/ !IsILP32, OSABI, ELF::EM_AARCH64, in AArch64ELFObjectWriter()
55 IsILP32 ? ELF::R_AARCH64_P32_##rtype : ELF::R_AARCH64_##rtype
100 cast<MCSymbolELF>(SA)->setType(ELF::STT_TLS); in getRelocType()
115 return ELF::R_AARCH64_NONE; in getRelocType()
126 return ELF::R_AARCH64_NONE; in getRelocType()
128 return ELF::R_AARCH64_PREL64; in getRelocType()
134 return ELF::R_AARCH64_NONE; in getRelocType()
136 return ELF::R_AARCH64_AUTH_GOT_ADR_PREL_LO21; in getRelocType()
149 return ELF::R_AARCH64_NONE; in getRelocType()
151 return ELF::R_AARCH64_ADR_PREL_PG_HI21_NC; in getRelocType()
[all …]

12345678910>>...16