Home
last modified time | relevance | path

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

1234

/freebsd-13.1/contrib/elftoolchain/libelf/
H A Dgelf_symshndx.c42 uint32_t sh_type; in gelf_getsymshndx() local
62 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsymshndx()
64 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsymshndx()
66 if (_libelf_xlate_shtype(sh_type) != ELF_T_WORD || in gelf_getsymshndx()
95 uint32_t sh_type; in gelf_update_symshndx() local
114 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_symshndx()
116 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_symshndx()
118 if (_libelf_xlate_shtype(sh_type) != ELF_T_WORD || in gelf_update_symshndx()
H A Dgelf_syminfo.c41 uint32_t sh_type; in gelf_getsyminfo() local
59 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsyminfo()
61 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsyminfo()
63 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYMINFO) { in gelf_getsyminfo()
102 uint32_t sh_type; in gelf_update_syminfo() local
120 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_syminfo()
122 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_syminfo()
124 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYMINFO) { in gelf_update_syminfo()
H A Dgelf_cap.c45 uint32_t sh_type; in gelf_getcap() local
61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getcap()
63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getcap()
65 if (_libelf_xlate_shtype(sh_type) != ELF_T_CAP) { in gelf_getcap()
104 uint32_t sh_type; in gelf_update_cap() local
120 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_cap()
122 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_cap()
124 if (_libelf_xlate_shtype(sh_type) != ELF_T_CAP) { in gelf_update_cap()
H A Dgelf_dyn.c45 uint32_t sh_type; in gelf_getdyn() local
61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getdyn()
63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getdyn()
65 if (_libelf_xlate_shtype(sh_type) != ELF_T_DYN) { in gelf_getdyn()
105 uint32_t sh_type; in gelf_update_dyn() local
121 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_dyn()
123 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_dyn()
125 if (_libelf_xlate_shtype(sh_type) != ELF_T_DYN) { in gelf_update_dyn()
H A Dgelf_move.c43 uint32_t sh_type; in gelf_getmove() local
61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getmove()
63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getmove()
65 if (_libelf_xlate_shtype(sh_type) != ELF_T_MOVE) { in gelf_getmove()
106 uint32_t sh_type; in gelf_update_move() local
124 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_move()
126 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_move()
128 if (_libelf_xlate_shtype(sh_type) != ELF_T_MOVE) { in gelf_update_move()
H A Dgelf_sym.c43 uint32_t sh_type; in gelf_getsym() local
61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getsym()
63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getsym()
65 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYM) { in gelf_getsym()
105 uint32_t sh_type; in gelf_update_sym() local
123 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_sym()
125 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_sym()
127 if (_libelf_xlate_shtype(sh_type) != ELF_T_SYM) { in gelf_update_sym()
H A Dgelf_rel.c43 uint32_t sh_type; in gelf_getrel() local
61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrel()
63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrel()
65 if (_libelf_xlate_shtype(sh_type) != ELF_T_REL) { in gelf_getrel()
108 uint32_t sh_type; in gelf_update_rel() local
126 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rel()
128 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rel()
130 if (_libelf_xlate_shtype(sh_type) != ELF_T_REL) { in gelf_update_rel()
H A Dgelf_rela.c43 uint32_t sh_type; in gelf_getrela() local
61 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_getrela()
63 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_getrela()
65 if (_libelf_xlate_shtype(sh_type) != ELF_T_RELA) { in gelf_getrela()
110 uint32_t sh_type; in gelf_update_rela() local
128 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rela()
130 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rela()
132 if (_libelf_xlate_shtype(sh_type) != ELF_T_RELA) { in gelf_update_rela()
H A Delf_data.c41 unsigned int sh_type; in elf_getdata() local
79 sh_type = s->s_shdr.s_shdr32.sh_type; in elf_getdata()
84 sh_type = s->s_shdr.s_shdr64.sh_type; in elf_getdata()
90 if (sh_type == SHT_NULL) { in elf_getdata()
97 elftype > ELF_T_LAST || (sh_type != SHT_NOBITS && in elf_getdata()
143 if (sh_type == SHT_NOBITS || sh_size == 0) { in elf_getdata()
219 uint32_t sh_type; in elf_rawdata() local
243 sh_type = s->s_shdr.s_shdr32.sh_type; in elf_rawdata()
248 sh_type = s->s_shdr.s_shdr64.sh_type; in elf_rawdata()
254 if (sh_type == SHT_NULL) { in elf_rawdata()
[all …]
H A Dlibelf_chdr.c71 if (sh32->sh_type == SHT_NULL || sh32->sh_type == SHT_NOBITS) { in _libelf_getchdr()
87 if (sh64->sh_type == SHT_NULL || sh64->sh_type == SHT_NOBITS) { in _libelf_getchdr()
H A Delf_update.c116 uint32_t sh_type; in _libelf_compute_section_extents() local
129 sh_type = shdr32->sh_type; in _libelf_compute_section_extents()
135 sh_type = shdr64->sh_type; in _libelf_compute_section_extents()
142 assert(sh_type != SHT_NULL && sh_type != SHT_NOBITS); in _libelf_compute_section_extents()
453 size_t sh_type; in _libelf_resync_sections() local
463 sh_type = s->s_shdr.s_shdr32.sh_type; in _libelf_resync_sections()
465 sh_type = s->s_shdr.s_shdr64.sh_type; in _libelf_resync_sections()
467 if (sh_type == SHT_NOBITS || sh_type == SHT_NULL) in _libelf_resync_sections()
726 uint32_t sh_type; in _libelf_write_scn() local
737 sh_type = s->s_shdr.s_shdr32.sh_type; in _libelf_write_scn()
[all …]
H A Dgelf_shdr.c72 d->sh_type = sh32->sh_type; in gelf_getshdr()
119 sh32->sh_type = s->sh_type; in gelf_update_shdr()
H A Dlibelf_checksum.c84 shdr.sh_type == SHT_DYNAMIC || in _libelf_checksum()
85 shdr.sh_type == SHT_DYNSYM) in _libelf_checksum()
/freebsd-13.1/stand/common/
H A Dload_elf_obj.c261 switch (shdr[i].sh_type) { in __elfN()
281 switch (shdr[i].sh_type) { in __elfN()
299 shdr[symstrindex].sh_type != SHT_STRTAB) { in __elfN()
310 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in __elfN()
322 switch (shdr[i].sh_type) { in __elfN()
349 shdr[i].sh_type == SHT_NOBITS) in __elfN()
484 if (shdr[i].sh_type != SHT_PROGBITS) in __elfN()
523 if (shdr[i].sh_type != SHT_RELA && shdr[i].sh_type != SHT_REL) in __elfN()
532 switch (shdr[i].sh_type) { in __elfN()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h465 switch (Sec.sh_type) { in initContent()
525 return getSection(Sec)->sh_type; in getSectionType()
842 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents()
870 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData()
879 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
893 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
961 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
979 uintX_t Type = EShdr->sh_type; in getRelocatedSection()
1000 if (sec->sh_type == ELF::SHT_REL) in getRelocationSymbol()
1017 if (sec->sh_type == ELF::SHT_REL) in getRelocationOffset()
[all …]
H A DELF.h149 Sec.sh_type) + in describe()
330 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin()
700 if (Sec.sh_type == ELF::SHT_DYNSYM) { in getDynSymtabSize()
1058 if (Section.sh_type != ELF::SHT_STRTAB) in getStringTable()
1063 getHeader().e_machine, Section.sh_type))) in getStringTable()
1093 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable()
1102 if (SymTable.sh_type != ELF::SHT_SYMTAB && in getSHNDXTable()
1103 SymTable.sh_type != ELF::SHT_DYNSYM) in getSHNDXTable()
1106 object::getELFSectionTypeName(getHeader().e_machine, SymTable.sh_type) + in getSHNDXTable()
1132 if (Sec.sh_type != ELF::SHT_SYMTAB && Sec.sh_type != ELF::SHT_DYNSYM) in getStringTableForSymtab()
/freebsd-13.1/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c167 dst->sh_type = src->sh_type; in shdr_to_gelf()
398 if (shp->sh_type == SHT_PROGBITS && in ctf_fdopen()
401 ctfsect.cts_type = shp->sh_type; in ctf_fdopen()
407 } else if (shp->sh_type == SHT_SYMTAB) { in ctf_fdopen()
409 symsect.cts_type = shp->sh_type; in ctf_fdopen()
416 strsect.cts_type = lhp->sh_type; in ctf_fdopen()
/freebsd-13.1/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_elf_init.c156 if ((sh.sh_type != SHT_REL && sh.sh_type != SHT_RELA) || in _dwarf_elf_relocate()
178 if (sh.sh_type == SHT_REL) in _dwarf_elf_relocate()
263 if (sh.sh_type == SHT_NOBITS) in _dwarf_elf_init()
319 if (sh.sh_type == SHT_NOBITS) in _dwarf_elf_init()
/freebsd-13.1/sys/kern/
H A Dlink_elf_obj.c395 switch (shdr[i].sh_type) { in link_elf_link_preload()
481 switch (shdr[i].sh_type) { in link_elf_link_preload()
492 if (shdr[i].sh_type == SHT_PROGBITS) in link_elf_link_preload()
550 shdr[i].sh_type == SHT_INIT_ARRAY) { in link_elf_link_preload()
561 shdr[i].sh_type == SHT_FINI_ARRAY) { in link_elf_link_preload()
808 switch (shdr[i].sh_type) { in link_elf_load_file()
931 switch (shdr[i].sh_type) { in link_elf_load_file()
1010 switch (shdr[i].sh_type) { in link_elf_load_file()
1027 shdr[i].sh_type == SHT_INIT_ARRAY) { in link_elf_load_file()
1040 shdr[i].sh_type == SHT_FINI_ARRAY) { in link_elf_load_file()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp48 if (Sec.sh_type == ELF::SHT_DYNSYM) in getDynamicStrTab()
73 if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString()
77 } else if ((*SecOrErr)->sh_type == ELF::SHT_REL) { in getRelocationValueString()
343 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersionInfo()
344 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersionInfo()
353 if (Shdr.sh_type == ELF::SHT_GNU_verneed) in printSymbolVersionInfo()
/freebsd-13.1/contrib/elftoolchain/elfcopy/
H A Dpe.c153 if (sh.sh_type == SHT_NOBITS) in create_pe()
180 if (sh.sh_type != SHT_NOBITS) in create_pe()
213 if (sh.sh_type != SHT_NOBITS) { in create_pe()
/freebsd-13.1/lib/libc/gen/
H A Dnlist.c172 if (shdr[i].sh_type == SHT_SYMTAB) { in __elf_fdnlist()
284 nl->n_type = sh->sh_type == SHT_PROGBITS ? in elf_sym_to_nlist()
286 (sh->sh_type == SHT_NOBITS ? N_BSS : N_UNDF); in elf_sym_to_nlist()
/freebsd-13.1/sys/compat/linux/
H A Dlinux_vdso.c133 if (shdr[i].sh_type == SHT_DYNSYM) { in __elfN()
205 if (shdr[i].sh_type != SHT_SYMTAB && in __elfN()
206 shdr[i].sh_type != SHT_DYNSYM) in __elfN()
/freebsd-13.1/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c522 } else if (dynsym && shdr1.sh_type == SHT_SYMTAB) { in write_file()
566 if (shdr.sh_type == SHT_REL || shdr.sh_type == SHT_RELA) in write_file()
616 if (shdr.sh_type == symtab_type && shdr.sh_entsize != 0) { in write_file()
655 if (shdr.sh_type != SHT_NOBITS) in write_file()
668 shdr.sh_type = SHT_PROGBITS; in write_file()
/freebsd-13.1/cddl/contrib/opensolaris/lib/libdtrace/common/
H A Ddt_link.c527 shp->sh_type = SHT_STRTAB; in dump_elf32()
536 shp->sh_type = SHT_SUNW_dof; in dump_elf32()
545 shp->sh_type = SHT_STRTAB; in dump_elf32()
554 shp->sh_type = SHT_SYMTAB; in dump_elf32()
576 shp->sh_type = SHT_REL; in dump_elf32()
670 shp->sh_type = SHT_STRTAB; in dump_elf64()
679 shp->sh_type = SHT_SUNW_dof; in dump_elf64()
688 shp->sh_type = SHT_STRTAB; in dump_elf64()
697 shp->sh_type = SHT_SYMTAB; in dump_elf64()
719 shp->sh_type = SHT_RELA; in dump_elf64()
[all …]

1234