Home
last modified time | relevance | path

Searched refs:sh_type (Results 1 – 25 of 115) sorted by relevance

12345

/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dplace.c663 isp_convert_type(Is_desc *isp, Word sh_type) in isp_convert_type() argument
671 shdr->sh_type = sh_type; in isp_convert_type()
884 if (shdr->sh_type == SHT_GROUP) { in ld_place_section()
1217 (shdr->sh_type != SHT_GROUP) && in ld_place_section()
1220 (shdr->sh_type != SHT_SUNW_dof) && in ld_place_section()
1221 ((shdr->sh_type == os_shdr->sh_type) || in ld_place_section()
1223 ((shdr->sh_type == SHT_SUNW_COMDAT) && in ld_place_section()
1224 (os_shdr->sh_type == SHT_PROGBITS))) && in ld_place_section()
1357 if ((shdr->sh_type == SHT_SUNW_COMDAT) && in ld_place_section()
1387 osp->os_shdr->sh_type = shdr->sh_type; in ld_place_section()
[all …]
/illumos-gate/usr/src/cmd/sgs/librtld/common/
H A Ddldump.c383 (shdr->sh_type == SHT_SUNW_syminfo)) { in rt_dldump()
400 if ((shdr->sh_type == SHT_STRTAB) && in rt_dldump()
414 if ((shdr->sh_type == M_REL_SHT_TYPE) && shdr->sh_addr) in rt_dldump()
609 shdr->sh_type = SHT_PROGBITS; in rt_dldump()
707 if (shdr->sh_type == SHT_NOBITS) { in rt_dldump()
708 shdr->sh_type = SHT_PROGBITS; in rt_dldump()
818 if ((shdr->sh_type == SHT_SYMTAB) || in rt_dldump()
819 (shdr->sh_type == SHT_DYNSYM) || in rt_dldump()
820 (shdr->sh_type == SHT_SUNW_LDYNSYM)) { in rt_dldump()
829 if (shdr->sh_type == M_REL_SHT_TYPE) { in rt_dldump()
[all …]
/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dchecksum.c152 if ((shdr->sh_type == SHT_DYNSYM) || in elf_checksum()
153 (shdr->sh_type == SHT_DYNAMIC) || in elf_checksum()
154 (shdr->sh_type == SHT_SUNW_dof)) in elf_checksum()
H A Dupdate.c224 if (sh->sh_type == SHT_NULL) { in _elf_upd_lib()
233 if ((sz = (Lword)_elf_entsz(elf, sh->sh_type, ver)) != 0) in _elf_upd_lib()
271 if (sh->sh_type == SHT_NOBITS) { in _elf_upd_lib()
414 if ((sh->sh_type != SHT_NOBITS) && in _elf_upd_usr()
422 if ((sh->sh_type != SHT_NOBITS) && in _elf_upd_usr()
598 if ((sh->sh_type == SHT_NOBITS) || in wrt()
599 (sh->sh_type == SHT_NULL)) { in wrt()
914 if ((sh->sh_type == SHT_NOBITS) || (sh->sh_type == SHT_NULL)) in _elfxx_swap_wrimage()
H A Dstrptr.c52 if ((sh == 0) || (sh->sh_type != SHT_STRTAB)) { in elf_strptr()
60 if ((sh == 0) || (sh->sh_type != SHT_STRTAB)) { in elf_strptr()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dstr.c146 shtype_to_strtab(Word sh_type, Word sh_flags) in shtype_to_strtab() argument
153 if (sh_type == SHT_STRTAB) in shtype_to_strtab()
162 switch (sh_type) { in shtype_to_strtab()
209 switch (shtype_to_strtab(shdr->sh_type, shdr->sh_flags)) { in shndx_to_strtab()
361 if ((dynsec->sec_shdr->sh_type == SHT_DYNAMIC) && in process_args()
720 add_shtyp_match(Word sh_type, void *cpldata) in add_shtyp_match() argument
792 shtostr_type = shtype_to_strtab(shdr->sh_type, shdr->sh_flags); in cpl_sh_opt()
805 add_shtyp_match(shdr->sh_type, cpldata); in cpl_sh_opt()
869 elfedit_atoui_t sh_type; in cpl_sec_str() local
873 ELFEDIT_CONST_SHT, &sh_type) == 0) in cpl_sec_str()
[all …]
H A Dshdr.c239 if (shdr->sh_type != ref_sec->sec_shdr->sh_type) in print_shdr()
331 conv_sec_type(osabi, mach, shdr->sh_type, 0, in print_shdr()
335 EC_WORD(shdr->sh_type)); in print_shdr()
699 Word sh_type = elfedit_atoconst(argstate.argv[1], in cmd_body() local
703 if (shdr->sh_type == sh_type) { in cmd_body()
708 conv_sec_type(osabi, mach, shdr->sh_type, in cmd_body()
715 conv_sec_type(osabi, mach, shdr->sh_type, in cmd_body()
717 conv_sec_type(osabi, mach, sh_type, in cmd_body()
720 shdr->sh_type = sh_type; in cmd_body()
/illumos-gate/usr/src/boot/common/
H A Dload_elf_obj.c221 switch (shdr[i].sh_type) { in __elfN()
234 switch (shdr[i].sh_type) { in __elfN()
254 shdr[symstrindex].sh_type != SHT_STRTAB) { in __elfN()
265 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in __elfN()
277 switch (shdr[i].sh_type) { in __elfN()
302 shdr[i].sh_type == SHT_NOBITS) in __elfN()
437 if (shdr[i].sh_type != SHT_PROGBITS) in __elfN()
477 if (shdr[i].sh_type != SHT_RELA && shdr[i].sh_type != SHT_REL) in __elfN()
486 switch (shdr[i].sh_type) { in __elfN()
/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c670 EC_WORD(p->p_shdr.sh_type), in print_shdr()
836 if (p_scns->p_shdr.sh_type == SHT_RELA) { in dump_reloc_table()
864 if (p_scns->p_shdr.sh_type == SHT_REL) { in dump_reloc_table()
921 if (s->p_shdr.sh_type != SHT_STRTAB) in dump_string_table()
1484 (shdr.sh_type == SHT_NOBITS)) { in print_section()
1492 if (shdr.sh_type == SHT_SYMTAB) { in print_section()
1496 if (shdr.sh_type == SHT_DYNSYM) { in print_section()
1500 if (shdr.sh_type == SHT_STRTAB) { in print_section()
1504 if (shdr.sh_type == SHT_RELA) { in print_section()
1508 if (shdr.sh_type == SHT_REL) { in print_section()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c305 shdr->sh_type = outsec->os_type; in output()
314 switch (shdr->sh_type) { in output()
406 if (shdr->sh_type == SHT_PROGBITS) in output()
413 if (shdr->sh_type == SHT_SYMTAB) { in output()
416 } else if (shdr->sh_type == SHT_STRTAB) { in output()
485 if (outsec->os_shdr->sh_type == SHT_PROGBITS) { in output()
495 if (outsec->os_shdr->sh_type != SHT_PROGBITS) in output()
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddispsyms.c100 if ((shdr.sh_type != SHT_SYMTAB) && in print_symtab()
101 (shdr.sh_type != SHT_DYNSYM) && in print_symtab()
102 (shdr.sh_type != SHT_SUNW_LDYNSYM)) in print_symtab()
178 if ((_shdr.sh_type == in print_symtab()
/illumos-gate/usr/src/cmd/file/
H A Delf_read.c452 if (shdr->sh_type == SHT_NULL) { in process_shdr()
457 if (shdr->sh_type == SHT_SUNW_cap) { in process_shdr()
509 } else if (shdr->sh_type == SHT_DYNAMIC) { in process_shdr()
575 (shdr->sh_type == SHT_SYMTAB)) { in process_shdr()
586 ((shdr->sh_type == SHT_SUNW_DEBUG) || in process_shdr()
587 (shdr->sh_type == SHT_SUNW_DEBUGSTR) || in process_shdr()
/illumos-gate/usr/src/cmd/sgs/mcs/common/
H A Dfile.c371 if (shdr->sh_type == SHT_GROUP) { in traverse_file()
386 if ((shdr->sh_type == SHT_REL || in traverse_file()
387 shdr->sh_type == SHT_RELA) && in traverse_file()
443 (shdr->sh_type == SHT_PROGBITS)) { in traverse_file()
469 if (shdr->sh_type == SHT_NOBITS) in traverse_file()
486 if (shdr->sh_type == SHT_SYMTAB && in traverse_file()
808 if ((src_shdr.sh_type == SHT_REL) || in build_file()
809 (src_shdr.sh_type == SHT_RELA)) { in build_file()
870 if (src_shdr.sh_type == in build_file()
956 dst_shdr.sh_type = SHT_PROGBITS; in build_file()
[all …]
/illumos-gate/usr/src/cmd/sgs/elfdump/common/
H A Delfdump.c477 if (shdr->sh_type == 0) { in sections()
2369 switch (shdr->sh_type) { in versions()
2559 sortshdr->sh_type)) in sunw_sort()
2579 switch (symshdr->sh_type) { in sunw_sort()
2875 sh_type, 0, &buf1); in dyn_test()
3022 switch (_cache->c_shdr->sh_type) { in dynamic()
3134 if (shdr->sh_type != SHT_DYNAMIC) in dynamic()
3906 if (shdr->sh_type != SHT_NOTE) in note()
4073 if (hshdr->sh_type != SHT_HASH) in hash()
4263 if (shdr->sh_type != SHT_GROUP) in group()
[all …]
/illumos-gate/usr/src/cmd/ctfmerge/
H A Dctfmerge.c124 if (shdr.sh_type == SHT_PROGBITS && in ctfmerge_elfopen()
127 ctfsect.cts_type = shdr.sh_type; in ctfmerge_elfopen()
139 } else if (shdr.sh_type == SHT_SYMTAB) { in ctfmerge_elfopen()
144 symsect.cts_type = shdr.sh_type; in ctfmerge_elfopen()
158 strsect.cts_type = strhdr.sh_type; in ctfmerge_elfopen()
/illumos-gate/usr/src/cmd/sgs/elfedit/common/
H A Dutil_machelf.c162 if (shtype == sec->sec_shdr->sh_type) { in elfedit_type_to_shndx()
377 if (cache->sec_shdr->sh_type == SHT_SUNW_cap) { in elfedit_sec_getcap()
457 if (cache->sec_shdr->sh_type == SHT_SUNW_syminfo) { in elfedit_sec_getsyminfo()
509 switch (sec->sec_shdr->sh_type) { in elfedit_sec_issymtab()
605 symsec->sec_shdr->sh_type, 1); in elfedit_sec_getsymtab()
774 if (strsec->sec_shdr->sh_type == SHT_STRTAB) { in elfedit_sec_getstr()
1010 if ((dynsec->sec_shdr->sh_type == SHT_DYNAMIC) && in elfedit_strtab_insert_test()
1096 if ((dynsec->sec_shdr->sh_type == SHT_DYNAMIC) && in elfedit_strtab_insert()
1157 if (strsec->sec_shdr->sh_type != SHT_STRTAB) in elfedit_offset_to_str()
/illumos-gate/usr/src/cmd/boot/symdef/
H A Dsymdef.c93 ((shdr.sh_type != SHT_SYMTAB) && in main()
94 (shdr.sh_type != SHT_DYNSYM)) || in main()
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_elfwrite.c193 if (shdr.sh_type == SHT_REL || shdr.sh_type == SHT_RELA) in ctf_write_elf()
232 if (shdr.sh_type == SHT_SYMTAB && shdr.sh_entsize != 0) { in ctf_write_elf()
275 if (shdr.sh_type != SHT_NOBITS) in ctf_write_elf()
294 shdr.sh_type = SHT_PROGBITS; in ctf_write_elf()
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c504 shp->sh_type = SHT_STRTAB; in dump_elf32()
513 shp->sh_type = SHT_SUNW_dof; in dump_elf32()
522 shp->sh_type = SHT_STRTAB; in dump_elf32()
531 shp->sh_type = SHT_SYMTAB; in dump_elf32()
554 shp->sh_type = SHT_RELA; in dump_elf32()
556 shp->sh_type = SHT_REL; in dump_elf32()
641 shp->sh_type = SHT_STRTAB; in dump_elf64()
659 shp->sh_type = SHT_STRTAB; in dump_elf64()
668 shp->sh_type = SHT_SYMTAB; in dump_elf64()
690 shp->sh_type = SHT_RELA; in dump_elf64()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c494 sp->sh_type = SHT_STRTAB; in fake_elf64()
513 sp->sh_type = SHT_SUNW_LDYNSYM; in fake_elf64()
541 sp->sh_type = SHT_DYNSYM; in fake_elf64()
567 sp->sh_type = SHT_STRTAB; in fake_elf64()
591 sp->sh_type = SHT_DYNAMIC; in fake_elf64()
693 sp->sh_type = SHT_PROGBITS; in fake_elf64()
/illumos-gate/usr/src/cmd/sgs/size/common/
H A Dprocess.c159 (!(shdr.sh_type == SHT_NOBITS)) && in process()
164 (!(shdr.sh_type == SHT_NOBITS)) && in process()
168 (shdr.sh_type == SHT_NOBITS) && in process()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddw_elfstructs.h122 TYP(sh_type,4);
136 TYP(sh_type,4);
H A Ddwarf_elfstructs.h130 TYP(sh_type,4);
144 TYP(sh_type,4);
/illumos-gate/usr/src/uts/common/os/
H A Dksyms_snapshot.c167 shp->sh_type = SHT_SYMTAB; in ksyms_snapshot()
177 shp->sh_type = SHT_STRTAB; in ksyms_snapshot()
185 shp->sh_type = SHT_STRTAB; in ksyms_snapshot()
/illumos-gate/usr/src/lib/libsysevent/
H A Dlibsysevent_impl.h49 int sh_type; /* pub/sub channel binding */ member
97 #define SH_TYPE(sehp) (SYSEVENT_IMPL_HNDL(sehp)->sh_type)

12345