Home
last modified time | relevance | path

Searched refs:scn (Results 51 – 73 of 73) sorted by last modified time

123

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dmod.c115 Elf_Scn *scn = NULL; in mod_binary_path_get() local
137 scn = elf_getscn(elf, 0); /* "seek" to start of sections */ in mod_binary_path_get()
138 while ((scn = elf_nextscn(elf, scn)) != NULL) { in mod_binary_path_get()
140 if (gelf_getshdr(scn, &shdr) == NULL) { in mod_binary_path_get()
150 if (elf_getdata(scn, NULL) == NULL) { in mod_binary_path_get()
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c92 Elf_Scn *scn; in process() local
130 scn = 0; in process()
142 if ((scn = elf_nextscn(elf, scn)) == 0) { in process()
145 if (gelf_getshdr(scn, &shdr) == 0) { in process()
/illumos-gate/usr/src/cmd/sgs/nm/common/
H A Dnm.c583 Elf_Scn *scn, *scnfd; local
619 scn = 0;
620 while ((scn = elf_nextscn(elf_file, scn)) != 0) {
623 if (gelf_getshdr(scn, &shdr) == NULL) {
630 print_symtab(elf_file, shstrndx, scn,
814 Elf_Scn *scn = elf_getscn(elf_file, shndx); local
817 if (scn != NULL) {
819 (void) gelf_getshdr(scn, &shdr);
1311 Elf_Scn *scn = elf_getscn(elf_file, sym_data->shndx); local
1314 if ((gelf_getshdr(scn, &shdr) != 0) &&
/illumos-gate/usr/src/cmd/sgs/link_audit/common/
H A Dwho.c155 Elf_Scn *scn; in load_syms() local
172 scn = NULL; in load_syms()
173 while ((scn = elf_nextscn(elf, scn)) != NULL) { in load_syms()
177 shdr = elf_getshdr(scn); in load_syms()
180 data = elf_getdata(scn, 0); in load_syms()
184 scn = elf_getscn(elf, shdr->sh_link); in load_syms()
185 data = elf_getdata(scn, 0); in load_syms()
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c155 Elf_Scn *scn; in rt_dldump() local
317 if ((scn = elf_getscn(ielf, shndx)) == NULL) { in rt_dldump()
322 if ((data = elf_getdata(scn, NULL)) == NULL) { in rt_dldump()
360 for (scn = 0; scn = elf_nextscn(ielf, scn); _icache++) { in rt_dldump()
374 _icache->c_scn = scn; in rt_dldump()
592 if ((scn = elf_newscn(oelf)) == NULL) { in rt_dldump()
597 if ((shdr = elf_getshdr(scn)) == NULL) { in rt_dldump()
617 if ((data = elf_newdata(scn)) == NULL) { in rt_dldump()
640 if (elf_ndxscn(scn) >= SHN_LORESERVE) { in rt_dldump()
657 shdr0->sh_link = elf_ndxscn(scn); in rt_dldump()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dsupport.c254 Shdr **oshdr, Word ndx, Elf_Scn *scn, Elf *elf) in ld_sup_input_section() argument
273 ((data = elf_getdata(scn, NULL)) == NULL)) { in ld_sup_input_section()
301 ld_sup_section(Ofl_desc *ofl, const char *scn, Shdr *shdr, Word ndx, in ld_sup_section() argument
309 support[LDS_SEC].sup_name, LDS_SEC, scn)); in ld_sup_section()
310 (*flp->fl_fptr)(scn, shdr, ndx, data, elf); in ld_sup_section()
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddispsyms.c72 Elf_Scn *scn = NULL; in print_symtab() local
90 while ((scn = elf_nextscn(elf, scn)) != NULL) { in print_symtab()
94 if (gelf_getshdr(scn, &shdr) == NULL) { in print_symtab()
109 if ((symdata = elf_getdata(scn, NULL)) == NULL) { in print_symtab()
164 symscnndx = elf_ndxscn(scn); in print_symtab()
H A Dpcom.c49 Elf_Scn *scn = NULL; in print_comment() local
63 while ((scn = elf_nextscn(elf, scn)) != NULL) { in print_comment()
69 if (gelf_getshdr(scn, &shdr) == NULL) { in print_comment()
83 if ((data = elf_getdata(scn, NULL)) == NULL) { in print_comment()
H A Dtpcom.c69 Elf_Scn *scn = NULL; in print_comment() local
80 while ((scn = elf_nextscn(elf, scn)) != NULL) { in print_comment()
86 if (gelf_getshdr(scn, &shdr) == NULL) { in print_comment()
104 if ((data = elf_getdata(scn, NULL)) == NULL) { in print_comment()
H A Dacom.c48 Elf_Scn *scn = NULL; in update_comment() local
59 while ((scn = elf_nextscn(elf, scn)) != NULL) { in update_comment()
65 if (gelf_getshdr(scn, &shdr) == NULL) { in update_comment()
75 if (scn == NULL) { in update_comment()
83 if ((scn = elf_getscn(elf, shstrndx)) == NULL) { in update_comment()
88 if ((data = elf_getdata(scn, NULL)) == NULL) { in update_comment()
94 if ((data = elf_newdata(scn)) == NULL) { in update_comment()
108 if ((scn = elf_newscn(elf)) == NULL) { in update_comment()
113 if (gelf_getshdr(scn, &shdr) == NULL) { in update_comment()
129 (void) gelf_update_shdr(scn, &shdr); in update_comment()
[all …]
H A Ddcom.c87 Elf_Scn *scn = NULL; in delete_comment() local
126 while ((scn = elf_nextscn(elf, scn)) != NULL) { in delete_comment()
134 if (gelf_getshdr(scn, &shdr) == NULL) { in delete_comment()
194 scn = NULL; in delete_comment()
196 while ((scn = elf_nextscn(elf, scn)) != NULL) { in delete_comment()
210 if (gelf_getshdr(scn, &shdr) == NULL) { in delete_comment()
250 if ((data = elf_getdata(scn, 0)) == NULL) { in delete_comment()
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dlibelf.msg98 @ EMEM_SCN "Memory allocation error: scn descriptors"
114 @ EREQ_DATA "Request error: data/scn mismatch"
H A Dgetphnum.c50 Elf_Scn *scn; in elf_getphdrnum() local
61 if ((scn = elf_getscn(elf, 0)) == NULL || in elf_getphdrnum()
62 gelf_getshdr(scn, &shdr0) == NULL) in elf_getphdrnum()
H A Dgetshnum.c54 Elf_Scn *scn; in elf_getshdrnum() local
67 if ((scn = elf_getscn(elf, 0)) == 0) in elf_getshdrnum()
69 if (gelf_getshdr(scn, &shdr0) == 0) in elf_getshdrnum()
H A Dgetshstrndx.c48 Elf_Scn *scn; in elf_getshdrstrndx() local
57 if ((scn = elf_getscn(elf, 0)) == 0) in elf_getshdrstrndx()
59 if (gelf_getshdr(scn, &shdr0) == 0) in elf_getshdrstrndx()
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()
/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/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/isns/isnsd/
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 …]
H A Disns_scn.h85 typedef struct scn { struct
91 struct scn *next; argument
104 scn_t *scn; member
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);
/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/dis/
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 …]

123