/freebsd-11.0-release/contrib/elftoolchain/size/ |
H A D | size.c | 227 return (gelf_xlatetom(elf, &dst, &src, elfhdr->e_ident[EI_DATA])); 247 if (elfhdr->e_ident[EI_CLASS] == ELFCLASS32) { \ 307 if (elfhdr->e_ident[EI_OSABI] == ELFOSABI_FREEBSD && 310 if (elfhdr->e_ident[EI_CLASS] == ELFCLASS32) {
|
/freebsd-11.0-release/sys/sys/ |
H A D | elf_common.h | 118 /* Indexes into the e_ident array. Keep synced with 131 #define EI_NIDENT 16 /* Size of e_ident array. */ 141 /* Values for e_ident[EI_VERSION] and e_version. */ 145 /* Values for e_ident[EI_CLASS]. */ 150 /* Values for e_ident[EI_DATA]. */ 155 /* Values for e_ident[EI_OSABI]. */ 181 /* e_ident */ 182 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \ 183 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \ 184 (ehdr).e_ident[EI_MAG [all...] |
/freebsd-11.0-release/sys/kern/ |
H A D | link_elf_obj.c | 242 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 243 hdr->e_ident[EI_DATA] != ELF_TARG_DATA || 244 hdr->e_ident[EI_VERSION] != EV_CURRENT || 538 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS 539 || hdr->e_ident[EI_DATA] != ELF_TARG_DATA) { 544 if (hdr->e_ident[EI_VERSION] != EV_CURRENT
|
H A D | link_elf.c | 827 if (hdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 828 hdr->e_ident[EI_DATA] != ELF_TARG_DATA) { 833 if (hdr->e_ident[EI_VERSION] != EV_CURRENT ||
|
/freebsd-11.0-release/contrib/llvm/tools/llvm-readobj/ |
H A D | ELFDumper.cpp | 1043 W.printBinary("Magic", makeArrayRef(Header->e_ident).slice(ELF::EI_MAG0, 1045 W.printEnum ("Class", Header->e_ident[ELF::EI_CLASS], 1047 W.printEnum ("DataEncoding", Header->e_ident[ELF::EI_DATA], 1049 W.printNumber("FileVersion", Header->e_ident[ELF::EI_VERSION]); 1053 Header->e_ident[ELF::EI_OSABI] == ELF::ELFOSABI_AMDGPU_HSA) 1056 W.printEnum ("OS/ABI", Header->e_ident[ELF::EI_OSABI], 1058 W.printNumber("ABIVersion", Header->e_ident[ELF::EI_ABIVERSION]); 1059 W.printBinary("Unused", makeArrayRef(Header->e_ident).slice(ELF::EI_PAD));
|
/freebsd-11.0-release/lib/libkvm/ |
H A D | kvm.c | 202 switch (kd->nlehdr.e_ident[EI_DATA]) { 217 return (kd->nlehdr.e_ident[EI_CLASS] == class && 260 if (gelf_getclass(elf) != kd->nlehdr.e_ident[EI_CLASS]) {
|
/freebsd-11.0-release/sys/boot/common/ |
H A D | load_elf.c | 121 if (ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */ 122 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 123 ehdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */
|
/freebsd-11.0-release/contrib/binutils/binutils/ |
H A D | readelf.c | 933 if (elf_header.e_ident[EI_DATA] != ELFDATA2MSB) 1278 && elf_header.e_ident[EI_OSABI] == ELFOSABI_HPUX 3174 if ( elf_header.e_ident[EI_MAG0] != ELFMAG0 3175 || elf_header.e_ident[EI_MAG1] != ELFMAG1 3176 || elf_header.e_ident[EI_MAG2] != ELFMAG2 3177 || elf_header.e_ident[EI_MAG3] != ELFMAG3) 3191 printf ("%2.2x ", elf_header.e_ident[i]); 3194 get_elf_class (elf_header.e_ident[EI_CLASS])); 3196 get_data_encoding (elf_header.e_ident[EI_DATA])); 3198 elf_header.e_ident[EI_VERSIO [all...] |
/freebsd-11.0-release/contrib/llvm/include/llvm/Object/ |
H A D | ELFObjectFile.h | 823 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) { 895 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) { 916 switch (EF.getHeader()->e_ident[ELF::EI_CLASS]) {
|
/freebsd-11.0-release/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | output.c | 761 if (ehdr.e_ident[EI_DATA] == byteorder)
|
/freebsd-11.0-release/contrib/binutils/bfd/ |
H A D | elf.c | 4988 i_ehdrp->e_ident[EI_MAG0] = ELFMAG0; 4989 i_ehdrp->e_ident[EI_MAG1] = ELFMAG1; 4990 i_ehdrp->e_ident[EI_MAG2] = ELFMAG2; 4991 i_ehdrp->e_ident[EI_MAG3] = ELFMAG3; 4993 i_ehdrp->e_ident[EI_CLASS] = bed->s->elfclass; 4994 i_ehdrp->e_ident[EI_DATA] = 4996 i_ehdrp->e_ident[EI_VERSION] = bed->s->ev_current; 4998 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 8634 if (i_ehdrp->e_ident[EI_CLASS] == ELFCLASS64) 8662 if (i_ehdrp->e_ident[EI_CLAS [all...] |
H A D | elf-eh-frame.c | 1610 return elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64 ? 8 : 4;
|
H A D | elfxx-mips.c | 5255 if (elf_elfheader (abfd)->e_ident[EI_CLASS] == ELFCLASS64) 11171 elf_elfheader (obfd)->e_ident[EI_CLASS] 11172 = elf_elfheader (ibfd)->e_ident[EI_CLASS]; 11297 || (elf_elfheader (ibfd)->e_ident[EI_CLASS] 11298 != elf_elfheader (obfd)->e_ident[EI_CLASS])) 11302 || (elf_elfheader (ibfd)->e_ident[EI_CLASS] 11303 != elf_elfheader (obfd)->e_ident[EI_CLASS]))
|
H A D | elf32-arm.c | 6704 elf_elfheader (obfd)->e_ident[EI_OSABI] = 6705 elf_elfheader (ibfd)->e_ident[EI_OSABI]; 9373 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 9374 i_ehdrp->e_ident[EI_ABIVERSION] = 0;
|
H A D | elf32-i386.c | 3863 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi; 3866 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
|
H A D | elf64-alpha.c | 5408 i_ehdrp->e_ident[EI_OSABI] = get_elf_backend_data (abfd)->elf_osabi; 5411 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
|
/freebsd-11.0-release/cddl/contrib/opensolaris/cmd/dtrace/ |
H A D | dtrace.c | 1442 if (ehdr.e_ident[EI_CLASS] == ELFCLASS64) { 1448 } else if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) {
|
/freebsd-11.0-release/contrib/elftoolchain/readelf/ |
H A D | readelf.c | 2099 /* e_ident[]. */ 2102 printf("%.2x ", re->ehdr.e_ident[i]); 2106 printf("%-37s%s\n", " Class:", elf_class(re->ehdr.e_ident[EI_CLASS])); 2109 printf("%-37s%s\n", " Data:", elf_endian(re->ehdr.e_ident[EI_DATA])); 2112 printf("%-37s%d %s\n", " Version:", re->ehdr.e_ident[EI_VERSION], 2113 elf_ver(re->ehdr.e_ident[EI_VERSION])); 2116 printf("%-37s%s\n", " OS/ABI:", elf_osabi(re->ehdr.e_ident[EI_OSABI])); 2119 printf("%-37s%d\n", " ABI Version:", re->ehdr.e_ident[EI_ABIVERSION]); 2943 re->ehdr.e_ident[EI_OSABI], GELF_ST_TYPE(sym.st_info))); 3115 re->ehdr.e_ident[EI_DAT [all...] |
/freebsd-11.0-release/contrib/elftoolchain/nm/ |
H A D | nm.c | 938 if (eh.e_ident[EI_DATA] == ELFDATA2LSB) 943 if (eh.e_ident[EI_DATA] == ELFDATA2LSB)
|
/freebsd-11.0-release/contrib/binutils/opcodes/ |
H A D | mips-dis.c | 556 if (header->e_ident[EI_CLASS] == ELFCLASS64)
|
/freebsd-11.0-release/contrib/elftoolchain/common/ |
H A D | elfdefinitions.h | 2339 unsigned char e_ident[EI_NIDENT]; /* ELF identification. */ member in struct:__anon1008 2358 unsigned char e_ident[EI_NIDENT]; /* ELF identification. */ member in struct:__anon1009
|
/freebsd-11.0-release/contrib/gdb/gdb/ |
H A D | mips-tdep.c | 2317 && elf_elfheader (the_bfd)->e_ident[EI_CLASS] == ELFCLASS64)) 5432 && elf_elfheader (info.abfd)->e_ident[EI_CLASS] == ELFCLASS64) 5444 && elf_elfheader (info.abfd)->e_ident[EI_CLASS] == ELFCLASS64)
|
H A D | arm-tdep.c | 2560 elfosabi = elf_elfheader (abfd)->e_ident[EI_OSABI];
|
H A D | rs6000-tdep.c | 2658 if (elf_elfheader (info.abfd)->e_ident[EI_CLASS] == ELFCLASS64)
|
/freebsd-11.0-release/usr.sbin/pmcstat/ |
H A D | pmcstat_log.c | 680 image_type = eh.e_ident[EI_CLASS] == ELFCLASS32 ?
|