Lines Matching refs:p_scns

284 print_rela(Elf *elf_file, SCNTAB *p_scns, Elf_Data *rdata, Elf_Data *sym_data,  in print_rela()  argument
302 rel_entsize = p_scns->p_shdr.sh_entsize; in print_rela()
304 (rel_entsize > p_scns->p_shdr.sh_size)) { in print_rela()
321 symid, p_scns->scn_name); in print_rela()
331 if (strcmp(name, p_scns->scn_name) != 0) { in print_rela()
336 (void) printf("\n%s:\n", p_scns->scn_name); in print_rela()
389 print_rel(Elf *elf_file, SCNTAB *p_scns, Elf_Data *rdata, Elf_Data *sym_data, in print_rel() argument
407 rel_entsize = p_scns->p_shdr.sh_entsize; in print_rel()
409 (rel_entsize > p_scns->p_shdr.sh_size)) { in print_rel()
426 symid, p_scns->scn_name); in print_rel()
436 if (strcmp(name, p_scns->scn_name) != 0) { in print_rel()
441 (void) printf("\n%s:\n", p_scns->scn_name); in print_rel()
767 SCNTAB *p_scns, int num_scns, char *filename) in dump_reloc_table() argument
788 if ((p_scns->p_shdr.sh_type != SHT_RELA) && in dump_reloc_table()
789 (p_scns->p_shdr.sh_type != SHT_REL)) { in dump_reloc_table()
790 p_scns++; in dump_reloc_table()
803 if ((p_scns->p_shdr.sh_link == 0) || in dump_reloc_table()
805 (p_scns->p_shdr.sh_link >= (GElf_Word)shnum)) { in dump_reloc_table()
809 prog_name, filename, (int)elf_ndxscn(p_scns->p_sd), in dump_reloc_table()
810 (int)p_scns->p_shdr.sh_link); in dump_reloc_table()
813 head_scns += (p_scns->p_shdr.sh_link -1); in dump_reloc_table()
836 if (p_scns->p_shdr.sh_type == SHT_RELA) { in dump_reloc_table()
838 (void) printf("\n%s:\n", p_scns->scn_name); in dump_reloc_table()
843 if ((rel_data = elf_getdata(p_scns->p_sd, NULL)) == NULL) { in dump_reloc_table()
852 print_rela(elf_file, p_scns, rel_data, sym_data, p_ehdr, in dump_reloc_table()
857 print_rela(elf_file, p_scns, rel_data, sym_data, p_ehdr, in dump_reloc_table()
861 print_rela(elf_file, p_scns, rel_data, sym_data, p_ehdr, in dump_reloc_table()
864 if (p_scns->p_shdr.sh_type == SHT_REL) { in dump_reloc_table()
866 (void) printf("\n%s:\n", p_scns->scn_name); in dump_reloc_table()
871 if ((rel_data = elf_getdata(p_scns->p_sd, NULL)) in dump_reloc_table()
880 print_rel(elf_file, p_scns, rel_data, sym_data, in dump_reloc_table()
886 print_rel(elf_file, p_scns, rel_data, sym_data, in dump_reloc_table()
891 print_rel(elf_file, p_scns, rel_data, sym_data, in dump_reloc_table()
896 p_scns++; in dump_reloc_table()
1070 dump_dynamic(Elf *elf_file, SCNTAB *p_scns, int num_scns, char *filename) in dump_dynamic() argument
1080 SCNTAB *l_scns = p_scns; in dump_dynamic()
1089 for (; num_scns > 0; num_scns--, p_scns++) { in dump_dynamic()
1094 if (p_scns->p_shdr.sh_type != SHT_DYNAMIC) in dump_dynamic()
1098 (void) printf("%s:\n", p_scns->scn_name); in dump_dynamic()
1102 if ((dyn_data = elf_getdata(p_scns->p_sd, NULL)) == 0) { in dump_dynamic()
1105 p_scns->scn_name); in dump_dynamic()
1109 link = p_scns->p_shdr.sh_link; in dump_dynamic()
1656 static SCNTAB *buffer, *p_scns; in dump_section_table() local
1688 p_scns = buffer; in dump_section_table()
1717 dump_shdr(elf_file, p_scns, num_scns, filename); in dump_section_table()
1723 dump_string_table(p_scns, num_scns); in dump_section_table()
1727 p_scns, num_scns, filename); in dump_section_table()
1730 dump_dynamic(elf_file, p_scns, num_scns, filename); in dump_section_table()
1733 dump_section(elf_file, elf_head_p, p_scns, in dump_section_table()