Lines Matching refs:ex
267 Elf32_Ehdr ex;
305 i = read(infile, &ex, sizeof ex);
306 if (i != sizeof ex) {
307 fprintf(stderr, "ex: %s: %s.\n",
313 if (ex.e_ident[EI_DATA] == ELFDATA2MSB)
324 convert_elf_hdr(&ex);
327 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff,
328 ex.e_phnum * sizeof(Elf32_Phdr),
331 convert_elf_phdrs(ph, ex.e_phnum);
333 sh = (Elf32_Shdr *) saveRead(infile, ex.e_shoff,
334 ex.e_shnum * sizeof(Elf32_Shdr),
337 convert_elf_shdrs(sh, ex.e_shnum);
339 shstrtab = saveRead(infile, sh[ex.e_shstrndx].sh_offset,
340 sh[ex.e_shstrndx].sh_size, "shstrtab");
348 qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp);
350 for (i = 0; i < ex.e_phnum; i++) {
360 ex.e_phnum, ph[i].p_type);
419 eah.entry = ex.e_entry;
558 for (i = 0; i < ex.e_phnum; i++) {