/titanic_51/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | ehdr.c | 56 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/ in print_ehdr() 295 * Elf_ehdr() does not display all of e_ident[], so we in print_ehdr() 310 value = conv_magic_value(ehdr->e_ident[i]); in print_ehdr() 315 value = conv_ehdr_class(ehdr->e_ident[EI_CLASS], in print_ehdr() 321 value = conv_ehdr_data(ehdr->e_ident[EI_DATA], in print_ehdr() 328 ehdr->e_ident[EI_VERSION], 0, &inv_buf); in print_ehdr() 333 value = conv_ehdr_osabi(ehdr->e_ident[EI_OSAB in print_ehdr() [all...] |
H A D | ehdr.msg | 41 @ 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\ 209 object. This information is found in the e_ident array in\n\ 212 If ehdr:e_ident is called without any argument, all values\n\ 213 the value in e_ident are shown. If called with the index\n\ 214 argument, the selected element of e_ident i [all...] |
/titanic_51/usr/src/grub/grub-0.97/stage2/ |
H A D | i386-elf.h | 65 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) \
|
/titanic_51/usr/src/tools/btxld/ |
H A D | elfh.h | 31 /* 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)
|
/titanic_51/usr/src/cmd/sgs/liblddbg/common/ |
H A D | elf.c | 38 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 D | syms.c | 243 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, sym, in Dbg_syms_entered() 258 conv_ehdr_type(ifl->ifl_ehdr->e_ident[EI_OSABI], in Dbg_syms_process() 295 MSG_INTL(MSG_STR_ORIGINAL), ofl->ofl_dehdr->e_ident[EI_OSABI], in Dbg_syms_cap_convert() 316 MSG_INTL(MSG_STR_ENTERED), ofl->ofl_dehdr->e_ident[EI_OSABI], in Dbg_syms_cap_local() 378 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_syms_ignore() 391 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_syms_old() 407 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, sym, in Dbg_syms_new() 427 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in Dbg_syms_updated() 446 uchar_t osabi = ofl->ofl_dehdr->e_ident[EI_OSABI]; in Dbg_syms_resolving() 477 MSG_INTL(MSG_STR_RESOLVED), ofl->ofl_dehdr->e_ident[EI_OSAB in Dbg_syms_resolved() [all...] |
H A D | map.c | 118 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()
|
/titanic_51/usr/src/cmd/sgs/ld/common/ |
H A D | ld.c | 78 uchar_t e_ident[EI_NIDENT]; /* ident bytes */ member 203 *class_ret = ehdr->e_ident[EI_CLASS]; in archive() 211 *class_ret = ehdr->e_ident[EI_CLASS]; in archive() 406 if ((hdr.ehdr.e_ident[EI_MAG0] == ELFMAG0) && in process_args() 407 (hdr.ehdr.e_ident[EI_MAG1] == ELFMAG1) && in process_args() 408 (hdr.ehdr.e_ident[EI_MAG2] == ELFMAG2) && in process_args() 409 (hdr.ehdr.e_ident[EI_MAG3] == ELFMAG3)) { in process_args() 411 class = hdr.ehdr.e_ident[EI_CLASS]; in process_args() 431 (ld_elfdata == hdr.ehdr.e_ident[EI_DATA]) ? in process_args()
|
/titanic_51/usr/src/cmd/dis/ |
H A D | dis_main.c | 505 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 || in dis_file() 506 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file() 517 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 || in dis_file() 518 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file() 533 if (ehdr.e_ident[EI_CLASS] != ELFCLASS64 || in dis_file() 534 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file() 553 if (ehdr.e_ident[EI_CLASS] != ELFCLASS32 || in dis_file() 554 ehdr.e_ident[EI_DATA] != ELFDATA2MSB) { in dis_file() 567 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) { in dis_file() 569 } else if (ehdr.e_ident[EI_CLAS in dis_file() [all...] |
/titanic_51/usr/src/lib/libc/sparc/crt/ |
H A D | _rtld.c | 148 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()
|
/titanic_51/usr/src/lib/libc/i386/crt/ |
H A D | _rtld.c | 149 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()
|
/titanic_51/usr/src/cmd/mdb/common/modules/krtld/ |
H A D | krtld.c | 148 ehdr->e_ident[EI_MAG0], ehdr->e_ident[EI_MAG1], in dump_ehdr() 149 ehdr->e_ident[EI_MAG2], ehdr->e_ident[EI_MAG3]); in dump_ehdr() 152 ehdr->e_ident[EI_CLASS], ehdr->e_ident[EI_DATA]); in dump_ehdr()
|
/titanic_51/usr/src/cmd/mdb/common/mdb/ |
H A D | mdb_gelf.c | 180 bcopy(src->e_ident, dst->e_ident, sizeof (dst->e_ident)); in mdb_gelf_ehdr_to_gehdr() 484 if (gf->gf_ehdr.e_ident[EI_CLASS] == ELFCLASS32) in mdb_gelf_dyns_set() 496 if (gf->gf_ehdr.e_ident[EI_CLASS] == ELFCLASS32) { in mdb_gelf_dyns_set() 587 bcopy(ehdr->e_ident, gf->gf_ehdr.e_ident, EI_NIDENT); in gelf32_init() 733 bcmp(&ehp->e_ident[EI_MAG0], ELFMAG, SELFMAG) != 0) { in mdb_gelf_check() 739 if (ehp->e_ident[EI_DATA] != order) { in mdb_gelf_check() 783 switch (ehdr.h32.e_ident[EI_CLAS in mdb_gelf_create() [all...] |
/titanic_51/usr/src/cmd/sgs/rtld.4.x/ |
H A D | rtld.4.x.c | 392 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)
|
/titanic_51/usr/src/tools/ctf/cvt/ |
H A D | util.c | 106 if (ehdr.e_ident[EI_CLASS] == ELFCLASS32) in elf_ptrsz() 108 else if (ehdr.e_ident[EI_CLASS] == ELFCLASS64) in elf_ptrsz() 111 terminate("unknown ELF class %d\n", ehdr.e_ident[EI_CLASS]); in elf_ptrsz()
|
/titanic_51/usr/src/lib/libdtrace/common/ |
H A D | dt_link.c | 476 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() 480 elf_file.ehdr.e_ident[EI_VERSION] = EV_CURRENT; 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() 485 elf_file.ehdr.e_ident[EI_DATA] = ELFDATA2LSB; in dump_elf32() 613 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; in dump_elf64() 614 elf_file.ehdr.e_ident[EI_MAG in dump_elf64() [all...] |
/titanic_51/usr/src/cmd/sgs/elfdump/common/ |
H A D | dwarf.c | 46 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() [all...] |
/titanic_51/usr/src/lib/libm/common/m9x/ |
H A D | __fex_sym.c | 119 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()
|
/titanic_51/usr/src/boot/sys/boot/common/ |
H A D | load_elf.c | 121 if (ehdr->e_ident[EI_CLASS] != ELF_TARG_CLASS || /* Layout ? */ in __elfN() 122 ehdr->e_ident[EI_DATA] != ELF_TARG_DATA || in __elfN() 123 ehdr->e_ident[EI_VERSION] != EV_CURRENT || /* Version ? */ in __elfN() 388 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN() 408 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN() 432 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN() 441 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN() 462 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN() 473 if (ehdr->e_ident[EI_OSABI] == ELFOSABI_SOLARIS) { in __elfN() 488 if (ehdr->e_ident[EI_OSAB in __elfN() [all...] |
/titanic_51/usr/src/uts/common/fs/objfs/ |
H A D | objfs_data.c | 607 bcopy(ELFMAG, ehdr.e_ident, SELFMAG); in objfs_data_read() 609 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; in objfs_data_read() 611 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; in objfs_data_read() 613 ehdr.e_ident[EI_VERSION] = EV_CURRENT; in objfs_data_read() 616 ehdr.e_ident[EI_CLASS] = ELFCLASS64; in objfs_data_read() 622 ehdr.e_ident[EI_CLASS] = ELFCLASS32; in objfs_data_read()
|
/titanic_51/usr/src/cmd/sgs/libld/common/ |
H A D | ldmain.c | 171 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() 257 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in ld_main() 260 ofl->ofl_dehdr->e_ident[EI_OSABI], ofl->ofl_dehdr->e_machine, in ld_main()
|
/titanic_51/usr/src/cmd/file/ |
H A D | elf_read.c | 109 return (EI_Ehdr.e_ident[EI_CLASS]); in get_class() 116 return (EI_Ehdr.e_ident[EI_VERSION] ? in get_version() 117 EI_Ehdr.e_ident[EI_VERSION] : 1); in get_version() 123 return (EI_Ehdr.e_ident[EI_DATA]); in get_format()
|
/titanic_51/usr/src/lib/libproc/common/ |
H A D | Pgcore.c | 1104 ehdr.e_ident[EI_MAG0] = ELFMAG0; in Pfgcore() 1105 ehdr.e_ident[EI_MAG1] = ELFMAG1; in Pfgcore() 1106 ehdr.e_ident[EI_MAG2] = ELFMAG2; in Pfgcore() 1107 ehdr.e_ident[EI_MAG3] = ELFMAG3; in Pfgcore() 1110 ehdr.e_ident[EI_CLASS] = ELFCLASS32; in Pfgcore() 1113 ehdr.e_ident[EI_DATA] = ELFDATA2MSB; in Pfgcore() 1116 ehdr.e_ident[EI_DATA] = ELFDATA2LSB; in Pfgcore() 1120 ehdr.e_ident[EI_VERSION] = EV_CURRENT; in Pfgcore() 1162 ehdr.e_ident[EI_MAG0] = ELFMAG0; in Pfgcore() 1163 ehdr.e_ident[EI_MAG in Pfgcore() [all...] |
/titanic_51/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 345 bcopy(src->e_ident, dst->e_ident, EI_NIDENT); in ehdr_to_gelf() 481 bcmp(&hdr.e32.e_ident[EI_MAG0], ELFMAG, SELFMAG) == 0) { in ctf_fdcreate_int() 493 if (hdr.e32.e_ident[EI_DATA] != order) in ctf_fdcreate_int() 498 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS64) { in ctf_fdcreate_int() 511 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) { in ctf_fdcreate_int() 546 if (hdr.e32.e_ident[EI_CLASS] == ELFCLASS32) { in ctf_fdcreate_int()
|
/titanic_51/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfconst.c | 377 *osabi = state.elf.obj_state.s32->os_ehdr->e_ident[EI_OSABI]; in init_libconv_strings() 380 *osabi = state.elf.obj_state.s64->os_ehdr->e_ident[EI_OSABI]; in init_libconv_strings() 440 cur_osabi = state.elf.obj_state.s32->os_ehdr->e_ident[EI_OSABI]; in invalidate_libconv_strings() 443 cur_osabi = state.elf.obj_state.s64->os_ehdr->e_ident[EI_OSABI]; in invalidate_libconv_strings()
|