/freebsd-10-stable/contrib/binutils/bfd/ |
H A D | elf32-i386-fbsd.c | 47 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 50 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
|
H A D | elf64-alpha-fbsd.c | 47 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 50 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
|
H A D | elfcore.h | 101 if (x_ehdr.e_ident[EI_CLASS] != ELFCLASS) 105 switch (x_ehdr.e_ident[EI_DATA])
|
/freebsd-10-stable/lib/libelf/ |
H A D | gelf_ehdr.c | 68 (void) memcpy(d->e_ident, eh32->e_ident, sizeof(eh32->e_ident)); 150 (void) memcpy(eh32->e_ident, s->e_ident, sizeof(eh32->e_ident));
|
H A D | libelf_ehdr.c | 90 eh->e_ident[EI_MAG0] = ELFMAG0; \ 91 eh->e_ident[EI_MAG1] = ELFMAG1; \ 92 eh->e_ident[EI_MAG2] = ELFMAG2; \ 93 eh->e_ident[EI_MAG3] = ELFMAG3; \ 94 eh->e_ident[EI_CLASS] = ELFCLASS##SZ; \ 95 eh->e_ident[EI_DATA] = ELFDATANONE; \ 96 eh->e_ident[EI_VERSION] = LIBELF_PRIVATE(version); \
|
/freebsd-10-stable/sys/powerpc/powerpc/ |
H A D | dump_machdep.c | 217 ehdr.e_ident[EI_MAG0] = ELFMAG0; 218 ehdr.e_ident[EI_MAG1] = ELFMAG1; 219 ehdr.e_ident[EI_MAG2] = ELFMAG2; 220 ehdr.e_ident[EI_MAG3] = ELFMAG3; 221 ehdr.e_ident[EI_CLASS] = ELFCLASS32; 223 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 225 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 227 ehdr.e_ident[EI_VERSION] = EV_CURRENT; 228 ehdr.e_ident[EI_OSABI] = ELFOSABI_STANDALONE; /* XXX big picture? */
|
/freebsd-10-stable/sys/arm/arm/ |
H A D | dump_machdep.c | 313 ehdr.e_ident[EI_MAG0] = ELFMAG0; 314 ehdr.e_ident[EI_MAG1] = ELFMAG1; 315 ehdr.e_ident[EI_MAG2] = ELFMAG2; 316 ehdr.e_ident[EI_MAG3] = ELFMAG3; 317 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 319 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 321 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 323 ehdr.e_ident[EI_VERSION] = EV_CURRENT; 324 ehdr.e_ident[EI_OSABI] = ELFOSABI_STANDALONE; /* XXX big picture? */
|
/freebsd-10-stable/sys/mips/mips/ |
H A D | dump_machdep.c | 276 ehdr.e_ident[EI_MAG0] = ELFMAG0; 277 ehdr.e_ident[EI_MAG1] = ELFMAG1; 278 ehdr.e_ident[EI_MAG2] = ELFMAG2; 279 ehdr.e_ident[EI_MAG3] = ELFMAG3; 280 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 282 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 284 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 286 ehdr.e_ident[EI_VERSION] = EV_CURRENT; 287 ehdr.e_ident[EI_OSABI] = ELFOSABI_STANDALONE; /* XXX big picture? */
|
/freebsd-10-stable/sys/x86/x86/ |
H A D | dump_machdep.c | 284 ehdr.e_ident[EI_MAG0] = ELFMAG0; 285 ehdr.e_ident[EI_MAG1] = ELFMAG1; 286 ehdr.e_ident[EI_MAG2] = ELFMAG2; 287 ehdr.e_ident[EI_MAG3] = ELFMAG3; 288 ehdr.e_ident[EI_CLASS] = ELF_CLASS; 290 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 292 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 294 ehdr.e_ident[EI_VERSION] = EV_CURRENT; 295 ehdr.e_ident[EI_OSABI] = ELFOSABI_STANDALONE; /* XXX big picture? */
|
/freebsd-10-stable/contrib/binutils/include/elf/ |
H A D | external.h | 41 unsigned char e_ident[16]; /* ELF "magic number" */ member in struct:__anon509 58 unsigned char e_ident[16]; /* ELF "magic number" */ member in struct:__anon510
|
/freebsd-10-stable/sys/ia64/ia64/ |
H A D | dump_machdep.c | 339 ehdr.e_ident[EI_MAG0] = ELFMAG0; 340 ehdr.e_ident[EI_MAG1] = ELFMAG1; 341 ehdr.e_ident[EI_MAG2] = ELFMAG2; 342 ehdr.e_ident[EI_MAG3] = ELFMAG3; 343 ehdr.e_ident[EI_CLASS] = ELFCLASS64; 345 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; 347 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; 349 ehdr.e_ident[EI_VERSION] = EV_CURRENT; 350 ehdr.e_ident[EI_OSABI] = ELFOSABI_STANDALONE; /* XXX big picture? */
|
/freebsd-10-stable/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.h | 61 unsigned char e_ident[llvm::ELF::EI_NIDENT]; ///< ELF file identification. member in struct:elf::ELFHeader 84 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS32; 93 return e_ident[llvm::ELF::EI_CLASS] == llvm::ELF::ELFCLASS64;
|
/freebsd-10-stable/usr.bin/elf2aout/ |
H A D | elf2aout.c | 112 if (e->e_ident[EI_CLASS] != ELFCLASS64) 114 data = e->e_ident[EI_DATA]; 117 if (e->e_ident[EI_VERSION] != EV_CURRENT)
|
/freebsd-10-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | util.c | 106 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) 108 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64) 111 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]);
|
/freebsd-10-stable/sys/xen/interface/ |
H A D | elfstructs.h | 51 * e_ident[] identification indexes 64 #define EI_NIDENT 16 /* Size of e_ident[] */ 66 /* e_ident[] magic number */ 67 #define ELFMAG0 0x7f /* e_ident[EI_MAG0] */ 68 #define ELFMAG1 'E' /* e_ident[EI_MAG1] */ 69 #define ELFMAG2 'L' /* e_ident[EI_MAG2] */ 70 #define ELFMAG3 'F' /* e_ident[EI_MAG3] */ 74 /* e_ident[] file class */ 80 /* e_ident[] data encoding */ 86 /* e_ident[] Operatin 111 unsigned char e_ident[EI_NIDENT]; /* ELF Identification */ member in struct:elfhdr 129 unsigned char e_ident[EI_NIDENT]; /* Id bytes */ member in struct:__anon11684 [all...] |
/freebsd-10-stable/lib/libc/ia64/gen/ |
H A D | unwind.c | 70 assert(ehdr->e_ident[EI_CLASS] == ELFCLASS64); 71 assert(ehdr->e_ident[EI_DATA] == ELFDATA2LSB);
|
/freebsd-10-stable/lib/libkvm/ |
H A D | kvm_powerpc.c | 62 if (eh->e_ident[EI_CLASS] != ELFCLASS32) 64 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 66 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 68 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE)
|
H A D | kvm_powerpc64.c | 62 if (eh->e_ident[EI_CLASS] != ELFCLASS64) 64 if (eh->e_ident[EI_DATA] != ELFDATA2MSB) 66 if (eh->e_ident[EI_VERSION] != EV_CURRENT) 68 if (eh->e_ident[EI_OSABI] != ELFOSABI_STANDALONE)
|
/freebsd-10-stable/sys/compat/linux/ |
H A D | linux_vdso.c | 112 ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || 113 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || 114 ehdr->e_ident[EI_VERSION] != EV_CURRENT || 138 ehdr->e_ident[EI_OSABI] = ELFOSABI_LINUX;
|
/freebsd-10-stable/usr.bin/ldd/ |
H A D | ldd.c | 309 hdr.elf32.e_ident[EI_CLASS] == ELFCLASS32) { 338 if (hdr.elf32.e_ident[EI_OSABI] == ELFOSABI_FREEBSD) { 351 hdr.elf.e_ident[EI_CLASS] == ELF_TARG_CLASS) { 380 switch (hdr.elf.e_ident[EI_OSABI]) {
|
/freebsd-10-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 143 bcopy(src->e_ident, dst->e_ident, EI_NIDENT); 276 bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) { 288 if (hdr.e32.e_ident[EI_DATA] != order) 293 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS64) { 306 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) { 341 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) {
|
/freebsd-10-stable/sys/dev/ksyms/ |
H A D | ksyms.c | 250 hdr->kh_ehdr.e_ident[EI_PAD] = 0; 251 hdr->kh_ehdr.e_ident[EI_MAG0] = ELFMAG0; 252 hdr->kh_ehdr.e_ident[EI_MAG1] = ELFMAG1; 253 hdr->kh_ehdr.e_ident[EI_MAG2] = ELFMAG2; 254 hdr->kh_ehdr.e_ident[EI_MAG3] = ELFMAG3; 255 hdr->kh_ehdr.e_ident[EI_DATA] = ELF_DATA; 256 hdr->kh_ehdr.e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 257 hdr->kh_ehdr.e_ident[EI_CLASS] = ELF_CLASS; 258 hdr->kh_ehdr.e_ident[EI_VERSION] = EV_CURRENT; 259 hdr->kh_ehdr.e_ident[EI_ABIVERSIO [all...] |
/freebsd-10-stable/usr.bin/elfdump/ |
H A D | elfdump.c | 95 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 96 offsetof(Elf32_Ehdr, e_ident[EI_DATA]), 97 offsetof(Elf32_Ehdr, e_ident[EI_OSABI]), 136 offsetof(Elf32_Ehdr, e_ident[EI_CLASS]), 137 offsetof(Elf32_Ehdr, e_ident[EI_DATA]), 138 offsetof(Elf32_Ehdr, e_ident[EI_OSABI]), 1056 switch (e->e_ident[EI_CLASS]) { 1076 switch (e->e_ident[EI_CLASS]) { 1079 switch (e->e_ident[EI_DATA]) { 1092 switch (e->e_ident[EI_DAT [all...] |
/freebsd-10-stable/contrib/file/src/ |
H A D | elfclass.h | 32 swap = (u.c[sizeof(int32_t) - 1] + 1) != elfhdr.e_ident[EI_DATA];
|
/freebsd-10-stable/usr.bin/gcore/ |
H A D | elfcore.c | 140 switch (hdr.e_ident[EI_DATA]) { 432 ehdr->e_ident[EI_MAG0] = ELFMAG0; 433 ehdr->e_ident[EI_MAG1] = ELFMAG1; 434 ehdr->e_ident[EI_MAG2] = ELFMAG2; 435 ehdr->e_ident[EI_MAG3] = ELFMAG3; 436 ehdr->e_ident[EI_CLASS] = ELF_CLASS; 437 ehdr->e_ident[EI_DATA] = ELF_DATA; 438 ehdr->e_ident[EI_VERSION] = EV_CURRENT; 439 ehdr->e_ident[EI_OSABI] = ELFOSABI_FREEBSD; 440 ehdr->e_ident[EI_ABIVERSIO [all...] |