Lines Matching defs:symhdr
102 Elf_Shdr symhdr, strhdr;
129 for (i = 0; i < ehdr.e_shnum; i++, off += sizeof(symhdr)) {
130 sz = pread(fd, &symhdr, sizeof(symhdr), off);
131 if (sz != sizeof(symhdr))
133 if (symhdr.sh_type == SHT_SYMTAB)
136 if (i == ehdr.e_shnum || symhdr.sh_offset == 0)
145 off = ehdr.e_shoff + symhdr.sh_link * sizeof(symhdr);
149 if ((symp = malloc(symhdr.sh_size)) == NULL)
151 sz = pread(fd, symp, symhdr.sh_size, symhdr.sh_offset);
152 if (sz != symhdr.sh_size)
161 nsyms = (int)(symhdr.sh_size / sizeof(Elf_Sym));