/illumos-gate/usr/src/cmd/sgs/elfedit/common/ |
H A D | elfconst.c | 152 libconv_iter_func_os_t osabi; member 280 (void) (* sym->ste_conv_func.osabi)(osabi, in libconv_fill_iter() 282 (void) (* sym->ste_conv_func.osabi)(osabi, in libconv_fill_iter() 367 sym_table[_ndx].ste_conv_func.osabi = _func; in init_libconv_strings() 379 *osabi = CONV_OSABI_ALL; in init_libconv_strings() 455 osabi_change = *osabi != cur_osabi; in invalidate_libconv_strings() 496 *osabi = cur_osabi; in invalidate_libconv_strings() 509 static conv_iter_osabi_t osabi; in elfedit_const_to_atoui() local 515 init_libconv_strings(&osabi, &mach); in elfedit_const_to_atoui() 536 invalidate_libconv_strings(&osabi, &mach); in elfedit_const_to_atoui() [all …]
|
H A D | util_machelf.c | 334 elfedit_test_osabi(elfedit_obj_state_t *obj_state, uchar_t osabi, in elfedit_test_osabi() argument 343 if (osabi == obj_osabi) in elfedit_test_osabi() 348 conv_ehdr_osabi(osabi, 0, &inv_buf)); in elfedit_test_osabi()
|
/illumos-gate/usr/src/cmd/sgs/libconv/common/ |
H A D | sections.c | 308 if ((osabi == ELFOSABI_NONE) || (osabi == ELFOSABI_SOLARIS) || in sec_type_strings() 309 (osabi == CONV_OSABI_ALL)) { in sec_type_strings() 326 if ((osabi == ELFOSABI_NONE) || (osabi == ELFOSABI_LINUX) || in sec_type_strings() 327 (osabi == ELFOSABI_SOLARIS) || (osabi == CONV_OSABI_ALL)) { in sec_type_strings() 344 if ((osabi == ELFOSABI_LINUX) || (osabi == CONV_OSABI_ALL)) { in sec_type_strings() 411 return (conv_map_ds(osabi, mach, sec, in conv_sec_type() 416 conv_iter_sec_type(conv_iter_osabi_t osabi, Half mach, in conv_iter_sec_type() argument 419 return (conv_iter_ds(osabi, mach, in conv_iter_sec_type() 420 sec_type_strings(osabi, mach, fmt_flags), func, uvalue)); in conv_iter_sec_type() 454 return (conv_iter_vd2(osabi, EM_NONE, vdp, func, uvalue)); in conv_iter_sec_symtab() [all …]
|
H A D | globals.c | 112 map_vd22str(Conv_inv_buf_t *inv_buf, uchar_t osabi, Half mach, in map_vd22str() argument 117 if (CONV_VD2_SKIP(osabi, mach, vdp)) in map_vd22str() 133 _conv_map_ds(uchar_t osabi, Half mach, Conv_elfvalue_t value, in _conv_map_ds() argument 158 return (map_vd22str(inv_buf, osabi, mach, value, in _conv_map_ds() 250 _conv_iter_vd2(conv_iter_osabi_t osabi, Half mach, const Val_desc2 *vdp, in _conv_iter_vd2() argument 254 if (CONV_ITER_VD2_SKIP(osabi, mach, vdp)) in _conv_iter_vd2() 270 _conv_iter_ds(conv_iter_osabi_t osabi, Half mach, const conv_ds_t **dsp, in _conv_iter_ds() argument 294 if (_conv_iter_vd2(osabi, mach, in _conv_iter_ds()
|
H A D | phdr.c | 193 conv_phdr_type(uchar_t osabi, Half mach, Word type, Conv_fmt_flags_t fmt_flags, in conv_phdr_type() argument 196 return (conv_map_ds(osabi, mach, type, in conv_phdr_type() 201 conv_iter_phdr_type(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, in conv_iter_phdr_type() argument 204 return (conv_iter_ds(osabi, EM_NONE, in conv_iter_phdr_type() 268 conv_phdr_flags(uchar_t osabi, Word flags, Conv_fmt_flags_t fmt_flags, in conv_phdr_flags() argument 279 (void) conv_expn_field2(&conv_arg, osabi, EM_NONE, in conv_phdr_flags() 286 conv_iter_phdr_flags(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, in conv_iter_phdr_flags() argument 289 if (conv_iter_vd2(osabi, EM_NONE, in conv_iter_phdr_flags()
|
H A D | elf.c | 778 conv_ehdr_type(uchar_t osabi, Half etype, Conv_fmt_flags_t fmt_flags, in conv_ehdr_type() argument 781 return (conv_map_ds(osabi, EM_NONE, etype, in conv_ehdr_type() 786 conv_iter_ehdr_type(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, in conv_iter_ehdr_type() argument 789 return (conv_iter_ds(osabi, EM_NONE, in conv_iter_ehdr_type() 1095 conv_ehdr_osabi(uchar_t osabi, Conv_fmt_flags_t fmt_flags, in conv_ehdr_osabi() argument 1098 return (conv_map_ds(ELFOSABI_NONE, EM_NONE, osabi, in conv_ehdr_osabi() 1160 if ((osabi == ELFOSABI_SOLARIS) || (osabi == CONV_OSABI_ALL)) in ehdr_abivers_strings() 1171 return (conv_map_ds(osabi, EM_NONE, version, in conv_ehdr_abivers() 1172 ehdr_abivers_strings(osabi, fmt_flags), fmt_flags, inv_buf)); in conv_ehdr_abivers() 1179 return (conv_iter_ds(osabi, EM_NONE, in conv_iter_ehdr_abivers() [all …]
|
H A D | dynamic_machelf.c | 133 conv_dyn_tag(Xword tag, uchar_t osabi, Half mach, Conv_fmt_flags_t fmt_flags, in conv_dyn_tag() argument 137 return (conv_map_ds(osabi, mach, tag, in conv_dyn_tag() 138 conv_dyn_tag_strings(osabi, mach, fmt_flags), fmt_flags, inv_buf)); in conv_dyn_tag()
|
H A D | sections_machelf.c | 40 conv_sec_flags(uchar_t osabi, Half mach, Xword flags, in conv_sec_flags() argument 52 (void) conv_expn_field2(&conv_arg, osabi, mach, in conv_sec_flags()
|
H A D | dynamic.c | 420 conv_dyn_tag_strings(conv_iter_osabi_t osabi, Half mach, in conv_dyn_tag_strings() argument 789 osabi_solaris = (osabi == ELFOSABI_NONE) || in conv_dyn_tag_strings() 790 (osabi == ELFOSABI_SOLARIS) || (osabi == CONV_OSABI_ALL); in conv_dyn_tag_strings() 791 osabi_linux = (osabi == ELFOSABI_LINUX) || (osabi == CONV_OSABI_ALL); in conv_dyn_tag_strings() 889 conv_iter_dyn_tag(conv_iter_osabi_t osabi, Half mach, in conv_iter_dyn_tag() argument 892 return (conv_iter_ds(osabi, mach, in conv_iter_dyn_tag() 893 conv_dyn_tag_strings(osabi, mach, fmt_flags), func, uvalue)); in conv_iter_dyn_tag()
|
H A D | symbols.c | 397 conv_sym_shndx(uchar_t osabi, Half mach, Half shndx, Conv_fmt_flags_t fmt_flags, in conv_sym_shndx() argument 400 return (conv_map_ds(osabi, mach, shndx, in conv_sym_shndx() 405 conv_iter_sym_shndx(conv_iter_osabi_t osabi, Half mach, in conv_iter_sym_shndx() argument 427 if (conv_iter_ds(osabi, mach, conv_sym_shndx_strings(fmt_flags), in conv_iter_sym_shndx()
|
H A D | globals_machelf.c | 257 _conv_expn_field2(CONV_EXPN_FIELD_ARG *arg, uchar_t osabi, Half mach, in _conv_expn_field2() argument 271 if (CONV_VD2_SKIP(osabi, mach, vdp)) in _conv_expn_field2()
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | entry.c | 35 Dbg_ent_entry(Lm_list *lml, uchar_t osabi, Half mach, Ent_desc *enp) in Dbg_ent_entry() argument 54 conv_sec_flags(osabi, mach, enp->ec_attrmask, 0, &buf.sec_flags)); in Dbg_ent_entry() 59 conv_sec_flags(osabi, mach, enp->ec_attrbits, 0, &buf.sec_flags)); in Dbg_ent_entry() 62 conv_sec_type(osabi, mach, enp->ec_type, 0, &buf.inv)); in Dbg_ent_entry() 77 Dbg_ent_print(Lm_list *lml, uchar_t osabi, Half mach, APlist *alp) in Dbg_ent_print() argument 90 Dbg_ent_entry(lml, osabi, mach, enp); in Dbg_ent_print()
|
H A D | shdr.c | 33 Elf_shdr(Lm_list *lml, uchar_t osabi, Half mach, Shdr *shdr) in Elf_shdr() argument 39 conv_sec_flags(osabi, mach, shdr->sh_flags, 0, &sec_flags_buf)); in Elf_shdr() 41 conv_sec_type(osabi, mach, shdr->sh_type, 0, &inv_buf1)); in Elf_shdr() 61 Dbg_shdr_modified(Lm_list *lml, const char *obj, uchar_t osabi, Half mach, in Dbg_shdr_modified() argument 79 Elf_shdr(lml, osabi, mach, oshdr); in Dbg_shdr_modified() 82 Elf_shdr(lml, osabi, mach, nshdr); in Dbg_shdr_modified()
|
H A D | phdr.c | 33 Elf_phdr(Lm_list *lml, uchar_t osabi, Half mach, Phdr *phdr) in Elf_phdr() argument 39 conv_phdr_flags(osabi, phdr->p_flags, 0, &phdr_flags_buf)); in Elf_phdr() 41 conv_phdr_type(osabi, mach, phdr->p_type, 0, &inv_buf)); in Elf_phdr()
|
H A D | elf.c | 41 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in Elf_ehdr() local 62 conv_ehdr_type(osabi, ehdr->e_type, 0, &inv_buf1)); in Elf_ehdr() 112 conv_sec_flags(osabi, mach, shdr0->sh_flags, 0, &sec_flags_buf)); in Elf_ehdr() 114 conv_sec_type(osabi, mach, shdr0->sh_type, 0, &inv_buf1)); in Elf_ehdr()
|
H A D | segments.c | 36 Dbg_seg_desc_entry(Lm_list *lml, uchar_t osabi, Half mach, int ndx, in Dbg_seg_desc_entry() argument 52 Elf_phdr(lml, osabi, mach, &sgp->sg_phdr); in Dbg_seg_desc_entry() 119 Dbg_seg_list(Lm_list *lml, uchar_t osabi, Half mach, APlist *apl) in Dbg_seg_list() argument 131 Dbg_seg_desc_entry(lml, osabi, mach, ndx++, sgp, TRUE); in Dbg_seg_list()
|
H A D | dynamic.c | 45 uchar_t osabi, Half mach) in Elf_dyn_entry() argument 52 conv_dyn_tag(dyn->d_tag, osabi, mach, 0, &inv_buf), in Elf_dyn_entry()
|
H A D | map.c | 187 Dbg_map_sort_seg(Lm_list *lml, uchar_t osabi, Half mach, Sg_desc *sgp) in Dbg_map_sort_seg() argument 197 type_str = conv_phdr_type(osabi, mach, sgp->sg_phdr.p_type, in Dbg_map_sort_seg() 287 Dbg_map_seg_order(Ofl_desc *ofl, uchar_t osabi, Half mach, in Dbg_map_seg_order() argument 304 type_str = conv_phdr_type(osabi, mach, sgp->sg_phdr.p_type, in Dbg_map_seg_order()
|
H A D | syms.c | 439 uchar_t osabi = ofl->ofl_dehdr->e_ident[EI_OSABI]; in Dbg_syms_resolving() local 452 osabi, mach, osym, sdp->sd_aux ? sdp->sd_aux->sa_overndx : 0, in Dbg_syms_resolving() 456 osabi, mach, nsym, 0, 0, NULL, ifl->ifl_name); in Dbg_syms_resolving() 632 uchar_t osabi, Half mach, Sym *sym, Versym verndx, int gnuver, in Elf_syms_table_entry() argument 649 sec = conv_sym_shndx(osabi, mach, sym->st_shndx, in Elf_syms_table_entry()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | elfdump.c | 1040 state->osabi = osabi; in init_symtbl_state() 3314 osabi, file) in dynamic() 3318 osabi, file) in dynamic() 3322 osabi, file) in dynamic() 5061 if (osabi == ELFOSABI_NONE) in regular() 5062 osabi = ELFOSABI_UNKNOWN4; in regular() 5103 osabi = ELFOSABI_LINUX; in regular() 5111 if (osabi == ELFOSABI_NONE) in regular() 5112 osabi = ELFOSABI_SOLARIS; in regular() 5317 if ((osabi == ELFOSABI_SOLARIS) || (osabi == ELFOSABI_LINUX)) in regular() [all …]
|
H A D | main.c | 548 const char *wname, int wfd, uchar_t osabi) in decide() argument 553 r = regular64(file, fd, elf, flags, wname, wfd, osabi); in decide() 555 r = regular32(file, fd, elf, flags, wname, wfd, osabi); in decide() 562 const char *wname, int wfd, uchar_t osabi) in archive() argument 704 wname, wfd, osabi) == 1) in archive() 709 wname, wfd, osabi) == 1) in archive() 735 uchar_t osabi = ELFOSABI_NONE; in main() local 818 osabi = val; in main() 964 ret = archive(file, fd, elf, flags, wname, wfd, osabi); in main() 967 ret = decide(file, fd, elf, flags, wname, wfd, osabi); in main()
|
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/ |
H A D | phdr.c | 228 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in process_args() local 241 EC_WORD(i), conv_phdr_type(osabi, in process_args() 352 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in print_phdr() local 411 Elf_phdr(0, osabi, mach, phdr); in print_phdr() 447 conv_phdr_type(osabi, in print_phdr() 486 conv_phdr_flags(osabi, phdr->p_flags, in print_phdr() 691 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in cmd_body() local 707 conv_phdr_type(osabi, mach, in cmd_body() 709 conv_phdr_type(osabi, mach, in cmd_body() 824 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in cmd_body() local [all …]
|
H A D | shdr.c | 217 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in print_shdr() local 258 Elf_shdr(NULL, osabi, mach, sec->sec_shdr); in print_shdr() 284 conv_sec_flags(osabi, mach, shdr->sh_flags, in print_shdr() 331 conv_sec_type(osabi, mach, shdr->sh_type, 0, in print_shdr() 359 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in cmd_body() local 525 conv_sec_flags(osabi, mach, in cmd_body() 532 conv_sec_flags(osabi, mach, in cmd_body() 534 conv_sec_flags(osabi, mach, in cmd_body() 708 conv_sec_type(osabi, mach, shdr->sh_type, in cmd_body() 715 conv_sec_type(osabi, mach, shdr->sh_type, in cmd_body() [all …]
|
H A D | dyn.c | 662 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in arg_to_index() local 669 conv_dyn_tag(dt_value, osabi, mach, 0, &want), in arg_to_index() 671 osabi, mach, 0, &is)); in arg_to_index() 1280 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in cmd_body() local 1289 EC_WORD(ndx), conv_dyn_tag(d_tag, osabi, in cmd_body() 1311 osabi, mach, 0, &inv_buf1)); in cmd_body() 1327 conv_dyn_tag(d_tag, osabi, in cmd_body() 1335 conv_dyn_tag(d_tag, osabi, in cmd_body() 1343 conv_dyn_tag(orig_d_tag, osabi, mach, 0, in cmd_body() 1345 conv_dyn_tag(d_tag, osabi, mach, 0, in cmd_body()
|
H A D | ehdr.c | 1291 int osabi = (int)elfedit_atoconst_range( in cmd_body() local 1297 if (ehdr->e_ident[EI_OSABI] == osabi) { in cmd_body() 1300 conv_ehdr_osabi(osabi, 0, &inv_buf1)); in cmd_body() 1306 conv_ehdr_osabi(osabi, 0, &inv_buf2)); in cmd_body() 1308 ehdr->e_ident[EI_OSABI] = osabi; in cmd_body()
|