• Home
  • Raw
  • Download

Lines Matching refs:ebl

361 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,  in show_relocs_rel()  argument
365 int elfclass = gelf_getclass (ebl->elf); in show_relocs_rel()
386 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rel()
387 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rel()
395 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rel()
396 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rel()
399 elf_strptr (ebl->elf, symstrndx, sym->st_name)); in show_relocs_rel()
404 destshdr = gelf_getshdr (elf_getscn (ebl->elf, in show_relocs_rel()
412 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rel()
413 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rel()
422 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rel()
423 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rel()
426 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in show_relocs_rel()
434 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data, in show_relocs_rela() argument
438 int elfclass = gelf_getclass (ebl->elf); in show_relocs_rela()
459 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rela()
460 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rela()
468 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rela()
469 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rela()
472 elf_strptr (ebl->elf, symstrndx, sym->st_name)); in show_relocs_rela()
477 destshdr = gelf_getshdr (elf_getscn (ebl->elf, in show_relocs_rela()
485 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rela()
486 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rela()
495 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info)) in show_relocs_rela()
496 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info), in show_relocs_rela()
499 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name)); in show_relocs_rela()
541 show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_relocs() argument
543 int elfclass = gelf_getclass (ebl->elf); in show_relocs()
546 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL) in show_relocs()
556 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_relocs()
560 GElf_Shdr *destshdr = gelf_getshdr (elf_getscn (ebl->elf, in show_relocs()
566 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name), in show_relocs()
575 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link); in show_relocs()
583 while ((xndxscn = elf_nextscn (ebl->elf, xndxscn)) != NULL) in show_relocs()
599 show_relocs_rel (ebl, shdr, data, symdata, xndxdata, in show_relocs()
602 show_relocs_rela (ebl, shdr, data, symdata, xndxdata, in show_relocs()
614 show_full_content (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_full_content() argument
617 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL) in show_full_content()
627 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_full_content()
631 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_full_content()
726 show_disasm (Ebl *ebl, const char *fname, uint32_t shstrndx) in show_disasm() argument
728 DisasmCtx_t *ctx = disasm_begin (ebl, ebl->elf, NULL /* XXX TODO */); in show_disasm()
733 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL) in show_disasm()
744 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx)) in show_disasm()
752 elf_strptr (ebl->elf, shstrndx, shdr->sh_name)); in show_disasm()
776 Ebl *ebl = ebl_openbackend (elf); in handle_elf() local
780 ebl_backend_name (ebl)); in handle_elf()
796 if (elf_getshstrndx (ebl->elf, &shstrndx) < 0) in handle_elf()
802 result = show_disasm (ebl, fullname, shstrndx); in handle_elf()
804 result = show_relocs (ebl, fullname, shstrndx); in handle_elf()
806 result = show_full_content (ebl, fullname, shstrndx); in handle_elf()
809 ebl_closebackend (ebl); in handle_elf()