Lines Matching defs:elf_head_p
1328 dump_elf_header(Elf *elf_file, char *filename, GElf_Ehdr * elf_head_p)
1333 if (gelf_getehdr(elf_file, elf_head_p) == NULL) {
1339 class = (int)elf_head_p->e_ident[4];
1347 return (elf_head_p);
1361 field, elf_head_p->e_ident[4], elf_head_p->e_ident[5],
1362 field, (int)elf_head_p->e_type, (int)elf_head_p->e_machine,
1363 elf_head_p->e_version);
1370 conv_ehdr_data(elf_head_p->e_ident[5], DUMP_CONVFMT,
1373 conv_ehdr_type(elf_head_p->e_ident[EI_OSABI],
1374 elf_head_p->e_type, DUMP_CONVFMT, &inv_buf));
1376 conv_ehdr_mach(elf_head_p->e_machine, DUMP_CONVFMT,
1379 conv_ehdr_vers(elf_head_p->e_version, DUMP_CONVFMT,
1383 field, EC_ADDR(elf_head_p->e_entry), EC_OFF(elf_head_p->e_phoff),
1384 field, EC_OFF(elf_head_p->e_shoff), EC_WORD(elf_head_p->e_flags),
1385 EC_WORD(elf_head_p->e_ehsize));
1386 if (!v_flag || (elf_head_p->e_shstrndx != SHN_XINDEX)) {
1388 field, EC_WORD(elf_head_p->e_phentsize),
1389 EC_WORD(elf_head_p->e_phnum),
1390 field, EC_WORD(elf_head_p->e_shentsize),
1391 EC_WORD(elf_head_p->e_shnum),
1392 EC_WORD(elf_head_p->e_shstrndx));
1395 field, EC_WORD(elf_head_p->e_phentsize),
1396 EC_WORD(elf_head_p->e_phnum),
1397 field, EC_WORD(elf_head_p->e_shentsize),
1398 EC_WORD(elf_head_p->e_shnum));
1400 if ((elf_head_p->e_shnum == 0) && (elf_head_p->e_shoff > 0)) {
1452 return (elf_head_p);
1652 dump_section_table(Elf *elf_file, GElf_Ehdr *elf_head_p, char *filename)
1725 dump_reloc_table(elf_file, elf_head_p,
1732 dump_section(elf_file, elf_head_p, p_scns,