Home
last modified time | relevance | path

Searched refs:sh_type (Results 1 – 25 of 97) 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()
96 if ((elftype = _libelf_xlate_shtype(sh_type)) < ELF_T_FIRST || 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()
[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()
144 elftype = _libelf_xlate_shtype(sh_type); 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
[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.c251 switch (shdr[i].sh_type) { in __elfN()
271 switch (shdr[i].sh_type) { in __elfN()
289 shdr[symstrindex].sh_type != SHT_STRTAB) { in __elfN()
300 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in __elfN()
312 switch (shdr[i].sh_type) { in __elfN()
339 shdr[i].sh_type == SHT_NOBITS) in __elfN()
476 if (shdr[i].sh_type != SHT_PROGBITS) in __elfN()
515 if (shdr[i].sh_type != SHT_RELA && shdr[i].sh_type != SHT_REL) in __elfN()
524 switch (shdr[i].sh_type) { in __elfN()
/freebsd/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h363 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI()
364 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI()
433 if (Sec.sh_type != Type) in getBuildAttributes()
536 switch (Sec.sh_type) { in initContent()
596 return getSection(Sec)->sh_type; in getSectionType()
931 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents()
960 EShdr->sh_type != ELF::SHT_NOBITS; in isSectionData()
966 return EShdr->sh_flags & ELF::SHF_ALLOC && EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
980 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
1000 return getSection(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual()
[all …]
H A DELF.h149 Sec.sh_type) + in describe()
173 if (Sec.sh_type == ELF::SHT_NOBITS) in checkSectionOffsets()
197 (Sec.sh_type == ELF::SHT_NOBITS) && ((Sec.sh_flags & ELF::SHF_TLS) != 0); in checkSectionVMA()
436 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin()
836 if (Sec.sh_type == ELF::SHT_DYNSYM) { in getDynSymtabSize()
916 FakeShdr.sh_type = ELF::SHT_PROGBITS; in createFakeSections()
1225 if (Section.sh_type != ELF::SHT_STRTAB) in getStringTable()
1230 getHeader().e_machine, Section.sh_type))) in getStringTable()
1260 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable()
1269 if (SymTable.sh_type != ELF::SHT_SYMTAB && in getSHNDXTable()
[all …]
/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/tools/llvm-objdump/
H A DELFDump.cpp89 if (Sec.sh_type == ELF::SHT_DYNAMIC) in getDynamicStrTab()
114 if ((*SecOrErr)->sh_type == ELF::SHT_CREL) { in getRelocationValueString()
118 } else if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString()
122 } else if ((*SecOrErr)->sh_type == ELF::SHT_REL) { in getRelocationValueString()
404 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersion()
405 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersion()
408 if (Shdr.sh_type == ELF::SHT_GNU_verneed) { in printSymbolVersion()
/freebsd/lib/libc/gen/
H A Dnlist.c187 if (shdr[i].sh_type != SHT_SYMTAB && in __elf_fdnlist()
188 shdr[i].sh_type != SHT_DYNSYM) in __elf_fdnlist()
296 nl->n_type = sh->sh_type == SHT_PROGBITS ? in elf_sym_to_nlist()
298 (sh->sh_type == SHT_NOBITS ? N_BSS : N_UNDF); in elf_sym_to_nlist()
/freebsd/sys/kern/
H A Dlink_elf_obj.c400 switch (shdr[i].sh_type) { in link_elf_link_preload()
437 shdr[symstrindex].sh_type != SHT_STRTAB || shstrindex == 0 || in link_elf_link_preload()
439 shdr[shstrindex].sh_type != SHT_STRTAB) { in link_elf_link_preload()
486 switch (shdr[i].sh_type) { in link_elf_link_preload()
498 if (shdr[i].sh_type == SHT_PROGBITS) in link_elf_link_preload()
501 else if (shdr[i].sh_type == SHT_X86_64_UNWIND) in link_elf_link_preload()
504 else if (shdr[i].sh_type == SHT_INIT_ARRAY) in link_elf_link_preload()
506 else if (shdr[i].sh_type == SHT_FINI_ARRAY) in link_elf_link_preload()
557 shdr[i].sh_type == SHT_INIT_ARRAY) { in link_elf_link_preload()
568 shdr[i].sh_type == SHT_FINI_ARRAY) { in link_elf_link_preload()
[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/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/contrib/llvm-project/llvm/lib/ExecutionEngine/JITLink/
H A DELFLinkGraphBuilder.h288 if (Sec.sh_type == ELF::SHT_SYMTAB) { in prepare()
297 if (Sec.sh_type == ELF::SHT_SYMTAB_SHNDX) { in prepare()
334 if (Sec.sh_type == ELF::SHT_NULL) { in graphifySections()
388 if (Sec.sh_type != ELF::SHT_NOBITS) { in graphifySections()
401 if (Sec.sh_type == ELF::SHT_ARM_EXIDX) { in graphifySections()
599 if (RelSect.sh_type != ELF::SHT_RELA) in forEachRelaRelocation()
649 if (RelSect.sh_type != ELF::SHT_REL) in forEachRelRelocation()
/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()
/freebsd/lib/libkldelf/
H A Def_obj.c307 switch (shdr[i].sh_type) { in ef_obj_open()
337 shdr[symstrindex].sh_type != SHT_STRTAB) { in ef_obj_open()
371 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { in ef_obj_open()
388 switch (shdr[i].sh_type) { in ef_obj_open()
393 if (shdr[i].sh_type == SHT_PROGBITS) { in ef_obj_open()

1234