Lines Matching refs:ebl
344 show_relocs_x (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *symdata,
348 int elfclass = gelf_getclass (ebl->elf);
353 ebl_reloc_type_name (ebl, GELF_R_TYPE (r_info), buf, sizeof (buf)));
365 elf_strptr (ebl->elf, symstrndx, sym->st_name));
370 destshdr = gelf_getshdr (elf_getscn (ebl->elf,
382 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name));
400 show_relocs_rel (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
404 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT);
414 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx,
421 show_relocs_rela (Ebl *ebl, GElf_Shdr *shdr, Elf_Data *data,
425 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT);
435 show_relocs_x (ebl, shdr, symdata, xndxdata, symstrndx, shstrndx,
472 show_relocs (Ebl *ebl, const char *fname, uint32_t shstrndx)
474 int elfclass = gelf_getclass (ebl->elf);
477 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
487 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
491 GElf_Shdr *destshdr = gelf_getshdr (elf_getscn (ebl->elf,
499 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name),
508 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link);
518 while ((xndxscn = elf_nextscn (ebl->elf, xndxscn)) != NULL)
534 show_relocs_rel (ebl, shdr, data, symdata, xndxdata,
537 show_relocs_rela (ebl, shdr, data, symdata, xndxdata,
549 show_full_content (Ebl *ebl, const char *fname, uint32_t shstrndx)
552 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
562 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
566 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
682 show_disasm (Ebl *ebl, const char *fname, uint32_t shstrndx)
684 DisasmCtx_t *ctx = disasm_begin (ebl, ebl->elf, NULL /* XXX TODO */);
689 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
700 if (! section_match (ebl->elf, elf_ndxscn (scn), shdr, shstrndx))
708 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
755 Ebl *ebl = ebl_openbackend (elf);
756 if (ebl == NULL)
761 ebl_backend_name (ebl));
777 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)
782 result = show_disasm (ebl, fullname, shstrndx);
784 result = show_relocs (ebl, fullname, shstrndx);
786 result = show_full_content (ebl, fullname, shstrndx);
789 ebl_closebackend (ebl);