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

1234

/illumos-gate/usr/src/tools/btxld/
H A Delfh.h31 /* e_ident */
32 #define IS_ELF(ehdr) ((ehdr).e_ident[EI_MAG0] == ELFMAG0 && \
33 (ehdr).e_ident[EI_MAG1] == ELFMAG1 && \
34 (ehdr).e_ident[EI_MAG2] == ELFMAG2 && \
35 (ehdr).e_ident[EI_MAG3] == ELFMAG3)
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h65 unsigned char e_ident[EI_NIDENT]; /* basic identification block */ member in struct:__anon2184
96 ((h.e_ident[EI_MAG0] == ELFMAG0) & (h.e_ident[EI_MAG1] == ELFMAG1) \
97 & (h.e_ident[EI_MAG2] == ELFMAG2) & (h.e_ident[EI_MAG3] == ELFMAG3) \
98 & (h.e_ident[EI_CLASS] == ELFCLASS32) & (h.e_ident[EI_DATA] == ELFDATA2LSB) \
99 & (h.e_ident[EI_VERSION] == EV_CURRENT) & (h.e_type == ET_EXEC) \
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c38 Byte *byte = &(ehdr->e_ident[0]);
41 uchar_t osabi = ehdr->e_ident[EI_OSABI];
52 conv_ehdr_class(ehdr->e_ident[EI_CLASS], 0, &inv_buf1),
53 conv_ehdr_data(ehdr->e_ident[EI_DATA], 0, &inv_buf2));
55 conv_ehdr_osabi(ehdr->e_ident[EI_OSABI], 0, &inv_buf1),
56 conv_ehdr_abivers(ehdr->e_ident[EI_OSABI],
57 ehdr->e_ident[EI_ABIVERSION], CONV_FMT_DECIMAL, &inv_buf2));
H A Dsyms.c243 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, sym,
258 conv_ehdr_type(ifl->ifl_ehdr->e_ident[EI_OSABI],
295 MSG_INTL(MSG_STR_ORIGINAL), ofl->ofl_dehdr->e_ident[EI_OSABI],
316 MSG_INTL(MSG_STR_ENTERED), ofl->ofl_dehdr->e_ident[EI_OSABI],
378 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine,
391 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine,
407 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, sym,
427 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine,
446 uchar_t osabi = ofl->ofl_dehdr->e_ident[EI_OSABI];
477 MSG_INTL(MSG_STR_RESOLVED), ofl->ofl_dehdr->e_ident[EI_OSAB
[all...]
H A Dmap.c118 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine,
135 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine,
244 Dbg_ent_entry(lml, ofl->ofl_dehdr->e_ident[EI_OSABI],
281 Dbg_seg_desc_entry(ofl->ofl_lml, ofl->ofl_dehdr->e_ident[EI_OSABI],
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c56 EHDR_CMD_T_E_IDENT = 1, /* ehdr:e_ident */
71 /* Commands that correspond to the e_ident[] array in ELF hdr */
231 * case, index of item in e_ident[] array to display, or
281 * from ehdr:dump or ehdr:e_ident/
295 * Elf_ehdr() does not display all of e_ident[], so we
310 value = conv_magic_value(ehdr->e_ident[i]);
315 value = conv_ehdr_class(ehdr->e_ident[EI_CLASS],
321 value = conv_ehdr_data(ehdr->e_ident[EI_DATA],
328 ehdr->e_ident[EI_VERSION], 0, &inv_buf);
333 value = conv_ehdr_osabi(ehdr->e_ident[EI_OSAB
[all...]
/illumos-gate/usr/src/cmd/sgs/ld/common/
H A Dld.c78 uchar_t e_ident[EI_NIDENT]; /* ident bytes */ member in struct:__anon1666::__anon1667
203 *class_ret = ehdr->e_ident[EI_CLASS];
211 *class_ret = ehdr->e_ident[EI_CLASS];
406 if ((hdr.ehdr.e_ident[EI_MAG0] == ELFMAG0) &&
407 (hdr.ehdr.e_ident[EI_MAG1] == ELFMAG1) &&
408 (hdr.ehdr.e_ident[EI_MAG2] == ELFMAG2) &&
409 (hdr.ehdr.e_ident[EI_MAG3] == ELFMAG3)) {
411 class = hdr.ehdr.e_ident[EI_CLASS];
431 (ld_elfdata == hdr.ehdr.e_ident[EI_DATA]) ?
/illumos-gate/usr/src/cmd/dis/
H A Ddis_main.c505 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 ||
506 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) {
517 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 ||
518 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) {
533 if (ehdr.e_ident[EI_CLASS] != ELFCLASS64 ||
534 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) {
553 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 ||
554 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) {
567 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) {
569 } else if (ehdr.e_ident[EI_CLAS
[all...]
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c149 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
150 ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
151 ehdr->e_ident[EI_MAG2] != ELFMAG2 ||
152 ehdr->e_ident[EI_MAG3] != ELFMAG3)
154 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 ||
155 ehdr->e_ident[EI_DATA] != ELFDATA2LSB)
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c148 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
149 ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
150 ehdr->e_ident[EI_MAG2] != ELFMAG2 ||
151 ehdr->e_ident[EI_MAG3] != ELFMAG3)
153 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 ||
154 ehdr->e_ident[EI_DATA] != ELFDATA2MSB)
/illumos-gate/usr/src/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]);
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c148 ehdr->e_ident[EI_MAG0], ehdr->e_ident[EI_MAG1],
149 ehdr->e_ident[EI_MAG2], ehdr->e_ident[EI_MAG3]);
152 ehdr->e_ident[EI_CLASS], ehdr->e_ident[EI_DATA]);
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_lib.c120 bcopy(src->e_ident, dst->e_ident, EI_NIDENT);
253 bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) {
265 if (hdr.e32.e_ident[EI_DATA] != order)
270 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS64) {
283 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) {
318 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) {
/illumos-gate/usr/src/cmd/sgs/rtld.4.x/
H A Drtld.4.x.c392 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 ||
393 ehdr->e_ident[EI_MAG1] != ELFMAG1 ||
394 ehdr->e_ident[EI_MAG2] != ELFMAG2 ||
395 ehdr->e_ident[EI_MAG3] != ELFMAG3)
397 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 ||
398 ehdr->e_ident[EI_DATA] != ELFDATA2MSB)
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h4 #define EI_NIDENT 16 /* Size of e_ident array. */
166 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon2085
183 unsigned char e_ident[EI_NIDENT]; /* File identification. */ member in struct:__anon2086
/illumos-gate/usr/src/lib/libshell/common/data/
H A Dmsg.c93 const char e_ident[] = "%s: is not an identifier"; variable
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c119 if (h.e_ident[EI_MAG0] != ELFMAG0 ||
120 h.e_ident[EI_MAG1] != ELFMAG1 ||
121 h.e_ident[EI_MAG2] != ELFMAG2 ||
122 h.e_ident[EI_MAG3] != ELFMAG3 ||
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c109 return (EI_Ehdr.e_ident[EI_CLASS]);
116 return (EI_Ehdr.e_ident[EI_VERSION] ?
117 EI_Ehdr.e_ident[EI_VERSION] : 1);
123 return (EI_Ehdr.e_ident[EI_DATA]);
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dldmain.c171 def_ehdr.e_ident[EI_CLASS] = ld_targ.t_m.m_class;
172 def_ehdr.e_ident[EI_DATA] = ld_targ.t_m.m_data;
257 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine,
260 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine,
/illumos-gate/usr/src/uts/sparc/krtld/
H A Dkobj_isa.c52 return (h->e_ident[EI_DATA] == ELFDATA2MSB &&
/illumos-gate/usr/src/uts/intel/amd64/krtld/
H A Dkobj_isa.c46 return ((h->e_ident[EI_DATA] == ELFDATA2LSB) &&
/illumos-gate/usr/src/uts/intel/ia32/krtld/
H A Dkobj_isa.c46 return ((h->e_ident[EI_DATA] == ELFDATA2LSB) &&
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c180 bcopy(src->e_ident, dst->e_ident, sizeof (dst->e_ident));
484 if (gf->gf_ehdr.e_ident[EI_CLASS] == ELFCLASS32)
496 if (gf->gf_ehdr.e_ident[EI_CLASS] == ELFCLASS32) {
587 bcopy(ehdr->e_ident, gf->gf_ehdr.e_ident, EI_NIDENT);
733 bcmp(&ehp->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) {
739 if (ehp->e_ident[EI_DATA] != order) {
783 switch (ehdr.h32.e_ident[EI_CLAS
[all...]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Ddwarf.c46 uchar_t *e_ident; /* ehdr->e_ident */ member in struct:__anon1416
323 &cur_pc, state->cieRflag, state->e_ident, B_FALSE,
687 uint64_t sh_addr, Half e_machine, uchar_t *e_ident, uint64_t gotaddr)
702 cfi_state.e_ident = e_ident;
704 cfi_state.do_swap = _elf_sys_encoding() != e_ident[EI_DATA];
841 ciePflag, e_ident, B_FALSE, sh_addr,
926 e_ident, B_FALSE, sh_addr, off + ndx, gotaddr)) {
942 (cfi_state.cieRflag & ~DW_EH_PE_pcrel), e_ident,
686 dump_eh_frame(const char *file, char *sh_name, uchar_t *data, size_t datasize, uint64_t sh_addr, Half e_machine, uchar_t *e_ident, uint64_t gotaddr) argument
[all...]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c477 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0;
478 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1;
479 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2;
480 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3;
481 elf_file.ehdr.e_ident[EI_VERSION] = EV_CURRENT;
482 elf_file.ehdr.e_ident[EI_CLASS] = ELFCLASS32;
484 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2MSB;
486 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2LSB;
614 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0;
615 elf_file.ehdr.e_ident[EI_MAG
[all...]

Completed in 373 milliseconds

1234