/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 107 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) in elf_ptrsz() 109 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64) in elf_ptrsz() 112 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]); in elf_ptrsz()
|
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/ |
H A D | ELF.cpp | 39 if (Data[ELF::EI_CLASS] == ELF::ELFCLASS64) { in readTargetMachineArch() 45 } else if (Data[ELF::EI_CLASS] == ELF::ELFCLASS32) { in readTargetMachineArch() 55 if (Data[ELF::EI_CLASS] == ELF::ELFCLASS64) { in readTargetMachineArch() 61 } else if (Data[ELF::EI_CLASS] == ELF::ELFCLASS32) { in createLinkGraphFromELFObject()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 86 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS32; in Is32Bit() 94 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS64; in Is64Bit()
|
H A D | ELFHeader.cpp | 164 switch (magic[EI_CLASS]) { in AddressSizeInBytes()
|
/freebsd/usr.bin/elfdump/ |
H A D | elfdump.c | 96 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 137 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 1105 switch (e->e_ident[EI_CLASS]) { in elf_get_byte() 1125 switch (e->e_ident[EI_CLASS]) { in elf_get_quarter() 1166 switch (e->e_ident[EI_CLASS]) { 1207 switch (e->e_ident[EI_CLASS]) { in elf_get_word() 1247 switch (e->e_ident[EI_CLASS]) { in elf_get_quad()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | libelf_memory.c | 66 e_class = image[EI_CLASS]; in _libelf_memory()
|
H A D | libelf_ehdr.c | 97 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \
|
H A D | elf_update.c | 538 eh_class = eh32->e_ident[EI_CLASS]; in _libelf_resync_elf() 544 eh_class = eh64->e_ident[EI_CLASS]; in _libelf_resync_elf() 584 (E)->e_ident[EI_CLASS] = (unsigned char) (EC); \ in _libelf_resync_elf()
|
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 295 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS64) { in ctf_fdopen() 308 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) { in ctf_fdopen() 343 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) { in ctf_fdopen()
|
/freebsd/lib/libkldelf/ |
H A D | elf.c | 57 if (hdr->e_ident[EI_CLASS] == (*erd)->class && in elf_find_reloc() 145 if (efile->ef_hdr.e_ident[EI_CLASS] != hdr->e_ident[EI_CLASS] || in elf_compatible()
|
H A D | kldelf.h | 108 #define elf_class(ef) ((ef)->ef_hdr.e_ident[EI_CLASS])
|
/freebsd/sys/compat/linux/ |
H A D | linux_vdso.c | 113 MPASS(ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS); in __elfN()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | ELF.h | 53 EI_CLASS = 4, // File class. enumerator 82 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } in getFileClass() 108 unsigned char getFileClass() const { return e_ident[EI_CLASS]; } in getFileClass()
|
/freebsd/lib/libkvm/ |
H A D | kvm_powerpc.c | 58 if (eh->e_ident[EI_CLASS] != ELFCLASS32) in valid_elf_header()
|
H A D | kvm_powerpc64.c | 58 if (eh->e_ident[EI_CLASS] != ELFCLASS64) in valid_elf_header()
|
H A D | kvm_private.c | 131 return (kd->nlehdr.e_ident[EI_CLASS] == class && in _kvm_probe_elf_kernel() 175 if (gelf_getclass(elf) != kd->nlehdr.e_ident[EI_CLASS]) { in _kvm_read_core_phdrs()
|
/freebsd/lib/libc/gen/ |
H A D | nlist.c | 108 ehdr->e_ident[EI_CLASS] == ELF_TARG_CLASS && in __elf_is_okay__()
|
/freebsd/lib/libproc/ |
H A D | proc_create.c | 65 class = ehdr.e_ident[EI_CLASS]; in getelfclass()
|
/freebsd/contrib/elftoolchain/elfcopy/ |
H A D | binary.c | 180 oeh.e_ident[EI_CLASS] = ecp->oec; in create_elf_from_binary()
|
/freebsd/sys/x86/xen/ |
H A D | pv.c | 225 ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || in xen_pvh_parse_symtab()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/ |
H A D | DynamicLoaderFreeBSDKernel.cpp | 280 if (elf_eheader.e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS32) { in ReadMemoryModule() 283 } else if (elf_eheader.e_ident[llvm::ELF::EI_CLASS] == in ReadMemoryModule()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/ |
H A D | ELFObjectFile.h | 1284 switch (EF.getHeader().e_ident[ELF::EI_CLASS]) { in getFileFormatName() 1381 switch (EF.getHeader().e_ident[ELF::EI_CLASS]) { in getArch() 1396 switch (EF.getHeader().e_ident[ELF::EI_CLASS]) { in getArch() 1429 if (EF.getHeader().e_ident[ELF::EI_CLASS] == ELF::ELFCLASS32) in getArch() 1443 switch (EF.getHeader().e_ident[ELF::EI_CLASS]) { in getArch()
|
/freebsd/contrib/file/src/ |
H A D | readelf.h | 161 #define EI_CLASS 4 macro
|
/freebsd/contrib/elftoolchain/size/ |
H A D | size.c | 277 if (elfhdr->e_ident[EI_CLASS] == ELFCLASS32) { \ 340 if (elfhdr->e_ident[EI_CLASS] == ELFCLASS32) { in handle_core_note()
|
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/ |
H A D | AMDGPULibFunc.h | 234 EI_CLASS, 233 EI_CLASS, global() enumerator
|