Searched refs:elfhdr (Results 1 – 4 of 4) sorted by relevance
/illumos-gate/usr/src/tools/btxld/ |
H A D | elfh.c | 50 const struct elfh elfhdr = { variable 64 htole16(sizeof(elfhdr.e)), /* e_ehsize */ 65 htole16(sizeof(elfhdr.p[0])), /* e_phentsize */ 66 htole16(sizeof(elfhdr.p) / sizeof(elfhdr.p[0])), /* e_phnum */ 67 htole16(sizeof(elfhdr.sh[0])), /* e_shentsize */ 68 htole16(sizeof(elfhdr.sh) / sizeof(elfhdr.sh[0])), /* e_shnum */ 74 htole32(sizeof(elfhdr)), /* p_offset */ 103 htole32(sizeof(elfhdr.shstrtab)), /* sh_size */
|
H A D | elfh.h | 44 extern const struct elfh elfhdr; /* ELF header template */
|
H A D | btxld.c | 434 eh = elfhdr; in puthdr()
|
/illumos-gate/usr/src/psm/stand/boot/common/ |
H A D | readfile.c | 51 #define elfhdr ex.Elfhdr macro 184 i = xread(fd, (char *)&elfhdr, sizeof (Elf64_Ehdr)); in readfile() 192 if (*(int *)&elfhdr.e_ident == *(int *)(ELFMAG)) { in readfile() 194 int is64 = (elfhdr.e_ident[EI_CLASS] == in readfile() 199 *(int *)&elfhdr.e_ident[0], in readfile() 200 *(int *)&elfhdr.e_ident[4], in readfile() 201 *(int *)&elfhdr.e_ident[8], in readfile() 202 *(int *)&elfhdr.e_ident[12]); in readfile() 203 dprintf("e_machine\t0x%x\n", elfhdr.e_machine); in readfile() 207 (u_longlong_t)elfhdr.e_entry)); in readfile() [all …]
|