Home | History | Annotate | Download | only in src

Lines Matching defs:ebl

246 static void print_ehdr (Ebl *ebl, GElf_Ehdr *ehdr);
247 static void print_shdr (Ebl *ebl, GElf_Ehdr *ehdr);
248 static void print_phdr (Ebl *ebl, GElf_Ehdr *ehdr);
249 static void print_scngrp (Ebl *ebl);
250 static void print_dynamic (Ebl *ebl);
251 static void print_relocs (Ebl *ebl, GElf_Ehdr *ehdr);
252 static void handle_relocs_rel (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn,
254 static void handle_relocs_rela (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn,
256 static void print_symtab (Ebl *ebl, int type);
257 static void handle_symtab (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
258 static void print_verinfo (Ebl *ebl);
259 static void handle_verneed (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
260 static void handle_verdef (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr);
261 static void handle_versym (Ebl *ebl, Elf_Scn *scn,
263 static void print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr);
264 static void handle_hash (Ebl *ebl);
265 static void handle_notes (Ebl *ebl, GElf_Ehdr *ehdr);
266 static void print_liblist (Ebl *ebl);
267 static void print_attributes (Ebl *ebl, const GElf_Ehdr *ehdr);
268 static void dump_data (Ebl *ebl);
269 static void dump_strings (Ebl *ebl);
270 static void print_strings (Ebl *ebl);
841 Ebl *ebl = ebl_openbackend (elf);
842 if (unlikely (ebl == NULL))
845 error (0, errno, gettext ("cannot create EBL handle"));
850 if (unlikely (elf_getshdrnum (ebl->elf, &shnum) < 0))
856 if (unlikely (elf_getphdrnum (ebl->elf, &phnum) < 0))
871 || elf_contains_chdrs (ebl->elf)));
874 Ebl *pure_ebl = ebl;
896 print_ehdr (ebl, ehdr);
900 print_phdr (ebl, ehdr);
902 print_scngrp (ebl);
904 print_dynamic (ebl);
908 handle_hash (ebl);
910 print_symtab (ebl, SHT_DYNSYM);
912 print_verinfo (ebl);
914 print_symtab (ebl, SHT_SYMTAB);
916 print_liblist (ebl);
918 print_attributes (ebl, ehdr);
922 dump_strings (ebl);
924 print_debug (dwflmod, ebl, ehdr);
928 print_strings (ebl);
930 ebl_closebackend (ebl);
932 if (pure_ebl != ebl)
967 print_ehdr (Ebl *ebl, GElf_Ehdr *ehdr)
991 ebl_osabi_name (ebl, ehdr->e_ident[EI_OSABI], buf, sizeof (buf)));
999 printf (gettext (" Machine: %s\n"), ebl->name);
1015 ebl_machine_flag_name (ebl, ehdr->e_flags, buf, sizeof (buf)));
1028 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem);
1045 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem);
1057 GElf_Shdr *shdr = gelf_getshdr (elf_getscn (ebl->elf, 0), &shdr_mem);
1109 print_shdr (Ebl *ebl, GElf_Ehdr *ehdr)
1121 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
1142 Elf_Scn *scn = elf_getscn (ebl->elf, cnt);
1187 sname = elf_strptr (ebl->elf, shstrndx, shdr->sh_name) ?: "<corrupt>";
1192 ebl_section_type_name (ebl, shdr->sh_type, buf, sizeof (buf)),
1236 print_phdr (Ebl *ebl, GElf_Ehdr *ehdr)
1258 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, cnt, &mem);
1269 ebl_segment_type_name (ebl, phdr->p_type, buf, sizeof (buf)),
1292 Elf_Scn *scn = gelf_offscn (ebl->elf, phdr->p_offset);
1297 char *filedata = elf_rawfile (ebl->elf, &maxsize);
1321 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
1333 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, cnt, &phdr_mem);
1344 Elf_Scn *scn = elf_getscn (ebl->elf, inner);
1400 phdr2 = gelf_getphdr (ebl->elf, cnt2, &phdr2_mem);
1425 elf_strptr (ebl->elf, shstrndx, shdr->sh_name));
1446 section_name (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr)
1448 return elf_strptr (ebl->elf, ehdr->e_shstrndx, shdr->sh_name) ?: "???";
1453 handle_scngrp (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
1458 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link);
1469 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
1489 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
1491 : elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name))
1498 GElf_Shdr *grpshdr = gelf_getshdr (elf_getscn (ebl->elf, grpref[cnt]),
1505 && (str = elf_strptr (ebl->elf, shstrndx, grpshdr->sh_name))
1512 print_scngrp (Ebl *ebl)
1517 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
1533 handle_scngrp (ebl, scn, shdr);
1649 handle_dynamic (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
1651 int class = gelf_getclass (ebl->elf);
1665 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
1669 sh_entsize = gelf_fsize (ebl->elf, ELF_T_DYN, 1, EV_CURRENT);
1671 ebl->elf, shdr->sh_link), &glink_mem);
1685 elf_strptr (ebl->elf, shstrndx, glink->sh_name));
1697 ebl_dynamic_tag_name (ebl, dyn->d_tag, buf, sizeof (buf)));
1711 elf_strptr (ebl->elf, shdr->sh_link, dyn->d_un.d_val));
1716 elf_strptr (ebl->elf, shdr->sh_link, dyn->d_un.d_val));
1721 elf_strptr (ebl->elf, shdr->sh_link, dyn->d_un.d_val));
1726 elf_strptr (ebl->elf, shdr->sh_link, dyn->d_un.d_val));
1756 const char *tagname = ebl_dynamic_tag_name (ebl, dyn->d_un.d_val,
1788 print_dynamic (Ebl *ebl)
1793 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, i, &phdr_mem);
1797 Elf_Scn *scn = gelf_offscn (ebl->elf, phdr->p_offset);
1801 handle_dynamic (ebl, scn, shdr);
1810 print_relocs (Ebl *ebl, GElf_Ehdr *ehdr)
1815 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
1824 handle_relocs_rel (ebl, ehdr, scn, shdr);
1826 handle_relocs_rela (ebl, ehdr, scn, shdr);
1834 handle_relocs_rel (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn, GElf_Shdr *shdr)
1836 int class = gelf_getclass (ebl->elf);
1837 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_REL, 1, EV_CURRENT);
1846 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link);
1853 GElf_Shdr *destshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_info),
1867 xndxdata = elf_getdata (elf_getscn (ebl->elf, xndxscnidx), NULL);
1871 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
1882 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
1884 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name),
1897 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
1936 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, inner,
1951 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))
1954 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
1958 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name));
1962 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))
1965 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
1974 likely (ebl_reloc_type_check (ebl,
1978 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
1982 elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name));
1988 secshdr = gelf_getshdr (elf_getscn (ebl->elf,
1996 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))
1999 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
2008 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))
2011 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
2015 elf_strptr (ebl->elf, shstrndx, secshdr->sh_name));
2024 handle_relocs_rela (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn, GElf_Shdr *shdr)
2026 int class = gelf_getclass (ebl->elf);
2027 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_RELA, 1, EV_CURRENT);
2036 Elf_Scn *symscn = elf_getscn (ebl->elf, shdr->sh_link);
2043 GElf_Shdr *destshdr = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_info),
2057 xndxdata = elf_getdata (elf_getscn (ebl->elf, xndxscnidx), NULL);
2061 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
2072 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
2074 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name),
2087 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
2127 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, inner,
2142 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))
2145 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
2150 elf_strptr (ebl->elf, shstrndx, destshdr->sh_name));
2154 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))
2157 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
2167 likely (ebl_reloc_type_check (ebl,
2171 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
2176 elf_strptr (ebl->elf, symshdr->sh_link, sym->st_name));
2182 secshdr = gelf_getshdr (elf_getscn (ebl->elf,
2190 ebl, GELF_R_TYPE (rel->r_info))
2193 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
2203 ebl_reloc_type_check (ebl, GELF_R_TYPE (rel->r_info))
2206 ? ebl_reloc_type_name (ebl, GELF_R_TYPE (rel->r_info),
2211 elf_strptr (ebl->elf, shstrndx, secshdr->sh_name));
2220 print_symtab (Ebl *ebl, int type)
2226 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
2242 handle_symtab (ebl, scn, shdr);
2249 handle_symtab (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
2255 int class = gelf_getclass (ebl->elf);
2266 while ((runscn = elf_nextscn (ebl->elf, runscn)) != NULL)
2298 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
2303 GElf_Shdr *glink = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link),
2318 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), nsyms);
2324 elf_strptr (ebl->elf, shstrndx, glink->sh_name));
2355 ebl_symbol_type_name (ebl, GELF_ST_TYPE (sym->st_info),
2357 ebl_symbol_binding_name (ebl, GELF_ST_BIND (sym->st_info),
2360 ebl_section_name (ebl, sym->st_shndx, xndx, scnbuf,
2362 elf_strptr (ebl->elf, shdr->sh_link, sym->st_name));
2379 gelf_getshdr (elf_getscn (ebl->elf, xndx), &symshdr_mem);
2431 elf_strptr (ebl->elf, verneed_stridx,
2473 elf_strptr (ebl->elf, verdef_stridx,
2487 print_verinfo (Ebl *ebl)
2493 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
2502 handle_verneed (ebl, scn, shdr);
2504 handle_verdef (ebl, scn, shdr);
2506 handle_versym (ebl, scn, shdr);
2545 handle_verneed (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
2547 int class = gelf_getclass (ebl->elf);
2556 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
2561 GElf_Shdr *glink = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link),
2573 elf_strptr (ebl->elf, shstrndx, shdr->sh_name), shdr->sh_info,
2577 elf_strptr (ebl->elf, shstrndx, glink->sh_name));
2590 elf_strptr (ebl->elf, shdr->sh_link, need->vn_file),
2603 elf_strptr (ebl->elf, shdr->sh_link, aux->vna_name),
2623 handle_verdef (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
2632 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
2637 GElf_Shdr *glink = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link),
2643 int class = gelf_getclass (ebl->elf);
2650 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
2655 elf_strptr (ebl->elf, shstrndx, glink->sh_name));
2678 elf_strptr (ebl->elf, shdr->sh_link, aux->vda_name));
2689 elf_strptr (ebl->elf, shdr->sh_link, aux->vda_name));
2706 handle_versym (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr)
2708 int class = gelf_getclass (ebl->elf);
2719 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
2729 while ((verscn = elf_nextscn (ebl->elf, verscn)) != NULL)
2879 = elf_strptr (ebl->elf, defshdr->sh_link, aux->vda_name);
2917 = elf_strptr (ebl->elf, needshdr->sh_link, aux->vna_name);
2919 = elf_strptr (ebl->elf, needshdr->sh_link, need->vn_file);
2940 GElf_Shdr *glink = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link),
2942 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_HALF, 1, EV_CURRENT);
2954 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
2959 elf_strptr (ebl->elf, shstrndx, glink->sh_name));
3003 print_hash_info (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx,
3013 GElf_Shdr *glink = gelf_getshdr (elf_getscn (ebl->elf,
3029 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
3031 gelf_getclass (ebl->elf) == ELFCLASS32 ? 10 : 18,
3035 elf_strptr (ebl->elf, shstrndx, glink->sh_name));
3080 handle_sysv_hash (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx)
3125 print_hash_info (ebl, scn, shdr, shstrndx, maxlength, nbucket, nsyms,
3135 handle_sysv_hash64 (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx)
3182 print_hash_info (ebl, scn, shdr, shstrndx, maxlength, nbucket, nsyms,
3191 handle_gnu_hash (Ebl *ebl, Elf_Scn *scn, GElf_Shdr *shdr, size_t shstrndx)
3219 if (gelf_getclass (ebl->elf) == ELFCLASS64)
3284 print_hash_info (ebl, scn, shdr, shstrndx, maxlength, nbucket, nsyms,
3295 handle_hash (Ebl *ebl)
3299 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
3304 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
3324 if (ebl_sysvhash_entrysize (ebl) == sizeof (Elf64_Xword))
3325 handle_sysv_hash64 (ebl, scn, shdr, shstrndx);
3327 handle_sysv_hash (ebl, scn, shdr, shstrndx);
3330 handle_gnu_hash (ebl, scn, shdr, shstrndx);
3337 print_liblist (Ebl *ebl)
3345 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
3349 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
3356 size_t sh_entsize = gelf_fsize (ebl->elf, ELF_T_LIB, 1, EV_CURRENT);
3364 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
3388 cnt, elf_strptr (ebl->elf, shdr->sh_link, lib->l_name),
3400 print_attributes (Ebl *ebl, const GElf_Ehdr *ehdr)
3408 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
3412 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
3426 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
3554 ebl_check_object_attribute (ebl, (const char *) name,
4626 Ebl *ebl, GElf_Ehdr *ehdr,
4634 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
4699 print_decoded_aranges_section (Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn,
4713 glink = gelf_getshdr (elf_getscn (ebl->elf, shdr->sh_link), &glink_mem);
4726 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
4766 Ebl *ebl, GElf_Ehdr *ehdr, Elf_Scn *scn,
4771 print_decoded_aranges_section (ebl, ehdr, scn, shdr, dbg);
4786 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
4802 elf_ndxscn (scn), section_name (ebl, ehdr, shdr));
4925 Ebl *ebl, GElf_Ehdr *ehdr,
4940 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
5016 register_info (Ebl *ebl, unsigned int regno, const Ebl_Register_Location *loc,
5022 ssize_t n = ebl_register_info (ebl, regno, name, REGNAMESZ, &pfx, &set,
5052 Dwfl_Module *dwflmod, Ebl *ebl, Dwarf *dbg)
5057 register_info (ebl, regno, NULL, regnamebuf, NULL, NULL);
5481 print_debug_frame_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
5486 (void) elf_getshdrstrndx (ebl->elf, &shstrndx);
5487 const char *scnname = elf_strptr (ebl->elf, shstrndx, shdr->sh_name);
5854 dwflmod, ebl, dbg);
6199 Ebl *ebl, GElf_Ehdr *ehdr,
6204 const char *secname = section_name (ebl, ehdr, shdr);
6354 print_debug_info_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
6357 print_debug_units (dwflmod, ebl, ehdr, scn, shdr, dbg, false);
6361 print_debug_types_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
6364 print_debug_units (dwflmod, ebl, ehdr, scn, shdr, dbg, true);
6369 print_decoded_line_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
6374 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
6378 = elf_getident (ebl->elf, NULL)[EI_CLASS] == ELFCLASS32 ? 4 : 8;
6459 print_debug_line_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
6464 print_decoded_line_section (dwflmod, ebl, ehdr, scn, shdr, dbg);
6470 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
6506 elf_ndxscn (scn), section_name (ebl, ehdr, shdr));
6574 elf_ndxscn (scn), section_name (ebl, ehdr, shdr));
6654 = elf_getident (ebl->elf, NULL)[EI_CLASS] == ELFCLASS32 ? 4 : 8;
6988 Ebl *ebl, GElf_Ehdr *ehdr,
7002 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
7117 Ebl *ebl, GElf_Ehdr *ehdr,
7122 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
7281 Ebl *ebl, GElf_Ehdr *ehdr,
7286 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
7706 Ebl *ebl, GElf_Ehdr *ehdr,
7710 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
7720 Ebl *ebl, GElf_Ehdr *ehdr,
7739 section_name (ebl, ehdr, shdr), (uint64_t) shdr->sh_offset,
7766 Ebl *ebl __attribute__ ((unused)),
7866 Ebl *ebl __attribute__ ((unused)),
8045 print_gdb_index_section (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr,
8050 elf_ndxscn (scn), section_name (ebl, ehdr, shdr),
8298 print_debug (Dwfl_Module *dwflmod, Ebl *ebl, GElf_Ehdr *ehdr)
8305 .elf = ebl->elf,
8318 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
8324 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
8335 void (*fp) (Dwfl_Module *, Ebl *,
8363 const char *name = elf_strptr (ebl->elf, shstrndx,
8378 debug_sections[n].fp (dwflmod, ebl, ehdr, scn, shdr, dbg);
8852 handle_core_register (Ebl *ebl, Elf *core, int maxregname,
8866 register_info (ebl, reg, regloc, name, &bits, &type);
9002 handle_core_registers (Ebl *ebl, Elf *core, const void *desc,
9008 ssize_t maxnreg = ebl_register_info (ebl, 0, NULL, 0, NULL, NULL, NULL, NULL);
9033 info->set = register_info (ebl, reg, &reglocs[i],
9072 colno = handle_core_register (ebl, core, maxname,
9083 handle_auxv_note (Ebl *ebl, Elf *core, GElf_Word descsz, GElf_Off desc_pos)
9101 if (ebl_auxv_info (ebl, av->a_type, &name, &fmt) == 0)
9304 handle_core_note (Ebl *ebl, const GElf_Nhdr *nhdr,
9313 if (! ebl_core_note (ebl, nhdr, name,
9321 unsigned int colno = handle_core_items (ebl->elf, desc,
9327 colno = handle_core_registers (ebl, ebl->elf, desc + regs_offset,
9334 handle_notes_data (Ebl *ebl, const GElf_Ehdr *ehdr,
9358 ? ebl_core_note_type_name (ebl, nhdr.n_type,
9360 : ebl_object_note_type_name (ebl, name, nhdr.n_type,
9374 handle_auxv_note (ebl, ebl->elf, nhdr.n_descsz,
9380 handle_siginfo_note (ebl->elf, nhdr.n_descsz,
9385 handle_file_note (ebl->elf, nhdr.n_descsz,
9390 handle_core_note (ebl, &nhdr, name, desc);
9393 handle_core_note (ebl, &nhdr, name, desc);
9396 ebl_object_note (ebl, name, nhdr.n_type, nhdr.n_descsz, desc);
9410 handle_notes (Ebl *ebl, GElf_Ehdr *ehdr)
9418 if (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0)
9423 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
9435 elf_strptr (ebl->elf, shstrndx, shdr->sh_name),
9438 handle_notes_data (ebl, ehdr, shdr->sh_offset,
9449 GElf_Phdr *phdr = gelf_getphdr (ebl->elf, cnt, &mem);
9459 handle_notes_data (ebl, ehdr, phdr->p_offset,
9460 elf_getdata_rawchunk (ebl->elf,
9653 dump_data (Ebl *ebl)
9655 for_each_section_argument (ebl->elf, dump_data_sections, &dump_data_section);
9659 dump_strings (Ebl *ebl)
9661 for_each_section_argument (ebl->elf, string_sections, &print_string_section);
9665 print_strings (Ebl *ebl)
9669 if (unlikely (elf_getshdrstrndx (ebl->elf, &shstrndx) < 0))
9677 while ((scn = elf_nextscn (ebl->elf, scn)) != NULL)
9686 name = elf_strptr (ebl->elf, shstrndx, shdr_mem.sh_name);