Home
last modified time | relevance | path

Searched refs:osabi (Results 1 – 25 of 32) sorted by relevance

12

/titanic_52/usr/src/cmd/sgs/elfedit/common/
H A Delfconst.c132 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
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, in libconv_fill_iter() argument
278 (void) (* sym->ste_conv_func.osabi)(osabi, in libconv_fill_iter()
280 (void) (* sym->ste_conv_func.osabi)(osabi, in libconv_fill_iter()
304 libconv_fill(sym_table_ent_t * sym,conv_iter_osabi_t osabi,Half mach) libconv_fill() argument
347 init_libconv_strings(conv_iter_osabi_t * osabi,Half * mach) init_libconv_strings() argument
427 invalidate_libconv_strings(conv_iter_osabi_t * osabi,Half * mach) invalidate_libconv_strings() argument
499 static conv_iter_osabi_t osabi; elfedit_const_to_atoui() local
[all...]
H A Dutil_machelf.c316 * Compare the a specified osabi with that of the current object.
321 * not return to the caller if osabi is not native.
324 * If current osabi is the one specified, True (1) is returned.
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()
519 * if the osabi is Solaris. in elfedit_sec_issymtab()
/titanic_52/usr/src/cmd/sgs/liblddbg/common/
H A Dentry.c35 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 Dshdr.c33 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 Dphdr.c33 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 Delf.c41 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 Dsegments.c36 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 Ddynamic.c45 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 Dmap.c187 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 Dsyms.c446 uchar_t osabi = ofl->ofl_dehdr->e_ident[EI_OSABI]; in Dbg_syms_resolving() local
459 osabi, mach, osym, sdp->sd_aux ? sdp->sd_aux->sa_overndx : 0, in Dbg_syms_resolving()
463 osabi, mach, nsym, 0, 0, NULL, ifl->ifl_name); in Dbg_syms_resolving()
639 uchar_t osabi, Half mach, Sym *sym, Versym verndx, int gnuver, in Elf_syms_table_entry() argument
656 sec = conv_sym_shndx(osabi, mach, sym->st_shndx, in Elf_syms_table_entry()
/titanic_52/usr/src/cmd/sgs/libconv/common/
H A Dsections.c39 sec_type_strings(conv_iter_osabi_t osabi, Half mach, Conv_fmt_flags_t fmt_flags) in sec_type_strings() argument
43 * three osabi arrays, two machine arrays, plus the NULL termination. in sec_type_strings()
165 /* The Linux osabi range has two separate sequences */ in sec_type_strings()
266 if ((osabi == ELFOSABI_NONE) || (osabi == ELFOSABI_SOLARIS) || in sec_type_strings()
267 (osabi == CONV_OSABI_ALL)) { in sec_type_strings()
284 if ((osabi == ELFOSABI_LINUX) || (osabi == CONV_OSABI_ALL)) { in sec_type_strings()
348 conv_sec_type(uchar_t osabi, Half mach, Word sec, Conv_fmt_flags_t fmt_flags, in conv_sec_type() argument
351 return (conv_map_ds(osabi, mac in conv_sec_type()
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) conv_iter_sec_type() argument
369 conv_iter_sec_symtab(conv_iter_osabi_t osabi,Conv_fmt_flags_t fmt_flags,conv_iter_cb_t func,void * uvalue) conv_iter_sec_symtab() 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) conv_iter_sec_flags() argument
[all...]
H A Dglobals.c77 * 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, 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()
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) _conv_iter_vd2() 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) _conv_iter_ds() argument
[all...]
H A Dphdr.c193 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 Delf.c777 conv_ehdr_type(uchar_t osabi, Half etype, Conv_fmt_flags_t fmt_flags, in conv_ehdr_type() argument
780 return (conv_map_ds(osabi, EM_NONE, etype, in conv_ehdr_type()
785 conv_iter_ehdr_type(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags, in conv_iter_ehdr_type() argument
788 return (conv_iter_ds(osabi, EM_NONE, in conv_iter_ehdr_type()
1094 conv_ehdr_osabi(uchar_t osabi, Conv_fmt_flags_t fmt_flags, in conv_ehdr_osabi() argument
1097 return (conv_map_ds(ELFOSABI_NONE, EM_NONE, osabi, in conv_ehdr_osabi()
1126 ehdr_abivers_strings(conv_iter_osabi_t osabi, Conv_fmt_flags_t fmt_flags) in ehdr_abivers_strings() argument
1159 if ((osabi == ELFOSABI_SOLARIS) || (osabi == CONV_OSABI_ALL)) in ehdr_abivers_strings()
1167 conv_ehdr_abivers(uchar_t osabi, Word version, Conv_fmt_flags_t fmt_flags, in conv_ehdr_abivers() argument
1170 return (conv_map_ds(osabi, EM_NONE, version, in conv_ehdr_abivers()
[all …]
H A Ddynamic_machelf.c133 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 Dsections_machelf.c40 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 Ddynamic.c420 conv_dyn_tag_strings(conv_iter_osabi_t osabi, Half mach, in conv_dyn_tag_strings() argument
747 * DT_LOPROC - DT_HIPROC range: Solaris osabi, all hardware in conv_dyn_tag_strings()
777 osabi_solaris = (osabi == ELFOSABI_NONE) || in conv_dyn_tag_strings()
778 (osabi == ELFOSABI_SOLARIS) || (osabi == CONV_OSABI_ALL); in conv_dyn_tag_strings()
779 osabi_linux = (osabi == ELFOSABI_LINUX) || (osabi == CONV_OSABI_ALL); in conv_dyn_tag_strings()
785 * apply to the current osabi. Note that we order these items such in conv_dyn_tag_strings()
877 conv_iter_dyn_tag(conv_iter_osabi_t osabi, Half mach, in conv_iter_dyn_tag() argument
880 return (conv_iter_ds(osabi, mac in conv_iter_dyn_tag()
[all...]
H A Dsymbols.c371 conv_sym_shndx(uchar_t osabi, Half mach, Half shndx, Conv_fmt_flags_t fmt_flags, in conv_sym_shndx() argument
374 return (conv_map_ds(osabi, mach, shndx, in conv_sym_shndx()
379 conv_iter_sym_shndx(conv_iter_osabi_t osabi, Half mach, in conv_iter_sym_shndx() argument
401 if (conv_iter_ds(osabi, mach, conv_sym_shndx_strings(fmt_flags), in conv_iter_sym_shndx()
H A Dglobals_machelf.c223 * 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, in _conv_expn_field2() argument
271 if (CONV_VD2_SKIP(osabi, mach, vdp)) in _conv_expn_field2()
/titanic_52/usr/src/cmd/sgs/elfdump/common/
H A Dlintsup.c47 const char *wname, int wfd, uchar_t osabi) in regular32() argument
49 return (regular64(file, fd, elf, flags, wname, wfd, osabi)); in regular32()
54 const char *wname, int wfd, uchar_t osabi) in regular64() argument
56 return (regular32(file, fd, elf, flags, wname, wfd, osabi)); in regular64()
H A Delfdump.c123 uchar_t osabi; /* OSABI to use */ member
458 sections(const char *file, Cache *cache, Word shnum, Ehdr *ehdr, uchar_t osabi) in sections() argument
494 Elf_shdr(0, osabi, ehdr->e_machine, shdr); in sections()
535 * osabi - OSABI to use in displaying information
541 gnu_eh_state_t *eh_state, uchar_t osabi, const char *file, uint_t flags) in unwind_eh_frame() argument
702 conv_ehdr_type(osabi, ehdr->e_type, 0, &inv_buf)); in unwind_eh_frame()
859 unwind(Cache *cache, Word shnum, Word phnum, Ehdr *ehdr, uchar_t osabi, in unwind() argument
952 &eh_state, osabi, file, flags); in unwind()
971 Ehdr *ehdr, uchar_t osabi, VERSYM_STATE *versym, const char *file, in init_symtbl_state() argument
979 state->osabi in init_symtbl_state()
1314 cap_section(const char * file,Cache * cache,Word shnum,Cache * ccache,uchar_t osabi,Ehdr * ehdr,uint_t flags) cap_section() argument
1689 cap(const char * file,Cache * cache,Word shnum,Word phnum,Ehdr * ehdr,uchar_t osabi,Elf * elf,uint_t flags) cap() argument
1848 syminfo(Cache * cache,Word shnum,Ehdr * ehdr,uchar_t osabi,const char * file) syminfo() argument
2421 symbols(Cache * cache,Word shnum,Ehdr * ehdr,uchar_t osabi,VERSYM_STATE * versym,const char * file,uint_t flags) symbols() argument
2464 sunw_sort(Cache * cache,Word shnum,Ehdr * ehdr,uchar_t osabi,VERSYM_STATE * versym,const char * file,uint_t flags) sunw_sort() argument
2752 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) dyn_test() argument
2870 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) dyn_symtest() argument
2904 dynamic(Cache * cache,Word shnum,Ehdr * ehdr,uchar_t osabi,const char * file) dynamic() argument
4807 regular(const char * file,int fd,Elf * elf,uint_t flags,const char * wname,int wfd,uchar_t osabi) regular() argument
[all...]
H A Dmain.c548 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; in main() local
813 * osabi is a uchar_t in the ELF header. in main()
824 osabi = val; in main()
970 ret = archive(file, fd, elf, flags, wname, wfd, osabi); in main()
[all...]
/titanic_52/usr/src/cmd/sgs/elfedit/modules/common/
H A Dphdr.c228 uchar_t osabi = ehdr->e_ident[EI_OSABI]; in process_args() local
241 EC_WORD(i), conv_phdr_type(osabi, in process_args()
249 osabi, mach, argstate->ndx, 0, &inv_buf)); 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
701 conv_phdr_type(osabi, mach, phdr->p_type, in cmd_body()
707 conv_phdr_type(osabi, mac in cmd_body()
824 uchar_t osabi = ehdr->e_ident[EI_OSABI]; cmd_body() local
[all...]
H A Dshdr.c217 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, mac in cmd_body()
[all...]
H A Ddyn.c662 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, mac in cmd_body()
[all...]

12