Lines Matching defs:ex
270 Elf32_Ehdr ex;
307 i = read(infile, &ex, sizeof ex);
308 if (i != sizeof ex) {
309 fprintf(stderr, "ex: %s: %s.\n",
315 if (ex.e_ident[EI_DATA] == ELFDATA2MSB)
326 convert_elf_hdr(&ex);
329 ph = (Elf32_Phdr *) saveRead(infile, ex.e_phoff,
330 ex.e_phnum * sizeof(Elf32_Phdr),
333 convert_elf_phdrs(ph, ex.e_phnum);
335 sh = (Elf32_Shdr *) saveRead(infile, ex.e_shoff,
336 ex.e_shnum * sizeof(Elf32_Shdr),
339 convert_elf_shdrs(sh, ex.e_shnum);
347 qsort(ph, ex.e_phnum, sizeof(Elf32_Phdr), phcmp);
349 for (i = 0; i < ex.e_phnum; i++) {
388 ex.e_phnum, ph[i].p_type);
425 eah.entry = ex.e_entry;
564 for (i = 0; i < ex.e_phnum; i++) {