Home
last modified time | relevance | path

Searched refs:sh_type (Results 1 – 25 of 95) 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.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/contrib/llvm-project/llvm/include/llvm/Object/
H A DELFObjectFile.h360 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI()
361 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI()
427 if (Sec.sh_type != Type) in getBuildAttributes()
530 switch (Sec.sh_type) { in initContent()
590 return getSection(Sec)->sh_type; in getSectionType()
925 if (EShdr->sh_type == ELF::SHT_NOBITS) in getSectionContents()
952 return EShdr->sh_type == ELF::SHT_PROGBITS && in isSectionData()
961 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS()
975 if (Sec.sh_type != ELF::SHT_DYNAMIC) in dynamic_relocation_sections()
995 return getSection(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual()
[all …]
H A DELF.h148 Sec.sh_type) + in describe()
172 if (Sec.sh_type == ELF::SHT_NOBITS) in checkSectionOffsets()
196 (Sec.sh_type == ELF::SHT_NOBITS) && ((Sec.sh_flags & ELF::SHF_TLS) != 0); in checkSectionVMA()
430 assert(Shdr.sh_type == ELF::SHT_NOTE && "Shdr is not of type SHT_NOTE"); in notes_begin()
830 if (Sec.sh_type == ELF::SHT_DYNSYM) { in getDynSymtabSize()
910 FakeShdr.sh_type = ELF::SHT_PROGBITS; in createFakeSections()
1219 if (Section.sh_type != ELF::SHT_STRTAB) in getStringTable()
1224 getHeader().e_machine, Section.sh_type))) in getStringTable()
1254 assert(Section.sh_type == ELF::SHT_SYMTAB_SHNDX); in getSHNDXTable()
1263 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.cpp82 if (Sec.sh_type == ELF::SHT_DYNSYM) in getDynamicStrTab()
107 if ((*SecOrErr)->sh_type == ELF::SHT_CREL) { in getRelocationValueString()
111 } else if ((*SecOrErr)->sh_type == ELF::SHT_RELA) { in getRelocationValueString()
115 } else if ((*SecOrErr)->sh_type == ELF::SHT_REL) { in getRelocationValueString()
420 if (Shdr.sh_type != ELF::SHT_GNU_verneed && in printSymbolVersion()
421 Shdr.sh_type != ELF::SHT_GNU_verdef) in printSymbolVersion()
430 if (Shdr.sh_type == ELF::SHT_GNU_verneed) in printSymbolVersion()
/freebsd/sys/kern/
H A Dlink_elf_obj.c402 switch (shdr[i].sh_type) { in link_elf_link_preload()
439 shdr[symstrindex].sh_type != SHT_STRTAB || shstrindex == 0 || in link_elf_link_preload()
441 shdr[shstrindex].sh_type != SHT_STRTAB) { 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()
502 else if (shdr[i].sh_type == SHT_X86_64_UNWIND) in link_elf_link_preload()
505 else if (shdr[i].sh_type == SHT_INIT_ARRAY) in link_elf_link_preload()
507 else if (shdr[i].sh_type == SHT_FINI_ARRAY) 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()
[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/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/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