Home
last modified time | relevance | path

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

1234

/freebsd/contrib/elftoolchain/libelf/
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_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_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_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_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_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_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/stand/common/
H A Dload_elf_obj.c258 switch (shdr[i].sh_type) { in __elfN()
278 switch (shdr[i].sh_type) { in __elfN()
296 shdr[symstrindex].sh_type != SHT_STRTAB) { in __elfN()
307 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in __elfN()
319 switch (shdr[i].sh_type) { in __elfN()
346 shdr[i].sh_type == SHT_NOBITS) in __elfN()
483 if (shdr[i].sh_type != SHT_PROGBITS) in __elfN()
522 if (shdr[i].sh_type != SHT_RELA && shdr[i].sh_type != SHT_REL) in __elfN()
531 switch (shdr[i].sh_type) { in __elfN()
/freebsd/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/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h495 switch (Sec.sh_type) { in initContent()
555 return getSection(Sec)->sh_type; in getSectionType()
887 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents()
914 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData()
923 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
937 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
1005 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end()
1024 uintX_t Type = EShdr->sh_type; in getRelocatedSection()
1045 if (sec->sh_type == ELF::SHT_REL) in getRelocationSymbol()
1062 if (sec->sh_type == ELF::SHT_REL) in getRelocationOffset()
[all …]
H A DELF.h146 Sec.sh_type) + in describe()
170 if (Sec.sh_type == ELF::SHT_NOBITS) in checkSectionOffsets()
382 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin()
782 if (Sec.sh_type == ELF::SHT_DYNSYM) { in getDynSymtabSize()
862 FakeShdr.sh_type = ELF::SHT_PROGBITS; in createFakeSections()
1171 if (Section.sh_type != ELF::SHT_STRTAB) in getStringTable()
1176 getHeader().e_machine, Section.sh_type))) in getStringTable()
1206 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable()
1215 if (SymTable.sh_type != ELF::SHT_SYMTAB && in getSHNDXTable()
1216 SymTable.sh_type != ELF::SHT_DYNSYM) in getSHNDXTable()
[all …]
/freebsd/sys/kern/
H A Dlink_elf_obj.c402 switch (shdr[i].sh_type) { in link_elf_link_preload()
488 switch (shdr[i].sh_type) { in link_elf_link_preload()
499 if (shdr[i].sh_type == SHT_PROGBITS) in link_elf_link_preload()
558 shdr[i].sh_type == SHT_INIT_ARRAY) { in link_elf_link_preload()
569 shdr[i].sh_type == SHT_FINI_ARRAY) { in link_elf_link_preload()
840 switch (shdr[i].sh_type) { in link_elf_load_file()
963 switch (shdr[i].sh_type) { in link_elf_load_file()
1042 switch (shdr[i].sh_type) { in link_elf_load_file()
1059 shdr[i].sh_type == SHT_INIT_ARRAY) { in link_elf_load_file()
1072 shdr[i].sh_type == SHT_FINI_ARRAY) { in link_elf_load_file()
[all …]
/freebsd/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/contrib/llvm-project/llvm/tools/llvm-objdump/
H A DELFDump.cpp82 if (Sec.sh_type == ELF::SHT_DYNSYM) in getDynamicStrTab()
107 if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString()
111 } else if ((*SecOrErr)->sh_type == ELF::SHT_REL) { in getRelocationValueString()
415 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersion()
416 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersion()
425 if (Shdr.sh_type == ELF::SHT_GNU_verneed) in printSymbolVersion()
/freebsd/contrib/elftoolchain/libdwarf/
H A Dlibdwarf_elf_init.c157 if ((sh.sh_type != SHT_REL && sh.sh_type != SHT_RELA) || in _dwarf_elf_relocate()
186 if (sh.sh_type == SHT_REL) in _dwarf_elf_relocate()
316 if (sh.sh_type == SHT_NOBITS) in _dwarf_elf_init()
372 if (sh.sh_type == SHT_NOBITS) in _dwarf_elf_init()
/freebsd/lib/libc/gen/
H A Dnlist.c168 if (shdr[i].sh_type == SHT_SYMTAB) { in __elf_fdnlist()
280 nl->n_type = sh->sh_type == SHT_PROGBITS ? in elf_sym_to_nlist()
282 (sh->sh_type == SHT_NOBITS ? N_BSS : N_UNDF); in elf_sym_to_nlist()
/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h287 if (Sec.sh_type == ELF::SHT_SYMTAB) { in prepare()
296 if (Sec.sh_type == ELF::SHT_SYMTAB_SHNDX) { in prepare()
333 if (Sec.sh_type == ELF::SHT_NULL) { in graphifySections()
387 if (Sec.sh_type != ELF::SHT_NOBITS) { in graphifySections()
400 if (Sec.sh_type == ELF::SHT_ARM_EXIDX) { in graphifySections()
598 if (RelSect.sh_type != ELF::SHT_RELA) in forEachRelaRelocation()
648 if (RelSect.sh_type != ELF::SHT_REL) in forEachRelRelocation()
/freebsd/usr.sbin/kldxref/
H A Def_obj.c302 switch (shdr[i].sh_type) { in ef_obj_open()
332 shdr[symstrindex].sh_type != SHT_STRTAB) { in ef_obj_open()
366 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { in ef_obj_open()
383 switch (shdr[i].sh_type) { in ef_obj_open()
388 if (shdr[i].sh_type == SHT_PROGBITS) { in ef_obj_open()
/freebsd/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()

1234