Home
last modified time | relevance | path

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

12345678910>>...14

/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonELFObjectWriter.cpp72 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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp233 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in getRelocType()
236 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in getRelocType()
240 ? setRTypes(ELF::R_MIPS_PC32, ELF::R_MIPS_64, ELF::R_MIPS_NONE) in getRelocType()
291 is64Bit() ? ELF::R_MIPS_64 : ELF::R_MIPS_NONE, in getRelocType()
326 return setRTypes(ELF::R_MIPS_GPREL16, ELF::R_MIPS_SUB, ELF::R_MIPS_HI16); in getRelocType()
328 return setRTypes(ELF::R_MICROMIPS_GPREL16, ELF::R_MICROMIPS_SUB, in getRelocType()
331 return setRTypes(ELF::R_MIPS_GPREL16, ELF::R_MIPS_SUB, ELF::R_MIPS_LO16); in getRelocType()
333 return setRTypes(ELF::R_MICROMIPS_GPREL16, ELF::R_MICROMIPS_SUB, in getRelocType()
554 case ELF::R_MIPS_16: in needsRelocateWithSymbol()
555 case ELF::R_MIPS_32: in needsRelocateWithSymbol()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFObjectWriter.cpp38 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()
154 Type = ELF::R_PPC_REL32; in getRelocType()
158 Type = ELF::R_PPC64_REL64; in getRelocType()
165 Type = ELF::R_PPC_ADDR24; in getRelocType()
204 Type = ELF::R_PPC_GOT16; in getRelocType()
457 Type = ELF::R_PPC_ADDR32; in getRelocType()
460 Type = ELF::R_PPC_ADDR16; in getRelocType()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp26 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter()
48 return ELF::R_SPARC_DISP32; in getRelocType()
71 case FK_Data_1: return ELF::R_SPARC_8; in getRelocType()
113 return ELF::R_SPARC_NONE; in getRelocType()
126 case ELF::R_SPARC_GOT10: in needsRelocateWithSymbol()
127 case ELF::R_SPARC_GOT13: in needsRelocateWithSymbol()
128 case ELF::R_SPARC_GOT22: in needsRelocateWithSymbol()
129 case ELF::R_SPARC_GOTDATA_HIX22: in needsRelocateWithSymbol()
130 case ELF::R_SPARC_GOTDATA_LOX10: in needsRelocateWithSymbol()
131 case ELF::R_SPARC_GOTDATA_OP_HIX22: in needsRelocateWithSymbol()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.cpp24 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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Object/
H A DELF.cpp25 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()
181 case ELF::EM_386: in getELFRelativeRelocationType()
[all …]
H A DRelocationResolver.cpp29 case ELF::R_X86_64_64: in supportsX86_64()
34 case ELF::R_X86_64_32: in supportsX86_64()
114 case ELF::R_MIPS_32: in supportsMips64()
115 case ELF::R_MIPS_64: in supportsMips64()
127 case ELF::R_MIPS_32: in resolveMips64()
129 case ELF::R_MIPS_64: in resolveMips64()
192 case ELF::R_390_32: in supportsSystemZ()
193 case ELF::R_390_64: in supportsSystemZ()
203 case ELF::R_390_32: in resolveSystemZ()
205 case ELF::R_390_64: in resolveSystemZ()
[all …]
H A DELFObjectFile.cpp105 case ELF::EF_MIPS_ARCH_1: in getMIPSFeatures()
107 case ELF::EF_MIPS_ARCH_2: in getMIPSFeatures()
110 case ELF::EF_MIPS_ARCH_3: in getMIPSFeatures()
113 case ELF::EF_MIPS_ARCH_4: in getMIPSFeatures()
116 case ELF::EF_MIPS_ARCH_5: in getMIPSFeatures()
119 case ELF::EF_MIPS_ARCH_32: in getMIPSFeatures()
122 case ELF::EF_MIPS_ARCH_64: in getMIPSFeatures()
348 case ELF::EM_MIPS: in getFeatures()
350 case ELF::EM_ARM: in getFeatures()
352 case ELF::EM_RISCV: in getFeatures()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMELFObjectWriter.cpp63 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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFObjectWriter.cpp78 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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRELFObjectWriter.cpp50 return ELF::R_AVR_8; in getRelocType()
65 return ELF::R_AVR_32; in getRelocType()
74 return ELF::R_AVR_16; in getRelocType()
82 return ELF::R_AVR_32; in getRelocType()
88 return ELF::R_AVR_16; in getRelocType()
90 return ELF::R_AVR_16_PM; in getRelocType()
116 return ELF::R_AVR_CALL; in getRelocType()
118 return ELF::R_AVR_LDI; in getRelocType()
120 return ELF::R_AVR_6; in getRelocType()
132 return ELF::R_AVR_8; in getRelocType()
[all …]
H A DAVRELFStreamer.cpp17 EFlags |= ELF::EF_AVR_ARCH_AVR1; in getEFlagsForFeatureSet()
19 EFlags |= ELF::EF_AVR_ARCH_AVR2; in getEFlagsForFeatureSet()
21 EFlags |= ELF::EF_AVR_ARCH_AVR25; in getEFlagsForFeatureSet()
23 EFlags |= ELF::EF_AVR_ARCH_AVR3; in getEFlagsForFeatureSet()
25 EFlags |= ELF::EF_AVR_ARCH_AVR31; in getEFlagsForFeatureSet()
27 EFlags |= ELF::EF_AVR_ARCH_AVR35; in getEFlagsForFeatureSet()
29 EFlags |= ELF::EF_AVR_ARCH_AVR4; in getEFlagsForFeatureSet()
31 EFlags |= ELF::EF_AVR_ARCH_AVR5; in getEFlagsForFeatureSet()
33 EFlags |= ELF::EF_AVR_ARCH_AVR51; in getEFlagsForFeatureSet()
35 EFlags |= ELF::EF_AVR_ARCH_AVR6; in getEFlagsForFeatureSet()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86ELFObjectWriter.cpp118 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()
261 return IsPCRel ? ELF::R_386_PC32 : ELF::R_386_32; in getRelocType32()
263 return IsPCRel ? ELF::R_386_PC16 : ELF::R_386_16; in getRelocType32()
265 return IsPCRel ? ELF::R_386_PC8 : ELF::R_386_8; in getRelocType32()
306 return ELF::R_386_PLT32; in getRelocType32()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/
H A DMCSectionELF.cpp72 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 DMCSymbolELF.cpp47 case ELF::STB_LOCAL: in setBinding()
50 case ELF::STB_GLOBAL: in setBinding()
53 case ELF::STB_WEAK: in setBinding()
97 case ELF::STT_NOTYPE: in setType()
100 case ELF::STT_OBJECT: in setType()
103 case ELF::STT_FUNC: in setType()
106 case ELF::STT_SECTION: in setType()
109 case ELF::STT_COMMON: in setType()
112 case ELF::STT_TLS: in setType()
146 assert(Visibility == ELF::STV_DEFAULT || Visibility == ELF::STV_INTERNAL || in setVisibility()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonDepArch.h52 {"generic", llvm::ELF::EF_HEXAGON_MACH_V5},
53 {"hexagonv5", llvm::ELF::EF_HEXAGON_MACH_V5},
64 {llvm::ELF::EF_HEXAGON_MACH_V5, "V5"},
65 {llvm::ELF::EF_HEXAGON_MACH_V55, "V55"},
66 {llvm::ELF::EF_HEXAGON_MACH_V60, "V60"},
67 {llvm::ELF::EF_HEXAGON_MACH_V62, "V62"},
68 {llvm::ELF::EF_HEXAGON_MACH_V65, "V65"},
69 {llvm::ELF::EF_HEXAGON_MACH_V66, "V66"},
70 {llvm::ELF::EF_HEXAGON_MACH_V67, "V67"},
71 {llvm::ELF::EF_HEXAGON_MACH_V67T, "V67T"},
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp43 return ELF::R_VE_PC_LO32; in getRelocType()
74 return ELF::R_VE_REFLONG; in getRelocType()
76 return ELF::R_VE_REFQUAD; in getRelocType()
78 return ELF::R_VE_REFLONG; in getRelocType()
80 return ELF::R_VE_HI32; in getRelocType()
82 return ELF::R_VE_LO32; in getRelocType()
109 return ELF::R_VE_NONE; in getRelocType()
122 case ELF::R_VE_GOT_HI32: in needsRelocateWithSymbol()
123 case ELF::R_VE_GOT_LO32: in needsRelocateWithSymbol()
124 case ELF::R_VE_GOTOFF_HI32: in needsRelocateWithSymbol()
[all …]
/freebsd-13.1/usr.bin/clang/lld/
H A DMakefile44 SRCS+= ELF/Arch/ARM.cpp
45 SRCS+= ELF/Arch/AVR.cpp
57 SRCS+= ELF/DWARF.cpp
58 SRCS+= ELF/Driver.cpp
60 SRCS+= ELF/EhFrame.cpp
61 SRCS+= ELF/ICF.cpp
64 SRCS+= ELF/LTO.cpp
66 SRCS+= ELF/MapFile.cpp
75 SRCS+= ELF/Target.cpp
76 SRCS+= ELF/Thunks.cpp
[all …]
/freebsd-13.1/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()
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 …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUTargetStreamer.cpp237 case ELF::STT_AMDGPU_HSA_KERNEL: in EmitAMDGPUSymbolType()
391 case ELF::ELFABIVERSION_AMDGPU_HSA_V2: in EmitAmdhsaKernelDescriptor()
393 case ELF::ELFABIVERSION_AMDGPU_HSA_V3: in EmitAmdhsaKernelDescriptor()
394 case ELF::ELFABIVERSION_AMDGPU_HSA_V4: in EmitAmdhsaKernelDescriptor()
511 NoteFlags = ELF::SHF_ALLOC; in EmitNote()
573 case ELF::ELFABIVERSION_AMDGPU_HSA_V2: in getEFlagsAMDHSA()
574 case ELF::ELFABIVERSION_AMDGPU_HSA_V3: in getEFlagsAMDHSA()
576 case ELF::ELFABIVERSION_AMDGPU_HSA_V4: in getEFlagsAMDHSA()
711 SymbolELF->setType(ELF::STT_OBJECT); in emitAMDGPULDS()
714 SymbolELF->setBinding(ELF::STB_GLOBAL); in emitAMDGPULDS()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCObjectWriter.cpp45 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()
70 case FK_Data_4: return ELF::R_390_TLS_LE32; in getTLSLEReloc()
71 case FK_Data_8: return ELF::R_390_TLS_LE64; in getTLSLEReloc()
79 case FK_Data_4: return ELF::R_390_TLS_LDO32; in getTLSLDOReloc()
98 case FK_Data_4: return ELF::R_390_TLS_GD32; in getTLSGDReloc()
99 case FK_Data_8: return ELF::R_390_TLS_GD64; in getTLSGDReloc()
136 return ELF::R_390_TLS_IEENT; in getRelocType()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp295 case ELF::R_X86_64_32: in resolveX86_64Relocation()
355 case ELF::R_386_32: { in resolveX86Relocation()
572 case ELF::R_ARM_NONE: in resolveARMRelocation()
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()
1294 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL || in processRelocationRef()
1330 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 || in processRelocationRef()
1432 if (r_type == ELF::R_MIPS_CALL16 || r_type == ELF::R_MIPS_GOT_PAGE in processRelocationRef()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/MC/MCParser/
H A DELFAsmParser.cpp94 ELF::SHF_WRITE | ELF::SHF_ALLOC, in ParseSectionDirectiveData()
115 ELF::SHF_TLS | ELF::SHF_WRITE, in ParseSectionDirectiveTData()
121 ELF::SHF_TLS | ELF::SHF_WRITE, in ParseSectionDirectiveTBSS()
126 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveDataRel()
137 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveEhFrame()
318 flags |= ELF::SHF_TLS; in parseSectionFlags()
527 Flags |= ELF::SHF_ALLOC | ELF::SHF_EXECINSTR; in ParseSectionArguments()
533 Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE; in ParseSectionArguments()
536 Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_TLS; in ParseSectionArguments()
605 Type = ELF::SHT_NOTE; in ParseSectionArguments()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp51 IsILP32 ? ELF::R_AARCH64_P32_##rtype : ELF::R_AARCH64_##rtype
130 return ELF::R_AARCH64_NONE; in getRelocType()
172 return ELF::R_AARCH64_NONE; in getRelocType()
189 return ELF::R_AARCH64_NONE; in getRelocType()
193 return ELF::R_AARCH64_NONE; in getRelocType()
197 return ELF::R_AARCH64_NONE; in getRelocType()
230 return ELF::R_AARCH64_NONE; in getRelocType()
245 return ELF::R_AARCH64_NONE; in getRelocType()
260 return ELF::R_AARCH64_NONE; in getRelocType()
320 return ELF::R_AARCH64_NONE; in getRelocType()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h360 (Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK || in isExportedToOtherDSO()
568 case ELF::SHN_ABS: in getSymbolAddress()
878 return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) && in isSectionBSS()
961 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
980 if (Type != ELF::SHT_REL && Type != ELF::SHT_RELA) in getRelocatedSection()
1236 case ELF::EM_68K: in getArch()
1238 case ELF::EM_386: in getArch()
1245 case ELF::EM_ARM: in getArch()
1247 case ELF::EM_AVR: in getArch()
1264 case ELF::EM_PPC: in getArch()
[all …]

12345678910>>...14