Lines Matching defs:ehdr
103 Elf_Ehdr ehdr;
111 if (pread(fd, &ehdr, sizeof(ehdr), 0) != sizeof(ehdr))
114 if (memcmp(ehdr.e_ident, ELFMAG, SELFMAG) != 0 ||
115 ehdr.e_ident[EI_CLASS] != ELFCLASS)
118 switch (ehdr.e_machine) {
128 off = ehdr.e_shoff;
129 for (i = 0; i < ehdr.e_shnum; i++, off += sizeof(symhdr)) {
136 if (i == ehdr.e_shnum || symhdr.sh_offset == 0)
145 off = ehdr.e_shoff + symhdr.sh_link * sizeof(symhdr);