Lines Matching refs:ehdr

33 Elf_ehdr(Lm_list *lml, Ehdr *ehdr, Shdr *shdr0)  in Elf_ehdr()  argument
38 Byte *byte = &(ehdr->e_ident[0]); in Elf_ehdr()
41 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in Elf_ehdr()
42 Half mach = ehdr->e_machine; 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()
60 conv_ehdr_vers(ehdr->e_version, 0, &inv_buf2)); in Elf_ehdr()
62 conv_ehdr_type(osabi, ehdr->e_type, 0, &inv_buf1)); in Elf_ehdr()
69 flgs = conv_ehdr_flags(mach, ehdr->e_flags, 0, &flags_buf); in Elf_ehdr()
79 if (ehdr->e_shstrndx == SHN_XINDEX) { in Elf_ehdr()
81 EC_ADDR(ehdr->e_entry), ehdr->e_ehsize); in Elf_ehdr()
84 dbg_print(lml, MSG_ORIG(MSG_ELF_ESIZE), EC_ADDR(ehdr->e_entry), in Elf_ehdr()
85 ehdr->e_ehsize, ehdr->e_shstrndx); in Elf_ehdr()
87 if (ehdr->e_shnum == 0) { in Elf_ehdr()
88 dbg_print(lml, MSG_ORIG(MSG_ELFX_SHOFF), EC_OFF(ehdr->e_shoff), in Elf_ehdr()
89 ehdr->e_shentsize); in Elf_ehdr()
92 dbg_print(lml, MSG_ORIG(MSG_ELF_SHOFF), EC_OFF(ehdr->e_shoff), in Elf_ehdr()
93 ehdr->e_shentsize, ehdr->e_shnum); in Elf_ehdr()
95 if (ehdr->e_phnum == PN_XNUM) { in Elf_ehdr()
96 dbg_print(lml, MSG_ORIG(MSG_ELFX_PHOFF), EC_OFF(ehdr->e_phoff), in Elf_ehdr()
97 ehdr->e_phentsize); in Elf_ehdr()
100 dbg_print(lml, MSG_ORIG(MSG_ELF_PHOFF), EC_OFF(ehdr->e_phoff), in Elf_ehdr()
101 ehdr->e_phentsize, ehdr->e_phnum); in Elf_ehdr()