/opensolaris-onvv-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | lintsup.c | 47 const char *wname, int wfd, uchar_t osabi) 49 return (regular64(file, fd, elf, flags, wname, wfd, osabi)); 54 const char *wname, int wfd, uchar_t osabi) 56 return (regular32(file, fd, elf, flags, wname, wfd, osabi)); 46 regular32(const char *file, int fd, Elf *elf, uint_t flags, const char *wname, int wfd, uchar_t osabi) argument 53 regular64(const char *file, int fd, Elf *elf, uint_t flags, const char *wname, int wfd, uchar_t osabi) argument
|
H A D | elfdump.c | 119 uchar_t osabi; /* OSABI to use */ member in struct:__anon1577 454 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) argument 490 Elf_shdr(0, osabi, ehdr->e_machine, shdr); 530 * osabi - OSABI to use in displaying information 536 gnu_eh_state_t *eh_state, uchar_t osabi, const char *file, uint_t flags) 628 conv_ehdr_type(osabi, ehdr->e_type, 0, &inv_buf)); 786 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, argument 879 osabi, file, flags); 898 Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, 906 state->osabi 535 unwind_eh_frame(Cache *cache, Word shndx, Phdr *uphdr, Ehdr *ehdr, gnu_eh_state_t *eh_state, uchar_t osabi, const char *file, uint_t flags) argument 897 init_symtbl_state(SYMTBL_STATE *state, Cache *cache, Word shnum, Word secndx, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument 1240 cap_section(const char *file, Cache *cache, Word shnum, Cache *ccache, uchar_t osabi, Ehdr *ehdr, uint_t flags) argument 1615 cap(const char *file, Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, Elf *elf, uint_t flags) argument 1775 syminfo(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument 2349 symbols(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument 2392 sunw_sort(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, uint_t flags) argument 2679 dyn_test(dyn_test_t test_type, Word sh_type, Cache *sec_cache, Dyn *dyn, Word dynsec_cnt, Ehdr *ehdr, uchar_t osabi, const char *file) argument 2796 dyn_symtest(Dyn *dyn, const char *symname, Cache *symtab_cache, Cache *dynsym_cache, Cache *ldynsym_cache, Cache *target_cache, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument 2832 dynamic(Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi, const char *file) argument 4723 regular(const char *file, int fd, Elf *elf, uint_t flags, const char *wname, int wfd, uchar_t osabi) argument [all...] |
H A D | main.c | 548 const char *wname, int wfd, uchar_t osabi) 553 r = regular64(file, fd, elf, flags, wname, wfd, osabi); 555 r = regular32(file, fd, elf, flags, wname, wfd, osabi); 562 const char *wname, int wfd, uchar_t osabi) 704 wname, wfd, osabi) == 1) 709 wname, wfd, osabi) == 1) 735 uchar_t osabi; local 813 * osabi is a uchar_t in the ELF header. 824 osabi = val; 970 ret = archive(file, fd, elf, flags, wname, wfd, osabi); 547 decide(const char *file, int fd, Elf *elf, uint_t flags, const char *wname, int wfd, uchar_t osabi) argument 561 archive(const char *file, int fd, Elf *elf, uint_t flags, const char *wname, int wfd, uchar_t osabi) argument [all...] |
/opensolaris-onvv-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | phdr.c | 33 Elf_phdr(Lm_list *lml, uchar_t osabi, Half mach, Phdr *phdr) argument 39 conv_phdr_flags(osabi, phdr->p_flags, 0, &phdr_flags_buf)); 41 conv_phdr_type(osabi, mach, phdr->p_type, 0, &inv_buf));
|
H A D | entry.c | 35 Dbg_ent_entry(Lm_list *lml, uchar_t osabi, Half mach, Ent_desc *enp) argument 54 conv_sec_flags(osabi, mach, enp->ec_attrmask, 0, &buf.sec_flags)); 59 conv_sec_flags(osabi, mach, enp->ec_attrbits, 0, &buf.sec_flags)); 62 conv_sec_type(osabi, mach, enp->ec_type, 0, &buf.inv)); 77 Dbg_ent_print(Lm_list *lml, uchar_t osabi, Half mach, APlist *alp) argument 90 Dbg_ent_entry(lml, osabi, mach, enp);
|
H A D | shdr.c | 33 Elf_shdr(Lm_list *lml, uchar_t osabi, Half mach, Shdr *shdr) argument 39 conv_sec_flags(osabi, mach, shdr->sh_flags, 0, &sec_flags_buf)); 41 conv_sec_type(osabi, mach, shdr->sh_type, 0, &inv_buf1)); 61 Dbg_shdr_modified(Lm_list *lml, const char *obj, uchar_t osabi, Half mach, argument 79 Elf_shdr(lml, osabi, mach, oshdr); 82 Elf_shdr(lml, osabi, mach, nshdr);
|
H A D | dynamic.c | 45 uchar_t osabi, Half mach) 52 conv_dyn_tag(dyn->d_tag, osabi, mach, 0, &inv_buf), 44 Elf_dyn_entry(Lm_list *lml, Dyn *dyn, int ndx, const char *name, uchar_t osabi, Half mach) argument
|
H A D | elf.c | 41 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 62 conv_ehdr_type(osabi, ehdr->e_type, 0, &inv_buf1)); 112 conv_sec_flags(osabi, mach, shdr0->sh_flags, 0, &sec_flags_buf)); 114 conv_sec_type(osabi, mach, shdr0->sh_type, 0, &inv_buf1));
|
H A D | segments.c | 36 Dbg_seg_desc_entry(Lm_list *lml, uchar_t osabi, Half mach, int ndx, argument 52 Elf_phdr(lml, osabi, mach, &sgp->sg_phdr); 119 Dbg_seg_list(Lm_list *lml, uchar_t osabi, Half mach, APlist *apl) argument 131 Dbg_seg_desc_entry(lml, osabi, mach, ndx++, sgp, TRUE);
|
H A D | map.c | 187 Dbg_map_sort_seg(Lm_list *lml, uchar_t osabi, Half mach, Sg_desc *sgp) argument 197 type_str = conv_phdr_type(osabi, mach, sgp->sg_phdr.p_type, 287 Dbg_map_seg_order(Ofl_desc *ofl, uchar_t osabi, Half mach, argument 304 type_str = conv_phdr_type(osabi, mach, sgp->sg_phdr.p_type,
|
H A D | syms.c | 446 uchar_t osabi = ofl->ofl_dehdr->e_ident[EI_OSABI]; local 459 osabi, mach, osym, sdp->sd_aux ? sdp->sd_aux->sa_overndx : 0, 463 osabi, mach, nsym, 0, 0, NULL, ifl->ifl_name); 639 uchar_t osabi, Half mach, Sym *sym, Versym verndx, int gnuver, 656 sec = conv_sym_shndx(osabi, mach, sym->st_shndx, 638 Elf_syms_table_entry(Lm_list *lml, int caller, const char *prestr, uchar_t osabi, Half mach, Sym *sym, Versym verndx, int gnuver, const char *sec, const char *poststr) argument
|
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfconst.c | 132 STE_LC_OS = 2, /* From libconv, osabi dependency */ 134 STE_LC_OS_MACH = 4 /* From libconv, osabi/mach dep. */ 150 libconv_iter_func_os_t osabi; member in union:__anon1633 179 * with changes in osabi or machine type. 206 { 0 }, /* 23: EAV osabi version */ 266 libconv_fill_iter(sym_table_ent_t *sym, conv_iter_osabi_t osabi, Half mach, argument 278 (void) (* sym->ste_conv_func.osabi)(osabi, 280 (void) (* sym->ste_conv_func.osabi)(osabi, 304 libconv_fill(sym_table_ent_t *sym, conv_iter_osabi_t osabi, Half mach) argument 347 init_libconv_strings(conv_iter_osabi_t *osabi, Half *mach) argument 427 invalidate_libconv_strings(conv_iter_osabi_t *osabi, Half *mach) argument 499 static conv_iter_osabi_t osabi; local [all...] |
/opensolaris-onvv-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | sections.c | 39 sec_type_strings(conv_iter_osabi_t osabi, Half mach, Conv_fmt_flags_t fmt_flags) argument 43 * three osabi arrays, two machine arrays, plus the NULL termination. 165 /* The Linux osabi range has two separate sequences */ 266 if ((osabi == ELFOSABI_NONE) || (osabi == ELFOSABI_SOLARIS) || 267 (osabi == CONV_OSABI_ALL)) { 284 if ((osabi == ELFOSABI_LINUX) || (osabi == CONV_OSABI_ALL)) { 348 conv_sec_type(uchar_t osabi, Half mach, Word sec, Conv_fmt_flags_t fmt_flags, argument 351 return (conv_map_ds(osabi, mac 356 conv_iter_sec_type(conv_iter_osabi_t osabi, Half mach, Conv_fmt_flags_t fmt_flags, conv_iter_cb_t func, void *uvalue) argument 369 conv_iter_sec_symtab(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, conv_iter_cb_t func, void *uvalue) argument 479 conv_iter_sec_flags(conv_iter_osabi_t osabi, Half mach, Conv_fmt_flags_t fmt_flags, conv_iter_cb_t func, void *uvalue) argument [all...] |
H A D | globals.c | 77 * osabi,mach (_conv_vd22str only) - The osab/mach under which 78 * val is to be interpreted. Items with a non-0 osabi or machine 90 * If val is found in the vdp array, and in the osabi version of 91 * this function if the osabi matches, then the string corresponding 112 map_vd22str(Conv_inv_buf_t *inv_buf, uchar_t osabi, Half mach, argument 117 if (CONV_VD2_SKIP(osabi, mach, vdp)) 133 _conv_map_ds(uchar_t osabi, Half mach, Conv_elfvalue_t value, argument 158 return (map_vd22str(inv_buf, osabi, mach, value, 215 * osabi,mach (_conv_iter_vd2 only) - The osabi/mac 250 _conv_iter_vd2(conv_iter_osabi_t osabi, Half mach, const Val_desc2 *vdp, conv_iter_cb_t func, void *uvalue, const char *local_sgs_msg) argument 270 _conv_iter_ds(conv_iter_osabi_t osabi, Half mach, const conv_ds_t **dsp, conv_iter_cb_t func, void *uvalue, const char *local_sgs_msg) argument [all...] |
H A D | phdr.c | 193 conv_phdr_type(uchar_t osabi, Half mach, Word type, Conv_fmt_flags_t fmt_flags, argument 196 return (conv_map_ds(osabi, mach, type, 201 conv_iter_phdr_type(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, argument 204 return (conv_iter_ds(osabi, EM_NONE, 262 conv_phdr_flags(uchar_t osabi, Word flags, Conv_fmt_flags_t fmt_flags, argument 273 (void) conv_expn_field2(&conv_arg, osabi, EM_NONE, 280 conv_iter_phdr_flags(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, argument 283 if (conv_iter_vd2(osabi, EM_NONE,
|
H A D | sections_machelf.c | 40 conv_sec_flags(uchar_t osabi, Half mach, Xword flags, argument 52 (void) conv_expn_field2(&conv_arg, osabi, mach,
|
H A D | dynamic_machelf.c | 133 conv_dyn_tag(Xword tag, uchar_t osabi, Half mach, Conv_fmt_flags_t fmt_flags, argument 137 return (conv_map_ds(osabi, mach, tag, 138 conv_dyn_tag_strings(osabi, mach, fmt_flags), fmt_flags, inv_buf));
|
H A D | elf.c | 522 conv_ehdr_type(uchar_t osabi, Half etype, Conv_fmt_flags_t fmt_flags, argument 525 return (conv_map_ds(osabi, EM_NONE, etype, 530 conv_iter_ehdr_type(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, argument 533 return (conv_iter_ds(osabi, EM_NONE, 833 conv_ehdr_osabi(uchar_t osabi, Conv_fmt_flags_t fmt_flags, argument 836 return (conv_map_ds(ELFOSABI_NONE, EM_NONE, osabi, 865 ehdr_abivers_strings(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags) argument 898 if ((osabi == ELFOSABI_SOLARIS) || (osabi == CONV_OSABI_ALL)) 906 conv_ehdr_abivers(uchar_t osabi, Wor argument 914 conv_iter_ehdr_abivers(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, conv_iter_cb_t func, void *uvalue) argument [all...] |
H A D | globals_machelf.c | 223 * have a non-zero osabi or machine value that does not match that 257 _conv_expn_field2(CONV_EXPN_FIELD_ARG *arg, uchar_t osabi, Half mach, argument 271 if (CONV_VD2_SKIP(osabi, mach, vdp))
|
H A D | symbols.c | 371 conv_sym_shndx(uchar_t osabi, Half mach, Half shndx, Conv_fmt_flags_t fmt_flags, argument 374 return (conv_map_ds(osabi, mach, shndx, 379 conv_iter_sym_shndx(conv_iter_osabi_t osabi, Half mach, argument 401 if (conv_iter_ds(osabi, mach, conv_sym_shndx_strings(fmt_flags),
|
H A D | dynamic.c | 420 conv_dyn_tag_strings(conv_iter_osabi_t osabi, Half mach, argument 747 * DT_LOPROC - DT_HIPROC range: Solaris osabi, all hardware 777 osabi_solaris = (osabi == ELFOSABI_NONE) || 778 (osabi == ELFOSABI_SOLARIS) || (osabi == CONV_OSABI_ALL); 779 osabi_linux = (osabi == ELFOSABI_LINUX) || (osabi == CONV_OSABI_ALL); 785 * apply to the current osabi. Note that we order these items such 877 conv_iter_dyn_tag(conv_iter_osabi_t osabi, Half mach, argument 880 return (conv_iter_ds(osabi, mac [all...] |
/opensolaris-onvv-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | phdr.c | 228 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 241 EC_WORD(i), conv_phdr_type(osabi, 249 osabi, mach, argstate->ndx, 0, &inv_buf)); 352 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 411 Elf_phdr(0, osabi, mach, phdr); 447 conv_phdr_type(osabi, 486 conv_phdr_flags(osabi, phdr->p_flags, 691 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 701 conv_phdr_type(osabi, mach, phdr->p_type, 707 conv_phdr_type(osabi, mac 824 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local [all...] |
H A D | shdr.c | 217 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 258 Elf_shdr(NULL, osabi, mach, sec->sec_shdr); 284 conv_sec_flags(osabi, mach, shdr->sh_flags, 331 conv_sec_type(osabi, mach, shdr->sh_type, 0, 359 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 525 conv_sec_flags(osabi, mach, 532 conv_sec_flags(osabi, mach, 534 conv_sec_flags(osabi, mach, 708 conv_sec_type(osabi, mach, shdr->sh_type, 715 conv_sec_type(osabi, mac [all...] |
H A D | dyn.c | 662 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 669 conv_dyn_tag(dt_value, osabi, mach, 0, &want), 671 osabi, mach, 0, &is)); 1280 uchar_t osabi = ehdr->e_ident[EI_OSABI]; local 1289 EC_WORD(ndx), conv_dyn_tag(d_tag, osabi, 1311 osabi, mach, 0, &inv_buf1)); 1327 conv_dyn_tag(d_tag, osabi, 1335 conv_dyn_tag(d_tag, osabi, 1343 conv_dyn_tag(orig_d_tag, osabi, mach, 0, 1345 conv_dyn_tag(d_tag, osabi, mac [all...] |
/opensolaris-onvv-gate/usr/src/cmd/sgs/include/ |
H A D | conv.h | 622 * Type used by libconv to represent osabi values passed to iteration 625 * to mean "ALL". Using Half for osabi leaves us the top byte to use for 629 * CONV_OSABI_ALL, should use uchar_t for osabi. 634 * Many of the iteration functions accept an osabi or mach argument, 638 * as an otherwise valid osabi or machine. 644 * We compare Val_Desc2 descriptors with a specified osabi and machine 647 * We consider an osabi to match when any of the following things hold: 649 * - The descriptor osabi is ELFOSABI_NONE. 650 * - The supplied osabi and the descriptor osabi matc [all...] |