Home
last modified time | relevance | path

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

12345678910>>...15

/freebsd-12.1/contrib/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonELFObjectWriter.cpp73 return IsPCRel ? ELF::R_HEX_32_PCREL : ELF::R_HEX_32; in getRelocType()
94 return ELF::R_HEX_16; in getRelocType()
99 return ELF::R_HEX_8; in getRelocType()
107 return ELF::R_HEX_LO16; in getRelocType()
111 return ELF::R_HEX_32; in getRelocType()
113 return ELF::R_HEX_16; in getRelocType()
115 return ELF::R_HEX_8; in getRelocType()
153 return ELF::R_HEX_9_X; in getRelocType()
155 return ELF::R_HEX_8_X; in getRelocType()
157 return ELF::R_HEX_7_X; in getRelocType()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp162 return ELF::R_MIPS_NONE; in getMatchingLoType()
234 return IsPCRel ? ELF::R_MIPS_PC16 : ELF::R_MIPS_16; in getRelocType()
237 return IsPCRel ? ELF::R_MIPS_PC32 : ELF::R_MIPS_32; in getRelocType()
548 case ELF::R_MIPS_NONE: in needsRelocateWithSymbol()
580 case ELF::R_MIPS_16: in needsRelocateWithSymbol()
581 case ELF::R_MIPS_32: in needsRelocateWithSymbol()
586 case ELF::R_MIPS_26: in needsRelocateWithSymbol()
587 case ELF::R_MIPS_64: in needsRelocateWithSymbol()
590 case ELF::R_MIPS_SUB: in needsRelocateWithSymbol()
636 case ELF::R_MIPS_NUM: in needsRelocateWithSymbol()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFObjectWriter.cpp39 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, in PPCELFObjectWriter()
90 Type = ELF::R_PPC_REL24; in getRelocType()
102 Type = ELF::R_PPC_REL14; in getRelocType()
108 Type = ELF::R_PPC_REL16; in getRelocType()
127 Type = ELF::R_PPC_REL32; in getRelocType()
131 Type = ELF::R_PPC64_REL64; in getRelocType()
138 Type = ELF::R_PPC_ADDR24; in getRelocType()
177 Type = ELF::R_PPC_GOT16; in getRelocType()
415 Type = ELF::R_PPC_ADDR32; in getRelocType()
418 Type = ELF::R_PPC_ADDR16; in getRelocType()
[all …]
/freebsd-12.1/contrib/llvm/lib/Object/
H A DELF.cpp26 case ELF::EM_X86_64: in getELFRelocationTypeName()
33 case ELF::EM_386: in getELFRelocationTypeName()
34 case ELF::EM_IAMCU: in getELFRelocationTypeName()
41 case ELF::EM_MIPS: in getELFRelocationTypeName()
55 case ELF::EM_ARM: in getELFRelocationTypeName()
70 case ELF::EM_AVR: in getELFRelocationTypeName()
91 case ELF::EM_PPC: in getELFRelocationTypeName()
135 case ELF::EM_BPF: in getELFRelocationTypeName()
161 case ELF::EM_386: in getELFRelativeRelocationType()
168 case ELF::EM_ARM: in getELFRelativeRelocationType()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp27 Is64Bit ? ELF::EM_SPARCV9 : ELF::EM_SPARC, in SparcELFObjectWriter()
49 return ELF::R_SPARC_DISP32; in getRelocType()
72 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-12.1/contrib/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.cpp25 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize()
28 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize()
31 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize()
34 ELF::SHF_ALLOC | ELF::SHF_WRITE | in Initialize()
41 ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::XCORE_SHF_DP_SECTION); in Initialize()
44 ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION); in Initialize()
47 ELF::SHF_ALLOC | ELF::XCORE_SHF_CP_SECTION); in Initialize()
50 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 4, ""); in Initialize()
53 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 8, ""); in Initialize()
56 ELF::SHF_ALLOC | ELF::SHF_MERGE | ELF::XCORE_SHF_CP_SECTION, 16, ""); in Initialize()
[all …]
/freebsd-12.1/contrib/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()
81 return ELF::R_AVR_32; in getRelocType()
87 return ELF::R_AVR_16; in getRelocType()
89 return ELF::R_AVR_16_PM; in getRelocType()
115 return ELF::R_AVR_CALL; in getRelocType()
117 return ELF::R_AVR_LDI; in getRelocType()
119 return ELF::R_AVR_6; in getRelocType()
131 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-12.1/contrib/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMELFObjectWriter.cpp64 case ELF::R_ARM_PREL31: in needsRelocateWithSymbol()
65 case ELF::R_ARM_ABS32: in needsRelocateWithSymbol()
89 return ELF::R_ARM_NONE; in GetRelocTypeInner()
107 return ELF::R_ARM_CALL; in GetRelocTypeInner()
111 return ELF::R_ARM_CALL; in GetRelocTypeInner()
146 return ELF::R_ARM_NONE; in GetRelocTypeInner()
152 return ELF::R_ARM_ABS8; in GetRelocTypeInner()
159 return ELF::R_ARM_ABS16; in GetRelocTypeInner()
166 return ELF::R_ARM_NONE; in GetRelocTypeInner()
176 return ELF::R_ARM_ABS32; in GetRelocTypeInner()
[all …]
/freebsd-12.1/contrib/llvm/lib/MC/
H A DMCSymbolELF.cpp44 if (getType() == ELF::STT_SECTION && Binding != ELF::STB_LOCAL) in setBinding()
50 case ELF::STB_LOCAL: in setBinding()
53 case ELF::STB_GLOBAL: in setBinding()
56 case ELF::STB_WEAK: in setBinding()
97 if (Type == ELF::STT_SECTION && getBinding() != ELF::STB_LOCAL) in setType()
102 case ELF::STT_NOTYPE: in setType()
105 case ELF::STT_OBJECT: in setType()
108 case ELF::STT_FUNC: in setType()
114 case ELF::STT_COMMON: in setType()
117 case ELF::STT_TLS: in setType()
[all …]
H A DMCSectionELF.cpp75 if (Flags & ELF::SHF_ALLOC) in PrintSwitchToSection()
79 if (Flags & ELF::SHF_WRITE) in PrintSwitchToSection()
83 if (Flags & ELF::SHF_TLS) in PrintSwitchToSection()
90 if (Flags & ELF::SHF_ALLOC) in PrintSwitchToSection()
92 if (Flags & ELF::SHF_EXCLUDE) in PrintSwitchToSection()
96 if (Flags & ELF::SHF_GROUP) in PrintSwitchToSection()
98 if (Flags & ELF::SHF_WRITE) in PrintSwitchToSection()
100 if (Flags & ELF::SHF_MERGE) in PrintSwitchToSection()
102 if (Flags & ELF::SHF_STRINGS) in PrintSwitchToSection()
104 if (Flags & ELF::SHF_TLS) in PrintSwitchToSection()
[all …]
H A DMCObjectFileInfo.cpp338 ELF::SHF_WRITE | ELF::SHF_ALLOC); in initELFMCObjectFileInfo()
344 ELF::SHF_WRITE | ELF::SHF_ALLOC); in initELFMCObjectFileInfo()
351 ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE); in initELFMCObjectFileInfo()
354 ".tbss", ELF::SHT_NOBITS, ELF::SHF_ALLOC | ELF::SHF_TLS | ELF::SHF_WRITE); in initELFMCObjectFileInfo()
361 ELF::SHF_ALLOC | ELF::SHF_MERGE, 4, ""); in initELFMCObjectFileInfo()
365 ELF::SHF_ALLOC | ELF::SHF_MERGE, 8, ""); in initELFMCObjectFileInfo()
369 ELF::SHF_ALLOC | ELF::SHF_MERGE, 16, ""); in initELFMCObjectFileInfo()
373 ELF::SHF_ALLOC | ELF::SHF_MERGE, 32, ""); in initELFMCObjectFileInfo()
402 ELF::SHF_MERGE | ELF::SHF_STRINGS, 1, ""); in initELFMCObjectFileInfo()
414 ELF::SHF_MERGE | ELF::SHF_STRINGS, 1, ""); in initELFMCObjectFileInfo()
[all …]
H A DELFObjectWriter.cpp126 if (LHSType == ELF::STT_SECTION && RHSType != ELF::STT_SECTION) in operator <()
128 if (LHSType != ELF::STT_SECTION && RHSType == ELF::STT_SECTION) in operator <()
130 if (LHSType == ELF::STT_SECTION && RHSType == ELF::STT_SECTION) in operator <()
431 W.OS.write_zeros(ELF::EI_NIDENT - ELF::EI_PAD); in writeHeader()
491 if (Type == ELF::STT_FUNC || Type == ELF::STT_OBJECT || in mergeTypeForSet()
492 Type == ELF::STT_NOTYPE || Type == ELF::STT_TLS) in mergeTypeForSet()
496 if (Type == ELF::STT_OBJECT || Type == ELF::STT_NOTYPE || in mergeTypeForSet()
505 if (Type == ELF::STT_OBJECT || Type == ELF::STT_NOTYPE || in mergeTypeForSet()
506 Type == ELF::STT_GNU_IFUNC || Type == ELF::STT_FUNC) in mergeTypeForSet()
728 ELF::STT_FILE | ELF::STB_LOCAL, 0, 0, ELF::STV_DEFAULT, in computeSymbolTable()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/X86/MCTargetDesc/
H A DX86ELFObjectWriter.cpp107 return IsPCRel ? ELF::R_X86_64_PC64 : ELF::R_X86_64_64; in getRelocType64()
109 return IsPCRel ? ELF::R_X86_64_PC32 : ELF::R_X86_64_32; in getRelocType64()
113 return IsPCRel ? ELF::R_X86_64_PC16 : ELF::R_X86_64_16; in getRelocType64()
115 return IsPCRel ? ELF::R_X86_64_PC8 : ELF::R_X86_64_8; in getRelocType64()
120 return IsPCRel ? ELF::R_X86_64_GOTPC64 : ELF::R_X86_64_GOT64; in getRelocType64()
122 return IsPCRel ? ELF::R_X86_64_GOTPC32 : ELF::R_X86_64_GOT32; in getRelocType64()
231 return IsPCRel ? ELF::R_386_PC32 : ELF::R_386_32; in getRelocType32()
233 return IsPCRel ? ELF::R_386_PC16 : ELF::R_386_16; in getRelocType32()
235 return IsPCRel ? ELF::R_386_PC8 : ELF::R_386_8; in getRelocType32()
270 return ELF::R_386_PLT32; in getRelocType32()
[all …]
/freebsd-12.1/usr.bin/clang/lld/
H A DMakefile18 CFLAGS+= -I${LLD_SRCS}/ELF
35 SRCS+= ELF/Arch/ARM.cpp
36 SRCS+= ELF/Arch/AVR.cpp
48 SRCS+= ELF/DWARF.cpp
49 SRCS+= ELF/Driver.cpp
51 SRCS+= ELF/EhFrame.cpp
53 SRCS+= ELF/ICF.cpp
56 SRCS+= ELF/LTO.cpp
67 SRCS+= ELF/Target.cpp
68 SRCS+= ELF/Thunks.cpp
[all …]
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
H A DRuntimeDyldELFMips.cpp69 case ELF::R_MIPS_32: in evaluateMIPS32Relocation()
71 case ELF::R_MIPS_26: in evaluateMIPS32Relocation()
73 case ELF::R_MIPS_HI16: in evaluateMIPS32Relocation()
76 case ELF::R_MIPS_LO16: in evaluateMIPS32Relocation()
131 case ELF::R_MIPS_32: in evaluateMIPS64Relocation()
132 case ELF::R_MIPS_64: in evaluateMIPS64Relocation()
134 case ELF::R_MIPS_26: in evaluateMIPS64Relocation()
140 case ELF::R_MIPS_SUB: in evaluateMIPS64Relocation()
249 case ELF::R_MIPS_26: in applyMIPSRelocation()
254 case ELF::R_MIPS_32: in applyMIPSRelocation()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/SystemZ/MCTargetDesc/
H A DSystemZMCObjectWriter.cpp46 case FK_Data_1: return ELF::R_390_8; in getAbsoluteReloc()
47 case FK_Data_2: return ELF::R_390_16; in getAbsoluteReloc()
48 case FK_Data_4: return ELF::R_390_32; in getAbsoluteReloc()
49 case FK_Data_8: return ELF::R_390_64; in getAbsoluteReloc()
71 case FK_Data_4: return ELF::R_390_TLS_LE32; in getTLSLEReloc()
72 case FK_Data_8: return ELF::R_390_TLS_LE64; in getTLSLEReloc()
80 case FK_Data_4: return ELF::R_390_TLS_LDO32; in getTLSLDOReloc()
99 case FK_Data_4: return ELF::R_390_TLS_GD32; in getTLSGDReloc()
100 case FK_Data_8: return ELF::R_390_TLS_GD64; in getTLSGDReloc()
135 return ELF::R_390_TLS_IEENT; in getRelocType()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUTargetStreamer.cpp114 case GK_R600: return ELF::EF_AMDGPU_MACH_R600_R600; in getElfMach()
146 case GK_NONE: return ELF::EF_AMDGPU_MACH_NONE; in getElfMach()
193 case ELF::STT_AMDGPU_HSA_KERNEL: in EmitAMDGPUSymbolType()
372 EFlags &= ~ELF::EF_AMDGPU_MACH; in AMDGPUTargetELFStreamer()
375 EFlags &= ~ELF::EF_AMDGPU_XNACK; in AMDGPUTargetELFStreamer()
377 EFlags |= ELF::EF_AMDGPU_XNACK; in AMDGPUTargetELFStreamer()
379 EFlags &= ~ELF::EF_AMDGPU_SRAM_ECC; in AMDGPUTargetELFStreamer()
381 EFlags |= ELF::EF_AMDGPU_SRAM_ECC; in AMDGPUTargetELFStreamer()
400 ElfNote::SectionName, ELF::SHT_NOTE, ELF::SHF_ALLOC)); in EmitNote()
561 KernelDescriptorSymbol->setType(ELF::STT_OBJECT); in EmitAmdhsaKernelDescriptor()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFObjectWriter.cpp56 return ELF::R_RISCV_32; in getRelocType()
58 return ELF::R_RISCV_64; in getRelocType()
60 return ELF::R_RISCV_ADD8; in getRelocType()
62 return ELF::R_RISCV_ADD16; in getRelocType()
64 return ELF::R_RISCV_ADD32; in getRelocType()
66 return ELF::R_RISCV_ADD64; in getRelocType()
68 return ELF::R_RISCV_SUB8; in getRelocType()
70 return ELF::R_RISCV_SUB16; in getRelocType()
76 return ELF::R_RISCV_HI20; in getRelocType()
88 return ELF::R_RISCV_JAL; in getRelocType()
[all …]
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/
H A DRuntimeDyldELF.cpp280 case ELF::R_X86_64_32: in resolveX86_64Relocation()
340 case ELF::R_386_32: { in resolveX86Relocation()
504 case ELF::R_ARM_NONE: in resolveARMRelocation()
854 case ELF::R_390_8: in resolveSystemZRelocation()
857 case ELF::R_390_16: in resolveSystemZRelocation()
860 case ELF::R_390_32: in resolveSystemZRelocation()
863 case ELF::R_390_64: in resolveSystemZRelocation()
1213 if (RelType == ELF::R_ARM_PC24 || RelType == ELF::R_ARM_CALL || in processRelocationRef()
1249 if (RelType == ELF::R_ARM_PREL31 || RelType == ELF::R_ARM_TARGET1 || in processRelocationRef()
1351 if (r_type == ELF::R_MIPS_CALL16 || r_type == ELF::R_MIPS_GOT_PAGE in processRelocationRef()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Object/
H A DELFObjectFile.h339 (Binding == ELF::STB_GLOBAL || Binding == ELF::STB_WEAK || in isExportedToOtherDSO()
486 case ELF::SHN_ABS: in getSymbolAddress()
561 case ELF::STT_TLS: in getSymbolType()
726 return EShdr->sh_flags & (ELF::SHF_ALLOC | ELF::SHF_WRITE) && in isSectionBSS()
796 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
818 if (Type != ELF::SHT_REL && Type != ELF::SHT_RELA) in getRelocatedSection()
1089 case ELF::EM_386: in getArch()
1096 case ELF::EM_ARM: in getArch()
1098 case ELF::EM_AVR: in getArch()
1115 case ELF::EM_PPC: in getArch()
[all …]
H A DRelocVisitor.h131 case ELF::R_X86_64_64: in visitX86_64()
173 case ELF::R_MIPS_32: in visitMips64()
175 case ELF::R_MIPS_64: in visitMips64()
197 case ELF::R_390_32: { in visitSystemz()
203 case ELF::R_390_64: in visitSystemz()
212 case ELF::R_SPARC_32: in visitSparc64()
213 case ELF::R_SPARC_64: in visitSparc64()
234 case ELF::R_386_NONE: in visitX86()
236 case ELF::R_386_32: in visitX86()
238 case ELF::R_386_PC32: in visitX86()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64ELFObjectWriter.cpp52 IsILP32 ? ELF::R_AARCH64_P32_##rtype : ELF::R_AARCH64_##rtype
127 return ELF::R_AARCH64_NONE; in getRelocType()
166 return ELF::R_AARCH64_NONE; in getRelocType()
183 return ELF::R_AARCH64_NONE; in getRelocType()
187 return ELF::R_AARCH64_NONE; in getRelocType()
191 return ELF::R_AARCH64_NONE; in getRelocType()
224 return ELF::R_AARCH64_NONE; in getRelocType()
239 return ELF::R_AARCH64_NONE; in getRelocType()
254 return ELF::R_AARCH64_NONE; in getRelocType()
314 return ELF::R_AARCH64_NONE; in getRelocType()
[all …]
/freebsd-12.1/contrib/llvm/lib/MC/MCParser/
H A DELFAsmParser.cpp95 ELF::SHF_WRITE | ELF::SHF_ALLOC, in ParseSectionDirectiveData()
116 ELF::SHF_TLS | ELF::SHF_WRITE, in ParseSectionDirectiveTData()
122 ELF::SHF_TLS | ELF::SHF_WRITE, in ParseSectionDirectiveTBSS()
127 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveDataRel()
138 ELF::SHF_ALLOC | ELF::SHF_WRITE, in ParseSectionDirectiveEhFrame()
313 flags |= ELF::SHF_TLS; in parseSectionFlags()
507 Flags |= ELF::SHF_ALLOC | ELF::SHF_EXECINSTR; in ParseSectionArguments()
513 Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE; in ParseSectionArguments()
516 Flags |= ELF::SHF_ALLOC | ELF::SHF_WRITE | ELF::SHF_TLS; in ParseSectionArguments()
587 Type = ELF::SHT_NOTE; in ParseSectionArguments()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/MSP430/MCTargetDesc/
H A DMSP430ELFObjectWriter.cpp26 : MCELFObjectTargetWriter(false, OSABI, ELF::EM_MSP430, in MSP430ELFObjectWriter()
36 case FK_Data_1: return ELF::R_MSP430_8; in getRelocType()
37 case FK_Data_2: return ELF::R_MSP430_16_BYTE; in getRelocType()
38 case FK_Data_4: return ELF::R_MSP430_32; in getRelocType()
39 case MSP430::fixup_32: return ELF::R_MSP430_32; in getRelocType()
40 case MSP430::fixup_10_pcrel: return ELF::R_MSP430_10_PCREL; in getRelocType()
41 case MSP430::fixup_16: return ELF::R_MSP430_16; in getRelocType()
42 case MSP430::fixup_16_pcrel: return ELF::R_MSP430_16_PCREL; in getRelocType()
43 case MSP430::fixup_16_byte: return ELF::R_MSP430_16_BYTE; in getRelocType()
45 case MSP430::fixup_2x_pcrel: return ELF::R_MSP430_2X_PCREL; in getRelocType()
[all …]

12345678910>>...15