| /NextBSD/contrib/elftoolchain/libelf/ |
| HD | gelf_symshndx.c | 42 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()
|
| HD | gelf_syminfo.c | 41 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()
|
| HD | gelf_cap.c | 45 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() 105 uint32_t sh_type; in gelf_update_cap() local 121 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_cap() 123 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_cap() 125 if (_libelf_xlate_shtype(sh_type) != ELF_T_CAP) { in gelf_update_cap()
|
| HD | gelf_dyn.c | 45 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()
|
| HD | gelf_rel.c | 43 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() 105 uint32_t sh_type; in gelf_update_rel() local 123 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rel() 125 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rel() 127 if (_libelf_xlate_shtype(sh_type) != ELF_T_REL) { in gelf_update_rel()
|
| HD | gelf_move.c | 43 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()
|
| HD | gelf_rela.c | 43 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() 106 uint32_t sh_type; in gelf_update_rela() local 124 sh_type = scn->s_shdr.s_shdr32.sh_type; in gelf_update_rela() 126 sh_type = scn->s_shdr.s_shdr64.sh_type; in gelf_update_rela() 128 if (_libelf_xlate_shtype(sh_type) != ELF_T_RELA) { in gelf_update_rela()
|
| HD | gelf_sym.c | 43 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()
|
| HD | elf_data.c | 41 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() 95 if ((elftype = _libelf_xlate_shtype(sh_type)) < ELF_T_FIRST || in elf_getdata() 96 elftype > ELF_T_LAST || (sh_type != SHT_NOBITS && in elf_getdata() 141 if (sh_type == SHT_NOBITS || sh_size == 0) { in elf_getdata() 216 uint32_t sh_type; in elf_rawdata() local 240 sh_type = s->s_shdr.s_shdr32.sh_type; in elf_rawdata() 245 sh_type = s->s_shdr.s_shdr64.sh_type; in elf_rawdata() [all …]
|
| HD | elf_update.c | 116 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() 447 size_t sh_type; in _libelf_resync_sections() local 457 sh_type = s->s_shdr.s_shdr32.sh_type; in _libelf_resync_sections() 459 sh_type = s->s_shdr.s_shdr64.sh_type; in _libelf_resync_sections() 461 if (sh_type == SHT_NOBITS || sh_type == SHT_NULL) in _libelf_resync_sections() 720 uint32_t sh_type; in _libelf_write_scn() local [all …]
|
| HD | gelf_shdr.c | 72 d->sh_type = sh32->sh_type; in gelf_getshdr() 119 sh32->sh_type = s->sh_type; in gelf_update_shdr()
|
| HD | libelf_checksum.c | 84 shdr.sh_type == SHT_DYNAMIC || in _libelf_checksum() 85 shdr.sh_type == SHT_DYNSYM) in _libelf_checksum()
|
| /NextBSD/sys/boot/common/ |
| HD | load_elf_obj.c | 221 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() 476 if (shdr[i].sh_type != SHT_RELA && shdr[i].sh_type != SHT_REL) in __elfN() 485 switch (shdr[i].sh_type) { in __elfN()
|
| /NextBSD/contrib/llvm/include/llvm/Object/ |
| HD | ELFObjectFile.h | 254 assert(SymTable->sh_type == ELF::SHT_SYMTAB || in toDRI() 255 SymTable->sh_type == ELF::SHT_DYNSYM); in toDRI() 369 return toELFShdrIter(Sec)->sh_type; in getSectionType() 580 EShdr->sh_type == ELF::SHT_PROGBITS; in isSectionData() 587 EShdr->sh_type == ELF::SHT_NOBITS; in isSectionBSS() 592 return toELFShdrIter(Sec)->sh_type == ELF::SHT_NOBITS; in isSectionVirtual() 604 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_begin() 612 uint32_t SymSecType = SymSec->sh_type; in section_rel_begin() 626 if (S->sh_type != ELF::SHT_RELA && S->sh_type != ELF::SHT_REL) in section_rel_end() 640 uintX_t Type = EShdr->sh_type; in getRelocatedSection() [all …]
|
| /NextBSD/cddl/contrib/opensolaris/lib/libctf/common/ |
| HD | ctf_lib.c | 166 dst->sh_type = src->sh_type; in shdr_to_gelf() 395 if (shp->sh_type == SHT_PROGBITS && in ctf_fdopen() 398 ctfsect.cts_type = shp->sh_type; in ctf_fdopen() 404 } else if (shp->sh_type == SHT_SYMTAB) { in ctf_fdopen() 406 symsect.cts_type = shp->sh_type; in ctf_fdopen() 413 strsect.cts_type = lhp->sh_type; in ctf_fdopen()
|
| /NextBSD/contrib/binutils/binutils/ |
| HD | readelf.c | 2528 get_mips_section_type_name (unsigned int sh_type) in get_mips_section_type_name() argument 2530 switch (sh_type) in get_mips_section_type_name() 2578 get_parisc_section_type_name (unsigned int sh_type) in get_parisc_section_type_name() argument 2580 switch (sh_type) in get_parisc_section_type_name() 2596 get_ia64_section_type_name (unsigned int sh_type) in get_ia64_section_type_name() argument 2599 if ((sh_type & 0xFF000000) == SHT_IA_64_LOPSREG) in get_ia64_section_type_name() 2600 return get_osabi_name ((sh_type & 0x00FF0000) >> 16); in get_ia64_section_type_name() 2602 switch (sh_type) in get_ia64_section_type_name() 2614 get_x86_64_section_type_name (unsigned int sh_type) in get_x86_64_section_type_name() argument 2616 switch (sh_type) in get_x86_64_section_type_name() [all …]
|
| /NextBSD/contrib/binutils/include/elf/ |
| HD | internal.h | 80 unsigned int sh_type; /* Type of section */ member 265 || sec_hdr->sh_type != SHT_NOBITS \ 279 && (sec_hdr->sh_type == SHT_NOBITS \
|
| HD | external.h | 102 unsigned char sh_type[4]; /* Type of section */ member 115 unsigned char sh_type[4]; /* Type of section */ member
|
| /NextBSD/contrib/binutils/bfd/ |
| HD | elf.c | 483 if (hdr->sh_type != SHT_SYMTAB in group_signature() 515 ( (shdr)->sh_type == SHT_GROUP \ in setup_group() 743 else if (idx->shdr->sh_type == SHT_RELA in _bfd_elf_setup_sections() 744 || idx->shdr->sh_type == SHT_REL) in _bfd_elf_setup_sections() 757 (unsigned int) idx->shdr->sh_type, in _bfd_elf_setup_sections() 804 elf_section_type (newsect) = hdr->sh_type; in _bfd_elf_make_section_from_shdr() 816 if (hdr->sh_type != SHT_NOBITS) in _bfd_elf_make_section_from_shdr() 818 if (hdr->sh_type == SHT_GROUP) in _bfd_elf_make_section_from_shdr() 823 if (hdr->sh_type != SHT_NOBITS) in _bfd_elf_make_section_from_shdr() 1854 switch (hdr->sh_type) in bfd_section_from_shdr() [all …]
|
| /NextBSD/sys/compat/linux/ |
| HD | linux_vdso.c | 129 if (shdr[i].sh_type == SHT_DYNSYM) { in __elfN() 201 if (shdr[i].sh_type != SHT_SYMTAB && in __elfN() 202 shdr[i].sh_type != SHT_DYNSYM) in __elfN()
|
| /NextBSD/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| HD | dt_link.c | 573 shp->sh_type = SHT_STRTAB; in dump_elf32() 582 shp->sh_type = SHT_SUNW_dof; in dump_elf32() 591 shp->sh_type = SHT_STRTAB; in dump_elf32() 600 shp->sh_type = SHT_SYMTAB; in dump_elf32() 623 shp->sh_type = SHT_RELA; in dump_elf32() 625 shp->sh_type = SHT_REL; in dump_elf32() 719 shp->sh_type = SHT_STRTAB; in dump_elf64() 728 shp->sh_type = SHT_SUNW_dof; in dump_elf64() 737 shp->sh_type = SHT_STRTAB; in dump_elf64() 746 shp->sh_type = SHT_SYMTAB; in dump_elf64() [all …]
|
| /NextBSD/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| HD | output.c | 523 } else if (dynsym && shdr1.sh_type == SHT_SYMTAB) { in write_file() 568 if (shdr.sh_type == SHT_REL || shdr.sh_type == SHT_RELA) in write_file() 618 if (shdr.sh_type == symtab_type && shdr.sh_entsize != 0) { in write_file() 657 if (shdr.sh_type != SHT_NOBITS) in write_file() 670 shdr.sh_type = SHT_PROGBITS; in write_file()
|
| /NextBSD/usr.sbin/kldxref/ |
| HD | ef_obj.c | 390 switch (shdr[i].sh_type) { in ef_obj_open() 420 shdr[symstrindex].sh_type != SHT_STRTAB) { in ef_obj_open() 457 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { in ef_obj_open() 472 switch (shdr[i].sh_type) { in ef_obj_open() 502 switch (shdr[i].sh_type) { in ef_obj_open() 509 if (shdr[i].sh_type == SHT_PROGBITS) { in ef_obj_open()
|
| /NextBSD/sys/kern/ |
| HD | link_elf_obj.c | 257 switch (shdr[i].sh_type) { in link_elf_link_preload() 278 shdr[symstrindex].sh_type != SHT_STRTAB || shstrindex == 0 || in link_elf_link_preload() 280 shdr[shstrindex].sh_type != SHT_STRTAB) { in link_elf_link_preload() 327 switch (shdr[i].sh_type) { in link_elf_link_preload() 331 if (shdr[i].sh_type == SHT_PROGBITS) in link_elf_link_preload() 575 switch (shdr[i].sh_type) { in link_elf_load_file() 607 shdr[symstrindex].sh_type != SHT_STRTAB) { in link_elf_load_file() 659 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { in link_elf_load_file() 681 switch (shdr[i].sh_type) { in link_elf_load_file() 748 switch (shdr[i].sh_type) { in link_elf_load_file() [all …]
|
| /NextBSD/contrib/llvm/tools/lldb/source/Plugins/ObjectFile/ELF/ |
| HD | ObjectFileELF.cpp | 338 if (llvm::ELF::SHT_NOBITS == sect_hdr.sh_type) in kalimbaSectionType() 343 if (llvm::ELF::SHT_PROGBITS == sect_hdr.sh_type) in kalimbaSectionType() 1505 const uint64_t section_size = header.sh_type == SHT_NOBITS ? 0 : header.sh_size; in GetSectionHeaderInfo() 1513 if (header.sh_type == SHT_MIPS_ABIFLAGS) in GetSectionHeaderInfo() 1539 bool is_note_header = (header.sh_type == SHT_NOTE); in GetSectionHeaderInfo() 1650 const uint64_t file_size = header.sh_type == SHT_NOBITS ? 0 : header.sh_size; in CreateSections() 1715 switch (header.sh_type) in CreateSections() 2130 assert(symtab_hdr->sh_type == SHT_SYMTAB || in ParseSymbolTable() 2131 symtab_hdr->sh_type == SHT_DYNSYM); in ParseSymbolTable() 2340 assert(rel_hdr->sh_type == SHT_RELA || rel_hdr->sh_type == SHT_REL); in ParseTrampolineSymbols() [all …]
|