Searched refs:e_ident (Results 1 - 25 of 71) sorted by relevance

123

/freebsd-10-stable/contrib/binutils/bfd/
H A Delf32-i386-fbsd.c47 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
50 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
H A Delf64-alpha-fbsd.c47 i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
50 memcpy (&i_ehdrp->e_ident[EI_ABIVERSION], "FreeBSD", 8);
H A Delfcore.h101 if (x_ehdr.e_ident[EI_CLASS] != ELFCLASS)
105 switch (x_ehdr.e_ident[EI_DATA])
/freebsd-10-stable/lib/libelf/
H A Dgelf_ehdr.c68 (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 Dlibelf_ehdr.c90 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 Ddump_machdep.c217 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 Ddump_machdep.c313 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 Ddump_machdep.c276 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 Ddump_machdep.c284 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 Dexternal.h41 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 Ddump_machdep.c339 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 DELFHeader.h61 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 Delf2aout.c112 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 Dutil.c106 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 Delfstructs.h51 * 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 Dunwind.c70 assert(ehdr->e_ident[EI_CLASS] == ELFCLASS64);
71 assert(ehdr->e_ident[EI_DATA] == ELFDATA2LSB);
/freebsd-10-stable/lib/libkvm/
H A Dkvm_powerpc.c62 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 Dkvm_powerpc64.c62 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 Dlinux_vdso.c112 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 Dldd.c309 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 Dctf_lib.c143 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 Dksyms.c250 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 Delfdump.c95 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 Delfclass.h32 swap = (u.c[sizeof(int32_t) - 1] + 1) != elfhdr.e_ident[EI_DATA];
/freebsd-10-stable/usr.bin/gcore/
H A Delfcore.c140 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...]

Completed in 155 milliseconds

123