Home
last modified time | relevance | path

Searched refs:scn (Results 1 – 25 of 73) sorted by path

123

/illumos-gate/usr/src/cmd/abi/appcert/static_prof/
H A Dstatic_prof.c631 scn = 0; in find_dynamic_sect()
633 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) { in find_dynamic_sect()
690 Elf_Scn *scn, *scn2; in find_symtabs() local
701 scn = 0; in find_symtabs()
710 while ((scn = elf_nextscn(c->obj->elf, scn)) != 0) { in find_symtabs()
867 if (scn != NULL) { in is_text_section()
1185 Elf_Scn *scn; in print_symtab() local
1214 if (scn == NULL) in print_symtab()
1267 Elf_Scn *scn, *scnfd; in get_symtab() local
1293 scn = 0; in get_symtab()
[all …]
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c61 Elf_Scn *scn = NULL; in main() local
91 while ((scn = elf_nextscn(elfp, scn)) != NULL) { in main()
92 if ((gelf_getshdr(scn, &shdr) == NULL) || in main()
95 ((symdata = elf_getdata(scn, NULL)) == NULL)) in main()
/illumos-gate/usr/src/cmd/ctfmerge/
H A Dctfmerge.c101 Elf_Scn *scn; in ctfmerge_elfopen() local
115 scn = NULL; in ctfmerge_elfopen()
116 while ((scn = elf_nextscn(elf, scn)) != NULL) { in ctfmerge_elfopen()
119 if (gelf_getshdr(scn, &shdr) == NULL) in ctfmerge_elfopen()
133 ctf_data = elf_getdata(scn, NULL); in ctfmerge_elfopen()
164 sym_data = elf_getdata(scn, NULL); in ctfmerge_elfopen()
/illumos-gate/usr/src/cmd/dis/
H A Ddis_list.c140 walk_sections(dis_tgt_t *tgt, dis_scn_t *scn, void *data) in walk_sections() argument
150 if (strcmp(unp->un_name, dis_section_name(scn)) == 0) { in walk_sections()
163 resolved->rn_data = dis_section_copy(scn); in walk_sections()
H A Ddis_main.c400 dis_text_section(dis_tgt_t *tgt, dis_scn_t *scn, void *data) in dis_text_section() argument
405 if (!dis_section_istext(scn)) in dis_text_section()
409 (void) printf("\nsection %s\n", dis_section_name(scn)); in dis_text_section()
411 dis_data(tgt, dhp, dis_section_addr(scn), dis_section_data(scn), in dis_text_section()
412 dis_section_size(scn)); in dis_text_section()
430 dis_named_section(dis_scn_t *scn, int type, void *data) in dis_named_section() argument
435 (void) printf("\nsection %s\n", dis_section_name(scn)); in dis_named_section()
439 dump_data(0, dis_section_data(scn), dis_section_size(scn)); in dis_named_section()
442 dump_data(dis_section_addr(scn), dis_section_data(scn), in dis_named_section()
443 dis_section_size(scn)); in dis_named_section()
[all …]
H A Ddis_target.c254 Elf_Scn *scn; in construct_symtab() local
267 for (scn = elf_nextscn(tgt->dt_elf, NULL); scn != NULL; in construct_symtab()
268 scn = elf_nextscn(tgt->dt_elf, scn)) { in construct_symtab()
772 Elf_Scn *scn; in dis_tgt_section_iter() local
775 for (scn = elf_nextscn(tgt->dt_elf, NULL), idx = 1; scn != NULL; in dis_tgt_section_iter()
776 scn = elf_nextscn(tgt->dt_elf, scn), idx++) { in dis_tgt_section_iter()
826 return (scn->ds_data->d_buf); in dis_section_data()
835 return (scn->ds_data->d_size); in dis_section_size()
853 return (scn->ds_name); in dis_section_name()
876 free(scn); in dis_section_free()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/
H A DMakefile36 COBJS = main.o qry.o admintf.o dsapi.o log.o sched.o dseng.o scn.o cache.o
H A Dfunc.c1239 uint32_t scn; local
1257 scn = ntohl(*(uint32_t *)&op->attr_value[0]);
1259 ec = add_scn_entry(node_name, nlen, scn);
H A Disns_scn.h85 typedef struct scn { struct
91 struct scn *next; argument
104 scn_t *scn; member
H A Dscn.c237 scn_t *scn in free_scn_list() argument
244 while (scn != NULL) { in free_scn_list()
245 next_scn = scn->next; in free_scn_list()
253 free(scn); in free_scn_list()
254 scn = next_scn; in free_scn_list()
276 p->scn = NULL; in free_scn()
1304 s = p->scn; in scn_disp1()
1333 p->scn = s; in scn_disp1()
1741 s = p->scn; in scn_trigger1()
1888 list->scn = NULL; in scn_list_load()
[all …]
/illumos-gate/usr/src/cmd/isns/isnsd/xml/
H A Ddata.def113 DEF_XML_DATA("scn", "u", ISNS_SCN_PORT_ATTR_ID,
/illumos-gate/usr/src/cmd/lockstat/
H A Dsym.c140 Elf_Scn *scn = NULL; in symtab_init() local
155 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init()
156 Shdr *shdr = elf_getshdr(scn); in symtab_init()
158 symtab = (Sym *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
164 for (cnt = 1; (scn = elf_nextscn(elf, scn)) != NULL; cnt++) { in symtab_init()
166 strtab = (char *)elf_getdata(scn, NULL)->d_buf; in symtab_init()
/illumos-gate/usr/src/cmd/mdb/tools/common/
H A Dfindscn.c36 Elf_Scn *scn = NULL; in findelfsecidx() local
43 while ((scn = elf_nextscn(elf, scn)) != NULL) { in findelfsecidx()
46 if (gelf_getshdr(scn, &shdr) == NULL || in findelfsecidx()
52 return (elf_ndxscn(scn)); in findelfsecidx()
/illumos-gate/usr/src/cmd/mdb/tools/setdynflag/common/
H A Dsetdynflag.c86 Elf_Scn *scn; in set_flag() local
103 if ((scn = elf_getscn(elf, secidx)) == NULL) in set_flag()
106 if (gelf_getshdr(scn, &shdr) == NULL) in set_flag()
109 if ((data = elf_getdata(scn, NULL)) == NULL) in set_flag()
/illumos-gate/usr/src/cmd/sgs/ar/common/
H A Dfile.c249 Elf_Scn *scn = NULL; in recover_padding() local
252 scn = elf_nextscn(elf, scn); in recover_padding()
253 if (scn) { in recover_padding()
256 if (gelf_getshdr(scn, &shdr)) { in recover_padding()
264 } while (scn); in recover_padding()
479 Elf_Scn *scn; in mksymtab() local
587 if (scn == NULL) { in mksymtab()
607 data = elf_getdata(scn, data); in mksymtab()
645 scn = 0; in mksymtab()
646 while ((scn = elf_nextscn(elf, scn)) != 0) { in mksymtab()
[all …]
/illumos-gate/usr/src/cmd/sgs/demo_rdb/common/
H A Dmaps.c208 Elf_Scn *scn = NULL; in load_map() local
299 while ((scn = elf_nextscn(mp->mi_elf, scn)) != NULL) { in load_map()
304 if (gelf_getshdr(scn, &shdr) == NULL) { in load_map()
312 dp = elf_getdata(scn, 0); in load_map()
321 dp = elf_getdata(scn, 0); in load_map()
328 dp = elf_getdata(scn, 0); in load_map()
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c1402 Elf_Scn *scn; in dump_elf_header() local
1422 if ((scn = elf_getscn(elf_file, 0)) == NULL) { in dump_elf_header()
1428 if (gelf_getshdr(scn, &shdr0) == 0) { in dump_elf_header()
1657 Elf_Scn *scn = 0; in dump_section_table() local
1691 while ((scn = elf_nextscn(elf_file, scn)) != 0) { in dump_section_table()
1692 if ((gelf_getshdr(scn, &buffer->p_shdr)) == 0) { in dump_section_table()
1701 buffer->p_sd = scn; in dump_section_table()
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c4626 Elf_Scn *scn; in shdr_cache() local
4656 } else if ((nameshdr = elf_getshdr(scn)) == NULL) { in shdr_cache()
4659 EC_WORD(elf_ndxscn(scn))); in shdr_cache()
4718 for (ndx = 1, scn = NULL; (scn = elf_nextscn(elf, scn)) != NULL; in shdr_cache()
4723 _cache->c_scn = scn; in shdr_cache()
4728 EC_WORD(elf_ndxscn(scn))); in shdr_cache()
4904 Elf_Scn *scn = _cache->c_scn; in shdr_cache() local
4909 EC_WORD(elf_ndxscn(scn))); in shdr_cache()
4974 Elf_Scn *scn; in regular() local
5013 if ((scn = elf_getscn(elf, 0)) != NULL) { in regular()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Delfedit_machelf.c128 Elf_Scn *scn; in elfedit64_init_obj_state() local
179 for (ndx = 1, scn = NULL; in elfedit64_init_obj_state()
180 (scn = elf_nextscn(tstate.os_elf, scn)) != NULL; ndx++) { in elfedit64_init_obj_state()
183 LIBELF(shdr = elf_getshdr(scn), MSG_ORIG(MSG_ELF_GETSHDR)); in elfedit64_init_obj_state()
251 LIBELF(scn = elf_getscn(tstate.os_elf, 0), in elfedit64_init_obj_state()
253 _cache->sec_scn = scn; in elfedit64_init_obj_state()
267 for (ndx = 1, scn = NULL; in elfedit64_init_obj_state()
268 (scn = elf_nextscn(tstate.os_elf, scn)) != NULL; ndx++, _cache++) { in elfedit64_init_obj_state()
270 _cache->sec_scn = scn; in elfedit64_init_obj_state()
271 LIBELF(_cache->sec_shdr = elf_getshdr(scn), in elfedit64_init_obj_state()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c287 Elf_Scn *scn; in output() local
291 if ((scn = elf_newscn(oelf)) == NULL) { in output()
296 if ((shdr = elf_getshdr(scn)) == NULL) { in output()
308 if ((data = elf_newdata(scn)) == NULL) { in output()
387 Elf_Scn *scn; in output() local
390 if ((scn = elf_getscn(melf, outsec->os_ndx)) == NULL) { in output()
395 if ((outsec->os_shdr = shdr = elf_getshdr(scn)) == NULL) { in output()
400 if ((outsec->os_data = elf_getdata(scn, NULL)) == NULL) { in output()
/illumos-gate/usr/src/cmd/sgs/gprof/common/
H A Dreadelf.c403 Elf_Scn *scn; in is_function() local
444 scn = elf_getscn(elf, sym->st_shndx); in is_function()
445 (void) gelf_getshdr(scn, &shdr); in is_function()
456 Elf_Scn *scn = NULL, *sym_pri = NULL, *sym_aux = NULL; in get_symtab() local
477 while ((symtab_found == 0) && ((scn = elf_nextscn(elf, scn)) != NULL)) { in get_symtab()
480 if (gelf_getshdr(scn, &shdr) == NULL) in get_symtab()
487 sym_pri = scn; in get_symtab()
499 sym_pri = scn; in get_symtab()
505 sym_aux = scn; in get_symtab()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dchecksum.c106 Elf_Scn * scn; in elf_checksum() local
133 if ((scn = elf_getscn(elf, shnum)) == 0) in elf_checksum()
135 if ((shdr = getshdr(scn)) == 0) in elf_checksum()
158 while ((data = (*getdata)(scn, data)) != 0) in elf_checksum()
H A Dflag.c40 Elf_Scn * scn; in elf_flagdata() local
46 scn = d->db_scn; in elf_flagdata()
47 elf = scn->s_elf; in elf_flagdata()
49 READLOCKS(elf, scn) in elf_flagdata()
57 READUNLOCKS(elf, scn) in elf_flagdata()
137 if (scn == 0) in elf_flagscn()
140 elf = scn->s_elf; in elf_flagscn()
142 READLOCKS(elf, scn) in elf_flagscn()
148 READLOCKS(elf, scn) in elf_flagscn()
163 if (scn == 0) in elf_flagshdr()
[all …]
H A Dgelf.c333 if (scn == NULL) in gelf_getshdr()
342 READLOCKS(scn->s_elf, scn); in gelf_getshdr()
353 READUNLOCKS(scn->s_elf, scn); in gelf_getshdr()
362 READLOCKS(scn->s_elf, scn); in gelf_getshdr()
364 READUNLOCKS(scn->s_elf, scn); in gelf_getshdr()
377 if (scn == NULL) in gelf_update_shdr()
386 ELFWLOCK(scn->s_elf); in gelf_update_shdr()
404 ELFUNLOCK(scn->s_elf); in gelf_update_shdr()
412 ELFWLOCK(scn->s_elf); in gelf_update_shdr()
1096 Elf_Scn *scn = NULL; in _gelf_getdynval() local
[all …]
H A Dgetdata.c120 elf = scn->s_elf; in _elf_locked_getdata()
123 UPGRADELOCKS(elf, scn) in _elf_locked_getdata()
134 d = scn->s_hdnode; in _elf_locked_getdata()
138 if (scn->s_err != 0) { in _elf_locked_getdata()
148 if (d->db_scn != scn) { in _elf_locked_getdata()
156 elf = scn->s_elf; in _elf_locked_getdata()
219 UPGRADELOCKS(elf, scn) in _elf_locked_getdata()
306 if (scn == 0) in elf_getdata()
309 elf = scn->s_elf; in elf_getdata()
310 READLOCKS(elf, scn); in elf_getdata()
[all …]

123