Home
last modified time | relevance | path

Searched full:elf (Results 1 – 25 of 1461) sorted by relevance

12345678910>>...59

/freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/MCTargetDesc/
H A DHexagonELFObjectWriter.cpp18 #define DEBUG_TYPE "hexagon-elf-writer"
38 : MCELFObjectTargetWriter(/*Is64bit*/ false, OSABI, ELF::EM_HEXAGON, in HexagonELFObjectWriter()
54 return ELF::R_HEX_DTPREL_32; in getRelocType()
56 return ELF::R_HEX_GOT_32; in getRelocType()
58 return ELF::R_HEX_GOTREL_32; in getRelocType()
60 return ELF::R_HEX_GD_GOT_32; in getRelocType()
62 return ELF::R_HEX_IE_32; in getRelocType()
64 return ELF::R_HEX_IE_GOT_32; in getRelocType()
66 return ELF::R_HEX_LD_GOT_32; in getRelocType()
68 return ELF::R_HEX_32_PCREL; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Mips/MCTargetDesc/
H A DMipsELFObjectWriter.cpp1 //===-- MipsELFObjectWriter.cpp - Mips ELF Writer -------------------------===//
12 #include "llvm/BinaryFormat/ELF.h"
31 #define DEBUG_TYPE "mips-elf-object-writer"
136 /// is ELF::R_MIPS_NONE.
143 if (Type == ELF::R_MIPS_HI16) in getMatchingLoType()
144 return ELF::R_MIPS_LO16; in getMatchingLoType()
145 if (Type == ELF::R_MICROMIPS_HI16) in getMatchingLoType()
146 return ELF::R_MICROMIPS_LO16; in getMatchingLoType()
147 if (Type == ELF::R_MIPS16_HI16) in getMatchingLoType()
148 return ELF::R_MIPS16_LO16; in getMatchingLoType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/MCTargetDesc/
H A DPPCELFObjectWriter.cpp1 //===-- PPCELFObjectWriter.cpp - PPC ELF Writer ---------------------------===//
38 Is64Bit ? ELF::EM_PPC64 : ELF::EM_PPC, in PPCELFObjectWriter()
93 Type = ELF::R_PPC_REL24; in getRelocType()
96 Type = ELF::R_PPC_PLTREL24; in getRelocType()
99 Type = ELF::R_PPC_LOCAL24PC; in getRelocType()
102 Type = ELF::R_PPC64_REL24_NOTOC; in getRelocType()
108 Type = ELF::R_PPC_REL14; in getRelocType()
114 Type = ELF::R_PPC_REL16; in getRelocType()
117 Type = ELF in getRelocType()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/ARM/MCTargetDesc/
H A DARMELFObjectWriter.cpp1 //===-- ARMELFObjectWriter.cpp - ARM ELF Writer ---------------------------===//
11 #include "llvm/BinaryFormat/ELF.h"
19 #include "llvm/Object/ELF.h"
52 ELF::EM_ARM, in ARMELFObjectWriter()
65 case ELF::R_ARM_PREL31: in needsRelocateWithSymbol()
66 case ELF::R_ARM_ABS32: in needsRelocateWithSymbol()
89 if (getOSABI() != ELF::ELFOSABI_ARM_FDPIC) in GetRelocTypeInner()
92 object::getELFRelocationTypeName(ELF::EM_ARM, Type) + in GetRelocTypeInner()
101 return ELF::R_ARM_NONE; in GetRelocTypeInner()
107 return ELF::R_ARM_NONE; in GetRelocTypeInner()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/Sparc/MCTargetDesc/
H A DSparcELFObjectWriter.cpp1 //===-- SparcELFObjectWriter.cpp - Sparc ELF Writer -----------------------===//
27 Is64Bit ? ELF::EM_SPARCV9 in SparcELFObjectWriter()
28 : (HasV9 ? ELF::EM_SPARC32PLUS : ELF::EM_SPARC), in SparcELFObjectWriter()
52 return ELF::R_SPARC_DISP32; in getRelocType()
59 case FK_Data_1: return ELF::R_SPARC_DISP8; in getRelocType()
60 case FK_Data_2: return ELF::R_SPARC_DISP16; in getRelocType()
61 case FK_Data_4: return ELF::R_SPARC_DISP32; in getRelocType()
62 case FK_Data_8: return ELF::R_SPARC_DISP64; in getRelocType()
63 case Sparc::fixup_sparc_call30: return ELF::R_SPARC_WDISP30; in getRelocType()
64 case Sparc::fixup_sparc_br22: return ELF::R_SPARC_WDISP22; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Object/
H A DRelocationResolver.cpp16 #include "llvm/BinaryFormat/ELF.h"
42 case ELF::R_X86_64_NONE: in supportsX86_64()
43 case ELF::R_X86_64_64: in supportsX86_64()
44 case ELF::R_X86_64_DTPOFF32: in supportsX86_64()
45 case ELF::R_X86_64_DTPOFF64: in supportsX86_64()
46 case ELF::R_X86_64_PC32: in supportsX86_64()
47 case ELF::R_X86_64_PC64: in supportsX86_64()
48 case ELF::R_X86_64_32: in supportsX86_64()
49 case ELF::R_X86_64_32S: in supportsX86_64()
59 case ELF in resolveX86_64()
[all...]
H A DELFObjectFile.cpp1 //===- ELFObjectFile.cpp - ELF object file implementation -----------------===//
14 #include "llvm/BinaryFormat/ELF.h"
17 #include "llvm/Object/ELF.h"
42 {"None", "NOTYPE", ELF::STT_NOTYPE},
43 {"Object", "OBJECT", ELF::STT_OBJECT},
44 {"Function", "FUNC", ELF::STT_FUNC},
45 {"Section", "SECTION", ELF::STT_SECTION},
46 {"File", "FILE", ELF::STT_FILE},
47 {"Common", "COMMON", ELF::STT_COMMON},
48 {"TLS", "TLS", ELF::STT_TLS},
[all …]
H A DELF.cpp1 //===- ELF.cpp - ELF object file implementation ---------------------------===//
9 #include "llvm/Object/ELF.h"
11 #include "llvm/BinaryFormat/ELF.h"
21 #define ELF_RELOC(name, value) STRINGIFY_ENUM_CASE(ELF, name)
26 case ELF::EM_68K: in getELFRelocationTypeName()
33 case ELF::EM_X86_64: in getELFRelocationTypeName()
40 case ELF::EM_386: in getELFRelocationTypeName()
41 case ELF::EM_IAMCU: in getELFRelocationTypeName()
48 case ELF::EM_MIPS: in getELFRelocationTypeName()
55 case ELF::EM_AARCH64: in getELFRelocationTypeName()
[all …]
/freebsd/contrib/elftoolchain/libelf/
H A Delf.324 .\" $Id: elf.3 3743 2019-06-12 19:36:30Z jkoshy $
30 .Nm elf
31 .Nd API for manipulating ELF objects
43 The library allows the manipulation of ELF objects in a byte ordering
45 create ELF objects for 32 and 64 bit architectures and for little-
47 The library is capable of processing ELF objects that use extended
51 the ELF library.
53 .Xr ELF 3
55 .Ss ELF Concepts
57 .Xr elf 5 ,
[all …]
H A Dgelf.331 .Nd class-independent API for ELF manipulation
39 This API allows an application to operate on ELF descriptors without
40 needing to the know the ELF class of the descriptor.
42 The GElf API may be used alongside the ELF API without restriction.
47 A representation of ELF addresses.
49 A class-independent representation of an ELF Compression Header.
51 A class-independent representation of ELF
55 A class-independent representation of an ELF Executable Header.
59 A class-independent representation of a ELF offset.
61 A class-independent representation of an ELF Program Header Table
[all …]
H A Delf_update.331 .Nd update an ELF descriptor
37 .Fn elf_update "Elf *elf" "Elf_Cmd cmd"
41 causes the library to recalculate the structure of an ELF
46 .Ar elf
47 should reference a valid ELF descriptor.
61 The ELF descriptor referenced by argument
62 .Ar elf
63 should permit the underlying ELF object to be written or updated
73 .Ar elf
84 flag is not set on the ELF descriptor, the ELF library will lay out
[all …]
H A Delf_begin.331 .Nd open an ELF file or ar(1) archive
37 .Fn elf_begin "int fd" "Elf_Cmd cmd" "Elf *elf"
41 is used to open ELF files and
44 .Xr elf 3
46 It is also used to access individual ELF members of an
66 .Ar elf
80 .Ar elf
87 .Ar elf .
90 archives and for ELF objects.
93 .Ar elf
[all …]
H A Dgelf_newehdr.339 .Fn elf32_newehdr "Elf *elf"
41 .Fn elf64_newehdr "Elf *elf"
44 .Fn gelf_newehdr "Elf *elf" "int elfclass"
46 These functions retrieve the ELF header from the ELF descriptor
47 .Ar elf ,
51 .Xr elf 3 .
71 .Fn elf32_newehdr "elf" .
77 .Fn elf64_newehdr "elf" .
89 are set to the ELF signature.
93 is set to the ELF class associated with the function being called
[all …]
H A Dgelf_checksum.333 .Nd return the checksum of an ELF object
39 .Fn elf32_checksum "Elf *elf"
41 .Fn elf64_checksum "Elf *elf"
44 .Fn gelf_checksum "Elf *elf"
46 These functions return a simple checksum of the ELF object described
48 .Ar elf .
50 unchanged in presence of modifications to the ELF object by utilities
56 returns a checksum for an ELF descriptor
57 .Ar elf
63 returns a checksum for an ELF descriptor
[all …]
H A Dlibelf.h37 typedef struct _Elf Elf; typedef
45 ELF_K_ELF, /* ELF files */
102 * ELF section.
106 * `Public' members that are part of the ELF(3) API.
153 ELF_E_CLASS, /* Mismatched ELF class */
155 ELF_E_HEADER, /* Missing or malformed ELF header */
158 ELF_E_MODE, /* Wrong mode for ELF descriptor */
165 ELF_E_INVALID_SECTION_FLAGS, /* Invalid ELF section header flags */
166 ELF_E_INVALID_SECTION_TYPE, /* Invalid ELF section header type */
176 #define ELF_F_DIRTY 0x002U /* a section or ELF file is dirty */
[all …]
H A Dgelf_getehdr.339 .Fn elf32_getehdr "Elf *elf"
41 .Fn elf64_getehdr "Elf *elf"
44 .Fn gelf_getehdr "Elf *elf" "GElf_Ehdr *dst"
46 These functions retrieve the ELF object file
47 header from the ELF descriptor
48 .Ar elf
57 .Ar elf .
60 if an ELF header was not found in file
61 .Ar elf .
65 stores a translated copy of the header for ELF file
[all …]
/freebsd/contrib/elftoolchain/libelftc/
H A Delftc_bfd_find_target.360 such as its file representation, ELF class, and byte endianness.
68 .It Li elf32-avr Ta ELF Ta LSB Ta 32
69 .It Li elf32-big Ta ELF Ta MSB Ta 32
70 .It Li elf32-bigarm Ta ELF Ta MSB Ta 32
71 .It Li elf32-bigmips Ta ELF Ta MSB Ta 32
72 .It Li elf32-i386 Ta ELF Ta LSB Ta 32
73 .It Li elf32-i386-freebsd Ta ELF Ta LSB Ta 32
74 .It Li elf32-ia64-big Ta ELF Ta MSB Ta 32
75 .It Li elf32-little Ta ELF Ta LSB Ta 32
76 .It Li elf32-littlearm Ta ELF Ta LSB Ta 32
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/XCore/
H A DXCoreTargetObjectFile.cpp11 #include "llvm/BinaryFormat/ELF.h"
23 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()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/RISCV/MCTargetDesc/
H A DRISCVELFObjectWriter.cpp1 //===-- RISCVELFObjectWriter.cpp - RISC-V ELF Writer ----------------------===//
44 : MCELFObjectTargetWriter(Is64Bit, OSABI, ELF::EM_RISCV, in RISCVELFObjectWriter()
62 return ELF::R_RISCV_NONE; in getRelocType()
66 ? ELF::R_RISCV_PLT32 in getRelocType()
67 : ELF::R_RISCV_32_PCREL; in getRelocType()
69 return ELF::R_RISCV_PCREL_HI20; in getRelocType()
71 return ELF::R_RISCV_PCREL_LO12_I; in getRelocType()
73 return ELF::R_RISCV_PCREL_LO12_S; in getRelocType()
75 return ELF::R_RISCV_GOT_HI20; in getRelocType()
77 return ELF in getRelocType()
[all...]
/freebsd/contrib/llvm-project/llvm/lib/Target/AVR/MCTargetDesc/
H A DAVRELFObjectWriter.cpp1 //===-- AVRELFObjectWriter.cpp - AVR ELF Writer ---------------------------===//
35 : MCELFObjectTargetWriter(false, OSABI, ELF::EM_AVR, true) {} in AVRELFObjectWriter()
50 return ELF::R_AVR_8; in getRelocType()
52 return ELF::R_AVR_DIFF8; in getRelocType()
54 return ELF::R_AVR_8_LO8; in getRelocType()
56 return ELF::R_AVR_8_HI8; in getRelocType()
58 return ELF::R_AVR_8_HLO8; in getRelocType()
65 return ELF::R_AVR_32; in getRelocType()
67 return ELF::R_AVR_DIFF32; in getRelocType()
74 return ELF::R_AVR_16; in getRelocType()
[all …]
/freebsd/usr.bin/clang/lld/
H A DMakefile19 CFLAGS+= -I${LLD_SRCS}/ELF
37 SRCS+= ELF/AArch64ErrataFix.cpp
38 SRCS+= ELF/ARMErrataFix.cpp
39 SRCS+= ELF/Arch/AArch64.cpp
40 SRCS+= ELF/Arch/AMDGPU.cpp
41 SRCS+= ELF/Arch/ARM.cpp
42 SRCS+= ELF/Arch/AVR.cpp
43 SRCS+= ELF/Arch/Hexagon.cpp
44 SRCS+= ELF/Arch/LoongArch.cpp
45 SRCS+= ELF/Arch/MSP430.cpp
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/MCTargetDesc/
H A DX86ELFObjectWriter.cpp1 //===-- X86ELFObjectWriter.cpp - X86 ELF Writer ---------------------------===//
11 #include "llvm/BinaryFormat/ELF.h"
44 (EMachine != ELF::EM_386) && in X86ELFObjectWriter()
45 (EMachine != ELF::EM_IAMCU)) {} in X86ELFObjectWriter()
115 return ELF::R_X86_64_NONE; in getRelocType64()
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()
122 return ELF::R_X86_64_32S; 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()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/CSKY/MCTargetDesc/
H A DCSKYELFObjectWriter.cpp1 //===-- CSKYELFObjectWriter.cpp - CSKY ELF Writer -------------------------===//
16 #define DEBUG_TYPE "csky-elf-object-writer"
25 : MCELFObjectTargetWriter(false, OSABI, ELF::EM_CSKY, true){}; in CSKYELFObjectWriter()
48 return ELF::R_CKCORE_NONE; in getRelocType()
51 return ELF::R_CKCORE_PCREL32; in getRelocType()
53 return ELF::R_CKCORE_PCREL_IMM16_4; in getRelocType()
55 return ELF::R_CKCORE_PCREL_IMM8_4; in getRelocType()
57 return ELF::R_CKCORE_PCREL_IMM26_2; in getRelocType()
59 return ELF::R_CKCORE_PCREL_IMM18_2; in getRelocType()
61 return ELF::R_CKCORE_PCREL_IMM16_2; in getRelocType()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/MCTargetDesc/
H A DAMDGPUTargetStreamer.cpp19 #include "llvm/BinaryFormat/ELF.h"
58 case ELF::EF_AMDGPU_MACH_R600_R600: AK = GK_R600; break; in getArchNameFromElfMach()
59 case ELF::EF_AMDGPU_MACH_R600_R630: AK = GK_R630; break; in getArchNameFromElfMach()
60 case ELF::EF_AMDGPU_MACH_R600_RS880: AK = GK_RS880; break; in getArchNameFromElfMach()
61 case ELF::EF_AMDGPU_MACH_R600_RV670: AK = GK_RV670; break; in getArchNameFromElfMach()
62 case ELF::EF_AMDGPU_MACH_R600_RV710: AK = GK_RV710; break; in getArchNameFromElfMach()
63 case ELF::EF_AMDGPU_MACH_R600_RV730: AK = GK_RV730; break; in getArchNameFromElfMach()
64 case ELF::EF_AMDGPU_MACH_R600_RV770: AK = GK_RV770; break; in getArchNameFromElfMach()
65 case ELF::EF_AMDGPU_MACH_R600_CEDAR: AK = GK_CEDAR; break; in getArchNameFromElfMach()
66 case ELF::EF_AMDGPU_MACH_R600_CYPRESS: AK = GK_CYPRESS; break; in getArchNameFromElfMach()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/VE/MCTargetDesc/
H A DVEELFObjectWriter.cpp1 //===-- VEELFObjectWriter.cpp - VE ELF Writer -----------------------------===//
25 : MCELFObjectTargetWriter(/* Is64Bit */ true, OSABI, ELF::EM_VE, in VEELFObjectWriter()
44 return ELF::R_VE_PC_LO32; in getRelocType()
51 return ELF::R_VE_NONE; in getRelocType()
56 return ELF::R_VE_NONE; in getRelocType()
61 return ELF::R_VE_NONE; in getRelocType()
64 return ELF::R_VE_SREL32; in getRelocType()
69 return ELF::R_VE_NONE; in getRelocType()
72 return ELF::R_VE_SREL32; in getRelocType()
74 return ELF in getRelocType()
[all...]

12345678910>>...59