• Home
  • Raw
  • Download

Lines Matching refs:ebl

345 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata,  in show_relocs_x()  argument
349 int elfclass = gelf_getclass (ebl->elf); in show_relocs_x()
354 ebl_reloc_type_name (ebl, GELF_R_TYPE (r_info), buf, sizeof (buf))); in show_relocs_x()
366 elf_strptr (ebl->elf, symstrndx, sym->st_name)); in show_relocs_x()
371 destshdr = gelf_getshdr (elf_getscn (ebl->elf, in show_relocs_x()
383 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in show_relocs_x()
401 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rel() argument
405 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT); in show_relocs_rel()
415 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rel()
422 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rela() argument
426 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT); in show_relocs_rela()
436 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx, in show_relocs_rela()
473 show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_relocs() argument
475 int elfclass = gelf_getclass (ebl->elf); in show_relocs()
478 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL) in show_relocs()
488 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_relocs()
492 GElf_Shdr *destshdr = gelf_getshdr (elf_getscn (ebl->elf, in show_relocs()
500 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name), in show_relocs()
509 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in show_relocs()
519 while ((xndxscn = elf_nextscn (ebl->elf, xndxscn)) != NULL) in show_relocs()
535 show_relocs_rel (ebl, shdr, data, symdata, xndxdata, in show_relocs()
538 show_relocs_rela (ebl, shdr, data, symdata, xndxdata, in show_relocs()
550 show_full_content (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_full_content() argument
553 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL) in show_full_content()
563 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_full_content()
567 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_full_content()
683 show_disasm (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_disasm() argument
685 DisasmCtx_t *ctx = disasm_begin (ebl, ebl->elf, NULL /* XXX TODO */); in show_disasm()
690 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL) in show_disasm()
701 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_disasm()
709 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_disasm()
755 Ebl *ebl = ebl_openbackend (elf); in handle_elf() local
759 ebl_backend_name (ebl)); in handle_elf()
775 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0) in handle_elf()
781 result = show_disasm (ebl, fullname, shstrndx); in handle_elf()
783 result = show_relocs (ebl, fullname, shstrndx); in handle_elf()
785 result = show_full_content (ebl, fullname, shstrndx); in handle_elf()
788 ebl_closebackend (ebl); in handle_elf()