Home
last modified time | relevance | path

Searched refs:e_ident (Results 1 – 25 of 88) sorted by relevance

1234

/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c340 ehdr->e_ident[EI_OSABI], in print_ehdr()
388 ehdr->e_ident[i]); in print_ehdr()
410 ehdr->e_ident[EI_DATA], 0, in print_ehdr()
428 ehdr->e_ident[EI_OSABI], in print_ehdr()
574 c = ehdr->e_ident[EI_CLASS]; in print_ehdr()
583 c = ehdr->e_ident[EI_DATA]; in print_ehdr()
592 c = ehdr->e_ident[EI_VERSION]; in print_ehdr()
601 c = ehdr->e_ident[EI_OSABI]; in print_ehdr()
612 c = ehdr->e_ident[EI_ABIVERSION]; in print_ehdr()
1209 ehdr->e_ident[ei_ndx] = mag; in cmd_body()
[all …]
H A Dehdr.msg41 @ MSG_DEBUG_EI_S_S_OK "ehdr.e_ident[%s]: value unchanged: %s\n";
42 @ MSG_DEBUG_EI_S_S_CHG "ehdr.e_ident[%s]: change from %s to %s\n"
43 @ MSG_DEBUG_EI_D_X_OK "ehdr.e_ident[%d]: value unchanged: %#x\n"
44 @ MSG_DEBUG_EI_D_X_CHG "ehdr.e_ident[%d]: change from %#x to %#x\n"
99 Index of element of e_ident[] array. This can be\n\
104 New value for element of e_ident[] array. This can be\n\
213 the value in e_ident are shown. If called with the index\n\
254 Note: The e_ident[EI_VERSION] element of the ELF header\n\
495 e_ident[EI_MAG3] field is updated with the new value.\n\
582 @ MSG_STR_EIDENT_HDR "e_ident:\n"
[all …]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h65 unsigned char e_ident[EI_NIDENT]; /* basic identification block */ member
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/tools/btxld/
H A Delfh.h32 #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/cmd/sgs/liblddbg/common/
H A Delf.c38 Byte *byte = &(ehdr->e_ident[0]); in Elf_ehdr()
41 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in Elf_ehdr()
52 conv_ehdr_class(ehdr->e_ident[EI_CLASS], 0, &inv_buf1), in Elf_ehdr()
53 conv_ehdr_data(ehdr->e_ident[EI_DATA], 0, &inv_buf2)); in Elf_ehdr()
55 conv_ehdr_osabi(ehdr->e_ident[EI_OSABI], 0, &inv_buf1), in Elf_ehdr()
56 conv_ehdr_abivers(ehdr->e_ident[EI_OSABI], in Elf_ehdr()
57 ehdr->e_ident[EI_ABIVERSION], CONV_FMT_DECIMAL, &inv_buf2)); in Elf_ehdr()
H A Dsyms.c236 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, sym, in Dbg_syms_entered()
251 conv_ehdr_type(ifl->ifl_ehdr->e_ident[EI_OSABI], in Dbg_syms_process()
288 MSG_INTL(MSG_STR_ORIGINAL), ofl->ofl_dehdr->e_ident[EI_OSABI], in Dbg_syms_cap_convert()
309 MSG_INTL(MSG_STR_ENTERED), ofl->ofl_dehdr->e_ident[EI_OSABI], in Dbg_syms_cap_local()
371 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_syms_ignore()
384 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_syms_old()
420 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_syms_updated()
439 uchar_t osabi = ofl->ofl_dehdr->e_ident[EI_OSABI]; in Dbg_syms_resolving()
470 MSG_INTL(MSG_STR_RESOLVED), ofl->ofl_dehdr->e_ident[EI_OSABI], in Dbg_syms_resolved()
511 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_syms_copy_reloc()
[all …]
H A Dmap.c118 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_map_size_old()
135 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_map_symbol()
244 Dbg_ent_entry(lml, ofl->ofl_dehdr->e_ident[EI_OSABI], in Dbg_map_ent()
281 Dbg_seg_desc_entry(ofl->ofl_lml, ofl->ofl_dehdr->e_ident[EI_OSABI], in Dbg_map_seg()
/illumos-gate/usr/src/cmd/dis/
H A Ddis_main.c506 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 || in dis_file()
507 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file()
518 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 || in dis_file()
519 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file()
534 if (ehdr.e_ident[EI_CLASS] != ELFCLASS64 || in dis_file()
535 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file()
554 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 || in dis_file()
555 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file()
568 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) { in dis_file()
577 if (ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file()
[all …]
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddwarf_object_detector.c150 unsigned char e_ident[EI_NIDENT]; member
265 switch(h->e_ident[EI_CLASS]) { in fill_in_elf_fields()
276 switch(h->e_ident[EI_DATA]) { in fill_in_elf_fields()
287 if (h->e_ident[EI_VERSION] != 1 /* EV_CURRENT */) { in fill_in_elf_fields()
432 magicval = magic_copy(h->e_ident,4); in is_mach_o_magic()
488 if (h.e_ident[0] == 0x7f && in dwarf_object_detector_fd()
489 h.e_ident[1] == 'E' && in dwarf_object_detector_fd()
490 h.e_ident[2] == 'L' && in dwarf_object_detector_fd()
491 h.e_ident[3] == 'F') { in dwarf_object_detector_fd()
H A Ddw_elfstructs.h61 unsigned char e_ident[EI_NIDENT]; member
79 unsigned char e_ident[EI_NIDENT]; member
H A Ddwarf_elfstructs.h69 unsigned char e_ident[EI_NIDENT]; member
87 unsigned char e_ident[EI_NIDENT]; member
/illumos-gate/usr/src/cmd/sgs/ld/common/
H A Dld.c143 uchar_t e_ident[EI_NIDENT]; /* ident bytes */ member
239 *class_ret = ehdr->e_ident[EI_CLASS]; in archive()
246 *class_ret = ehdr->e_ident[EI_CLASS]; in archive()
436 if ((hdr.ehdr.e_ident[EI_MAG0] == ELFMAG0) && in process_args()
437 (hdr.ehdr.e_ident[EI_MAG1] == ELFMAG1) && in process_args()
438 (hdr.ehdr.e_ident[EI_MAG2] == ELFMAG2) && in process_args()
439 (hdr.ehdr.e_ident[EI_MAG3] == ELFMAG3)) { in process_args()
441 class = hdr.ehdr.e_ident[EI_CLASS]; in process_args()
461 (ld_elfdata == hdr.ehdr.e_ident[EI_DATA]) ? in process_args()
/illumos-gate/usr/src/lib/libc/i386/crt/
H A D_rtld.c149 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 || in __rtld()
150 ehdr->e_ident[EI_MAG1] != ELFMAG1 || in __rtld()
151 ehdr->e_ident[EI_MAG2] != ELFMAG2 || in __rtld()
152 ehdr->e_ident[EI_MAG3] != ELFMAG3) in __rtld()
154 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 || in __rtld()
155 ehdr->e_ident[EI_DATA] != ELFDATA2LSB) in __rtld()
/illumos-gate/usr/src/lib/libc/sparc/crt/
H A D_rtld.c148 if (ehdr->e_ident[EI_MAG0] != ELFMAG0 || in __rtld()
149 ehdr->e_ident[EI_MAG1] != ELFMAG1 || in __rtld()
150 ehdr->e_ident[EI_MAG2] != ELFMAG2 || in __rtld()
151 ehdr->e_ident[EI_MAG3] != ELFMAG3) in __rtld()
153 if (ehdr->e_ident[EI_CLASS] != ELFCLASS32 || in __rtld()
154 ehdr->e_ident[EI_DATA] != ELFDATA2MSB) in __rtld()
/illumos-gate/usr/src/cmd/mdb/common/modules/krtld/
H A Dkrtld.c146 ehdr->e_ident[EI_MAG0], ehdr->e_ident[EI_MAG1], in dump_ehdr()
147 ehdr->e_ident[EI_MAG2], ehdr->e_ident[EI_MAG3]); in dump_ehdr()
150 ehdr->e_ident[EI_CLASS], ehdr->e_ident[EI_DATA]); in dump_ehdr()
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c180 bcopy(src->e_ident, dst->e_ident, sizeof (dst->e_ident)); in mdb_gelf_ehdr_to_gehdr()
587 bcopy(ehdr->e_ident, gf->gf_ehdr.e_ident, EI_NIDENT); in gelf32_init()
739 if (ehp->e_ident[EI_DATA] != order) { in mdb_gelf_check()
783 switch (ehdr.h32.e_ident[EI_CLASS]) { in mdb_gelf_create()
1371 ehdr.e_ident[EI_MAG0] = ELFMAG0; in mdb_gelf_symtab_create_mutable()
1372 ehdr.e_ident[EI_MAG1] = ELFMAG1; in mdb_gelf_symtab_create_mutable()
1373 ehdr.e_ident[EI_MAG2] = ELFMAG2; in mdb_gelf_symtab_create_mutable()
1374 ehdr.e_ident[EI_MAG3] = ELFMAG3; in mdb_gelf_symtab_create_mutable()
1375 ehdr.e_ident[EI_CLASS] = class; in mdb_gelf_symtab_create_mutable()
1376 ehdr.e_ident[EI_DATA] = data; in mdb_gelf_symtab_create_mutable()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c476 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; in dump_elf32()
477 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; in dump_elf32()
478 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; in dump_elf32()
479 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; in dump_elf32()
481 elf_file.ehdr.e_ident[EI_CLASS] = ELFCLASS32; in dump_elf32()
483 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2MSB; in dump_elf32()
613 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; in dump_elf64()
614 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; in dump_elf64()
615 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; in dump_elf64()
616 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; in dump_elf64()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Ddwarf.c46 uchar_t *e_ident; /* ehdr->e_ident */ member
323 &cur_pc, state->cieRflag, state->e_ident, B_FALSE, in dump_cfi()
687 uint64_t sh_addr, Half e_machine, uchar_t *e_ident, uint64_t gotaddr) in dump_eh_frame() argument
702 cfi_state.e_ident = e_ident; in dump_eh_frame()
704 cfi_state.do_swap = _elf_sys_encoding() != e_ident[EI_DATA]; in dump_eh_frame()
841 ciePflag, e_ident, B_FALSE, sh_addr, in dump_eh_frame()
926 e_ident, B_FALSE, sh_addr, off + ndx, gotaddr)) { in dump_eh_frame()
942 (cfi_state.cieRflag & ~DW_EH_PE_pcrel), e_ident, in dump_eh_frame()
984 cieLflag, e_ident, B_FALSE, sh_addr, in dump_eh_frame()
/illumos-gate/usr/src/lib/libm/common/m9x/
H A D__fex_sym.c119 if (h.e_ident[EI_MAG0] != ELFMAG0 || in __fex_read_syms()
120 h.e_ident[EI_MAG1] != ELFMAG1 || in __fex_read_syms()
121 h.e_ident[EI_MAG2] != ELFMAG2 || in __fex_read_syms()
122 h.e_ident[EI_MAG3] != ELFMAG3 || in __fex_read_syms()
/illumos-gate/usr/src/boot/common/
H A Dload_elf.c122 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || in __elfN()
123 ehdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */ in __elfN()
403 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN()
424 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN()
451 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN()
462 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN()
487 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN()
502 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN()
519 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN()
684 if (ehdr->e_ident[EI_OSABI] != ELFOSABI_SOLARIS) in __elfN()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dldmain.c171 def_ehdr.e_ident[EI_CLASS] = ld_targ.t_m.m_class; in ld_main()
172 def_ehdr.e_ident[EI_DATA] = ld_targ.t_m.m_data; in ld_main()
258 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in ld_main()
261 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in ld_main()
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c605 bcopy(ELFMAG, ehdr.e_ident, SELFMAG); in objfs_data_read()
607 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; in objfs_data_read()
609 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; in objfs_data_read()
611 ehdr.e_ident[EI_VERSION] = EV_CURRENT; in objfs_data_read()
614 ehdr.e_ident[EI_CLASS] = ELFCLASS64; in objfs_data_read()
620 ehdr.e_ident[EI_CLASS] = ELFCLASS32; in objfs_data_read()
/illumos-gate/usr/src/lib/libproc/common/
H A DPgcore.c1160 ehdr.e_ident[EI_MAG0] = ELFMAG0; in Pfgcore()
1161 ehdr.e_ident[EI_MAG1] = ELFMAG1; in Pfgcore()
1162 ehdr.e_ident[EI_MAG2] = ELFMAG2; in Pfgcore()
1163 ehdr.e_ident[EI_MAG3] = ELFMAG3; in Pfgcore()
1166 ehdr.e_ident[EI_CLASS] = ELFCLASS32; in Pfgcore()
1169 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; in Pfgcore()
1172 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; in Pfgcore()
1218 ehdr.e_ident[EI_MAG0] = ELFMAG0; in Pfgcore()
1219 ehdr.e_ident[EI_MAG1] = ELFMAG1; in Pfgcore()
1220 ehdr.e_ident[EI_MAG2] = ELFMAG2; in Pfgcore()
[all …]
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c110 return (EI_Ehdr.e_ident[EI_CLASS]); in get_class()
117 return (EI_Ehdr.e_ident[EI_VERSION] ? in get_version()
118 EI_Ehdr.e_ident[EI_VERSION] : 1); in get_version()
124 return (EI_Ehdr.e_ident[EI_DATA]); in get_format()
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfconst.c382 *osabi = state.elf.obj_state.s32->os_ehdr->e_ident[EI_OSABI]; in init_libconv_strings()
385 *osabi = state.elf.obj_state.s64->os_ehdr->e_ident[EI_OSABI]; in init_libconv_strings()
446 cur_osabi = state.elf.obj_state.s32->os_ehdr->e_ident[EI_OSABI]; in invalidate_libconv_strings()
449 cur_osabi = state.elf.obj_state.s64->os_ehdr->e_ident[EI_OSABI]; in invalidate_libconv_strings()

1234