Home
last modified time | relevance | path

Searched refs:scn (Results 26 – 50 of 73) sorted by relevance

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
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()
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_convert.c39 Elf_Scn *scn, *strscn; in ctf_has_c_source() local
44 scn = NULL; in ctf_has_c_source()
45 while ((scn = elf_nextscn(elf, scn)) != NULL) { in ctf_has_c_source()
46 if (gelf_getshdr(scn, &shdr) == NULL) { in ctf_has_c_source()
57 if (scn == NULL) { in ctf_has_c_source()
68 if ((data = elf_getdata(scn, NULL)) == NULL) { in ctf_has_c_source()
/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 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()
/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/lib/libelfsign/common/
H A Delfsignlib.c53 Elf_Scn *scn, uint64_t new_size);
486 Elf_Scn *scn = NULL, *sig_scn = NULL; in elfsign_signatures() local
504 while ((scn = elf_nextscn(ess->es_elf, scn)) != NULL) { in elfsign_signatures()
510 if (gelf_getshdr(scn, &shdr) == NULL) { in elfsign_signatures()
519 sig_scn = scn; in elfsign_signatures()
548 if (gelf_getshdr(scn, &shdr) == NULL) { in elfsign_signatures()
613 if (elfsign_adjustoffsets(ess, scn, in elfsign_signatures()
699 if (gelf_getshdr(scn, &shdr) == NULL) in elfsign_adjustoffsets()
897 Elf_Scn *scn = NULL; in elfsign_hash_common() local
913 while ((scn = elf_nextscn(ess->es_elf, scn)) != 0) { in elfsign_hash_common()
[all …]
/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/lib/libdwarf/common/
H A Ddwarf_elf_access.c267 Elf_Scn *scn = 0; in _dwarf_get_elf_flags_func() local
270 scn = elf_getscn(obj->elf, section_index); in _dwarf_get_elf_flags_func()
271 if (scn == NULL) { in _dwarf_get_elf_flags_func()
277 shdr64 = elf64_getshdr(scn); in _dwarf_get_elf_flags_func()
336 Elf_Scn *scn = 0; in dwarf_elf_object_access_get_section_info() local
339 scn = elf_getscn(obj->elf, section_index); in dwarf_elf_object_access_get_section_info()
340 if (scn == NULL) { in dwarf_elf_object_access_get_section_info()
346 shdr64 = elf64_getshdr(scn); in dwarf_elf_object_access_get_section_info()
1005 Elf_Scn *scn = 0; in dwarf_elf_object_access_load_section() local
1009 if (scn == NULL) { in dwarf_elf_object_access_load_section()
[all …]
/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/isns/isnsd/
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/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/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/test/util-tests/tests/ctf/
H A Dcheck-merge-static.c166 Elf_Scn *scn = NULL, *symscn = NULL; in check_merge_static() local
174 while ((scn = elf_nextscn(elf, scn)) != NULL) { in check_merge_static()
175 if (gelf_getshdr(scn, &symhdr) == NULL) { in check_merge_static()
182 symscn = scn; in check_merge_static()
/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/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/sysdef/
H A Dsysdef.c197 Elf_Scn *scn; in main() local
312 scn = NULL; in main()
313 while ((scn = elf_nextscn(elfd, scn)) != NULL) { in main()
314 if ((shdr = elf_getshdr(scn)) == NULL) { in main()
737 Elf_Scn *scn; in memseek() local
747 if ((scn = elf_getscn(elfd, nl[sym].n_scnum)) == NULL) { in memseek()
753 if ((eshdr = elf_getshdr(scn)) == NULL) { in memseek()
/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/lib/libproc/common/
H A DPsymtab.c1196 Elf_Scn *scn; in file_differs() local
1214 scn = NULL; in file_differs()
1215 while ((scn = elf_nextscn(elf, scn)) != NULL) { in file_differs()
1584 Elf_Scn *scn; in build_fake_elf() local
1683 scn = NULL; in build_alt_debug()
1685 for (scn = elf_nextscn(elf, scn); data != NULL && scn != NULL; in build_alt_debug()
1686 scn = elf_nextscn(elf, scn)) { in build_alt_debug()
1724 scn = NULL; in build_alt_debug()
1725 for (scn = elf_nextscn(elf, scn); scn != NULL; in build_alt_debug()
1726 scn = elf_nextscn(elf, scn)) { in build_alt_debug()
[all …]
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Doutfile.c290 Elf_Scn *scn; in create_outsec() local
296 if ((scn = elf_newscn(ofl->ofl_welf)) == NULL) { in create_outsec()
301 osp->os_scn = scn; in create_outsec()
307 if ((shdr = elf_getshdr(scn)) == NULL) { in create_outsec()
320 sgp->sg_fscn = scn; in create_outsec()
845 Elf_Scn *scn; in ld_create_outfile() local
847 scn = sgp->sg_fscn; in ld_create_outfile()
848 if ((fndx = elf_ndxscn(scn)) == SHN_UNDEF) { in ld_create_outfile()
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()
H A Dlibs.c79 Elf_Scn *scn = NULL; in process_member() local
83 while (scn = elf_nextscn(amp->am_elf, scn)) { in process_member()
84 if ((shdr = elf_getshdr(scn)) == NULL) { in process_member()
93 if ((data = elf_getdata(scn, NULL)) == NULL) { in process_member()
106 if ((scn = elf_getscn(amp->am_elf, (size_t)shdr->sh_link)) == in process_member()
112 if ((data = elf_getdata(scn, NULL)) == NULL) { in process_member()
/illumos-gate/usr/src/uts/common/fs/zfs/sys/
H A Ddsl_scan.h174 void dsl_scan_ddt_entry(dsl_scan_t *scn, enum zio_checksum checksum,
180 boolean_t dsl_scan_active(dsl_scan_t *scn);
181 boolean_t dsl_scan_is_paused_scrub(const dsl_scan_t *scn);
/illumos-gate/usr/src/cmd/strings/
H A Dstrings.c114 Elf_Scn *scn; in look_in_sections() local
124 scn = 0; in look_in_sections()
125 while ((scn = elf_nextscn(elf, scn)) != 0) { in look_in_sections()
127 if (gelf_getshdr(scn, &shdr) == (GElf_Shdr *)0) { in look_in_sections()
/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) &&

123