Home
last modified time | relevance | path

Searched refs:ndx (Results 101 – 125 of 157) sorted by last modified time

1234567

/illumos-gate/usr/src/cmd/sgs/rtld/common/
H A Dtsort.c94 int ndx; in sort_scc() local
112 ndx = 1; in sort_scc()
117 IDX(lmp) = ndx++; in sort_scc()
141 IDX(lmp3) = ndx++; in sort_scc()
176 for (ndx = fndx; ndx < sort->s_lndx; ndx++) { in sort_scc()
177 lmp = sort->s_lmpa[ndx]; in sort_scc()
187 for (ndx = sort->s_lndx - 1; ndx >= fndx; ndx--) { in sort_scc()
188 lmp = sort->s_lmpa[ndx]; in sort_scc()
198 for (ndx = fndx; ndx < sort->s_lndx; ndx++) { in sort_scc()
230 for (ndx = fndx; ndx < sort->s_lndx; ndx++) { in sort_scc()
[all …]
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Dmap.c260 Word ndx, Lineno lineno) in Dbg_map_seg_os_order() argument
266 sgp->sg_name, sec_name, EC_WORD(ndx)); in Dbg_map_seg_os_order()
270 Dbg_map_seg(Ofl_desc *ofl, dbg_state_t dbg_state, int ndx, Sg_desc *sgp, in Dbg_map_seg() argument
282 ofl->ofl_dehdr->e_machine, ndx, sgp, FALSE); in Dbg_map_seg()
H A Dsections.c421 Dbg_sec_order_error(Lm_list *lml, Ifl_desc *ifl, Word ndx, int error) in Dbg_sec_order_error() argument
435 dbg_fmt_isec_name(ifl->ifl_isdesc[ndx], buf, &alloc_mem), in Dbg_sec_order_error()
H A Dsegments.c36 Dbg_seg_desc_entry(Lm_list *lml, uchar_t osabi, Half mach, int ndx, in Dbg_seg_desc_entry() argument
45 dbg_print(lml, MSG_ORIG(MSG_SEG_DESC), ndx); in Dbg_seg_desc_entry()
106 Dbg_seg_entry(Ofl_desc *ofl, int ndx, Sg_desc *sgp) in Dbg_seg_entry() argument
112 ofl->ofl_dehdr->e_machine, ndx, sgp, TRUE); in Dbg_seg_entry()
123 int ndx = 0; in Dbg_seg_list() local
131 Dbg_seg_desc_entry(lml, osabi, mach, ndx++, sgp, TRUE); in Dbg_seg_list()
141 Dbg_seg_os(Ofl_desc *ofl, Os_desc *osp, int ndx) in Dbg_seg_os() argument
155 dbg_print(lml, MSG_ORIG(MSG_SEC_NAME), ndx, osp->os_name); in Dbg_seg_os()
H A Dshdr.c62 Word ndx, Shdr *oshdr, Shdr *nshdr, const char *name) in Dbg_shdr_modified() argument
74 dbg_fmt_isec_name2(name, ndx, buf, &alloc_mem), obj); in Dbg_shdr_modified()
H A Dtls.c79 ulong_t ndx; in Dbg_tls_static_block() local
84 for (ndx = 0; tlsmodlist[ndx]; ndx++) { in Dbg_tls_static_block()
85 dbg_print(lml, MSG_INTL(MSG_TLS_STATBLOCK1), ndx, in Dbg_tls_static_block()
86 tlsmodlist[ndx]->tm_modname); in Dbg_tls_static_block()
87 Dbg_tls_modent(lml, tlsmodlist[ndx]); in Dbg_tls_static_block()
H A Dutil.c129 Dbg_util_call_array(Rt_map *lmp, void *addr, int ndx, Word shtype) in Dbg_util_call_array() argument
144 dbg_print(lml, MSG_INTL(MSG_UTL_ARRAY), str, ndx, EC_NATPTR(addr), in Dbg_util_call_array()
205 int ndx, int flag) in Dbg_util_edge_in() argument
228 dbg_print(lml, MSG_INTL(MSG_UTL_EDGE_START), ndx, NAME(dlmp)); in Dbg_util_edge_in()
230 dbg_print(lml, MSG_INTL(MSG_UTL_EDGE_IN), ndx, NAME(dlmp), in Dbg_util_edge_in()
249 Dbg_util_collect(Rt_map *lmp, int ndx, int flag) in Dbg_util_collect() argument
268 dbg_print(lml, MSG_INTL(MSG_UTL_COLLECT), ndx, NAME(lmp), str); in Dbg_util_collect()
H A Ddynamic.c44 Elf_dyn_entry(Lm_list *lml, Dyn *dyn, int ndx, const char *name, in Elf_dyn_entry() argument
50 (void) snprintf(index, sizeof (index), MSG_ORIG(MSG_FMT_INDEX), ndx); in Elf_dyn_entry()
H A Dentry.c80 Aliste ndx; in Dbg_ent_print() local
88 for (APLIST_TRAVERSE(alp, ndx, enp)) { in Dbg_ent_print()
89 dbg_print(lml, MSG_INTL(MSG_ECR_DESC), EC_WORD(ndx)); in Dbg_ent_print()
H A Dsupport.c74 Support_ndx ndx, const char *name) in Dbg_support_action() argument
83 if (ndx == LDS_START) in Dbg_support_action()
85 else if ((ndx == LDS_OPEN) || (ndx == LDS_FILE)) in Dbg_support_action()
87 else if (ndx == LDS_INSEC) in Dbg_support_action()
89 else if (ndx == LDS_SEC) in Dbg_support_action()
92 if ((ndx == LDS_ATEXIT) || (ndx == LDS_VERSION) || in Dbg_support_action()
93 (ndx == LDS_INPUT_DONE)) in Dbg_support_action()
H A Dsyminfo.c40 Elf_syminfo_entry(Lm_list *lml, Word ndx, Syminfo *sip, const char *name, in Elf_syminfo_entry() argument
125 (void) snprintf(sndxstr, NDXSZ, MSG_ORIG(MSG_FMT_INDEX), ndx); in Elf_syminfo_entry()
H A Dargs.c31 Dbg_args_option(Lm_list *lml, int ndx, int c, char *optarg) in Dbg_args_option() argument
37 dbg_print(lml, MSG_INTL(MSG_ARG_OPTARG), ndx, c, optarg); in Dbg_args_option()
39 dbg_print(lml, MSG_INTL(MSG_ARG_OPTION), ndx, c); in Dbg_args_option()
43 Dbg_args_str2chr(Lm_list *lml, int ndx, const char *opt, int c) in Dbg_args_str2chr() argument
48 dbg_print(lml, MSG_INTL(MSG_ARG_STR2CHR), ndx, opt, c); in Dbg_args_str2chr()
52 Dbg_args_Wldel(Lm_list *lml, int ndx, const char *opt) in Dbg_args_Wldel() argument
57 dbg_print(lml, MSG_INTL(MSG_ARG_WLDEL), ndx, opt); in Dbg_args_Wldel()
61 Dbg_args_file(Lm_list *lml, int ndx, char *file) in Dbg_args_file() argument
66 dbg_print(lml, MSG_INTL(MSG_ARG_FILE), ndx, file); in Dbg_args_file()
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Drelocate.c310 Word *ndx; in count_reloc() local
320 ndx)) { in count_reloc()
321 if (*ndx == rsymndx) { in count_reloc()
431 Half ndx; local
489 for (ndx = 1; _icache->c_flags != FLG_C_END; ndx++,
500 ircache = &icache[ndx];
501 orcache = &ocache[ndx];
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dmachrel.sparc.c587 Xword ndx, roffset, value; in ld_perform_outreloc() local
750 ndx = STN_UNDEF; in ld_perform_outreloc()
760 ndx = sdp->sd_isc->is_osdesc->os_identndx; in ld_perform_outreloc()
762 ndx = sdp->sd_shndx; in ld_perform_outreloc()
764 ndx = ofl->ofl_parexpnndx; in ld_perform_outreloc()
766 ndx = sdp->sd_symndx; in ld_perform_outreloc()
789 if (ndx == 0) { in ld_perform_outreloc()
802 rea.r_info = ELF_R_INFO(ndx, in ld_perform_outreloc()
1597 Word ndx; in ld_reloc_register() local
1599 for (ndx = ifl->ifl_locscnt; in ld_reloc_register()
[all …]
H A Dmap.c1227 Xword ndx; in ld_map_parse_v1() local
1338 ndx = ld_map_seg_index(mf, sgp1); in ld_map_parse_v1()
1340 ndx, sgp1, mf->mf_lineno); in ld_map_parse_v1()
1374 DBG_STATE_MOD_AFTER, ndx, sgp1, in ld_map_parse_v1()
1396 DBG_STATE_MOD_AFTER, ndx, sgp1, in ld_map_parse_v1()
H A Dsunwmove.c193 Xword ndx = ELF_M_SYM(mvp->m_info); in ld_process_move() local
197 if ((ndx >= (Xword) isp->is_file->ifl_symscnt) || in ld_process_move()
198 (ndx == 0)) { in ld_process_move()
215 sdp = isp->is_file->ifl_oldndx[ndx]; in ld_process_move()
H A Dsupport.c254 Shdr **oshdr, Word ndx, Elf_Scn *scn, Elf *elf) in ld_sup_input_section() argument
281 (*flp->fl_fptr)(sname, &nshdr, ndx, data, elf, &flags); in ld_sup_input_section()
292 ehdr->e_ident[EI_OSABI], ehdr->e_machine, ndx, in ld_sup_input_section()
301 ld_sup_section(Ofl_desc *ofl, const char *scn, Shdr *shdr, Word ndx, in ld_sup_section() argument
310 (*flp->fl_fptr)(scn, shdr, ndx, data, elf); in ld_sup_section()
H A Dorder.c169 validate_shf_ordered_dest(Ofl_desc *ofl, Ifl_desc *ifl, Word ndx, in validate_shf_ordered_dest() argument
182 isp1_ndx = ndx; in validate_shf_ordered_dest()
183 isp1 = ifl->ifl_isdesc[ndx]; in validate_shf_ordered_dest()
247 DBG_CALL(Dbg_sec_order_error(ofl->ofl_lml, ifl, ndx, error)); in validate_shf_ordered_dest()
256 if (isp2_ndx != ndx) in validate_shf_ordered_dest()
293 Word ndx) in ld_process_ordered() argument
295 Is_desc *isp2, *isp = ifl->ifl_isdesc[ndx]; in ld_process_ordered()
317 DBG_CALL(Dbg_sec_order_error(ofl->ofl_lml, ifl, ndx, error)); in ld_process_ordered()
327 (validate_shf_ordered_dest(ofl, ifl, ndx, &alt_os_name) == FALSE)) in ld_process_ordered()
H A Doutfile.c377 size_t ndx; in ld_create_outfile() local
809 ndx = 0; in ld_create_outfile()
830 elf_getscn(ofl->ofl_elf, ++ndx)) == NULL) { in ld_create_outfile()
833 ndx); in ld_create_outfile()
854 if (ndx == fndx) { in ld_create_outfile()
H A Dresolve.c56 int ndx, Word nshndx, sd_flag_t nsdflags) in sym_null() argument
473 Half vndx = ifl->ifl_versym[ndx]; in sym_override()
686 sym_promote(sdp, nsym, ifl, ofl, ndx, in sym_realtent()
706 sym_override(sdp, nsym, ifl, ofl, ndx, in sym_realtent()
713 sym_override(sdp, nsym, ifl, ofl, ndx, in sym_realtent()
985 sym_override(sdp, nsym, ifl, ofl, ndx,
993 sym_promote(sdp, nsym, ifl, ofl, ndx,
998 sym_override(sdp, nsym, ifl, ofl, ndx,
1032 sym_override(sdp, nsym, ifl, ofl, ndx,
1035 sym_promote(sdp, nsym, ifl, ofl, ndx,
[all …]
H A Dsyms.c1805 int ndx; in ld_sym_validate() local
1807 for (ndx = 0; ndx < ofl->ofl_regsymsno; ndx++) { in ld_sym_validate()
2113 ndx = shdr->sh_link; in ld_sym_process()
2114 if ((ndx == 0) || (ndx >= ifl->ifl_shnum)) { in ld_sym_process()
2176 for (sym++, ndx = 1; ndx < local; sym++, ndx++) { in ld_sym_process()
2265 sdp->sd_symndx = ndx; in ld_sym_process()
2380 last_file_ndx = ndx; in ld_sym_process()
2505 for (ndx = (int)local; ndx < total; sym++, ndx++) { in ld_sym_process()
2783 cpp->c_ndx = ndx; in ld_sym_process()
2841 sdp->sd_symndx = ndx; in ld_sym_process()
[all …]
H A Dunwind.c292 data += *ndx; in extract_uint()
298 (*ndx) += 4; in extract_uint()
389 uint64_t ndx = 0; in ld_unwind_make_hdr() local
414 ndx += 1; in ld_unwind_make_hdr()
558 uint64_t ndx = 0; in ld_unwind_populate_hdr() local
594 ndx += 1; in ld_unwind_populate_hdr()
627 ndx++; in ld_unwind_populate_hdr()
662 ndx++; in ld_unwind_populate_hdr()
670 &ndx, &ujunk, ciePflag, in ld_unwind_populate_hdr()
692 ndx++; in ld_unwind_populate_hdr()
[all …]
H A Dutil.c197 DBG_CALL(Dbg_args_str2chr(lml, ndx, opt, c)); in str2chr()
208 DBG_CALL(Dbg_args_str2chr(lml, ndx, opt, c)); in str2chr()
308 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
319 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
344 } else if ((c = str2chr(lml, argc, ndx, argv, in ld_getopt()
371 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
420 } else if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
484 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
515 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
525 if ((c = str2chr(lml, ndx, argc, argv, in ld_getopt()
[all …]
H A Dversion.c494 int ndx = vdp->vd_ndx; in vers_index() local
496 vip[ndx].vi_name = vdp->vd_name; in vers_index()
497 vip[ndx].vi_desc = vdp; in vers_index()
504 vip[ndx].vi_flags |= FLG_VER_AVAIL; in vers_index()
513 vip[ndx].vi_flags |= VER_FLG_WEAK; in vers_index()
526 vip[ndx].vi_flags |= FLG_VER_REFER; in vers_index()
652 Half ndx = vdf->vd_ndx; in ld_vers_def_process() local
660 if (ndx > ifl->ifl_vercnt) in ld_vers_def_process()
661 ifl->ifl_vercnt = ndx; in ld_vers_def_process()
672 ivdp->vd_ndx = ndx; in ld_vers_def_process()
[all …]
H A Dmachrel.amd.c284 Word ndx; in ld_perform_outreloc() local
407 ndx = STN_UNDEF; in ld_perform_outreloc()
417 ndx = sdp->sd_isc->is_osdesc->os_identndx; in ld_perform_outreloc()
419 ndx = sdp->sd_shndx; in ld_perform_outreloc()
421 ndx = ofl->ofl_parexpnndx; in ld_perform_outreloc()
423 ndx = sdp->sd_symndx; in ld_perform_outreloc()
440 if (ndx == 0) { in ld_perform_outreloc()
453 rea.r_info = ELF_R_INFO(ndx, orsp->rel_rtype); in ld_perform_outreloc()

1234567