| /freebsd-13.1/contrib/elftoolchain/libelf/ |
| H A D | 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()
|
| H A D | 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()
|
| H A D | 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() 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 D | 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()
|
| H A D | 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()
|
| H A D | 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()
|
| H A D | 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() 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 D | 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() 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 D | 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() 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 D | libelf_chdr.c | 71 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 D | 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() 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 D | gelf_shdr.c | 72 d->sh_type = sh32->sh_type; in gelf_getshdr() 119 sh32->sh_type = s->sh_type; in gelf_update_shdr()
|
| H A D | libelf_checksum.c | 84 shdr.sh_type == SHT_DYNAMIC || in _libelf_checksum() 85 shdr.sh_type == SHT_DYNSYM) in _libelf_checksum()
|
| /freebsd-13.1/stand/common/ |
| H A D | load_elf_obj.c | 261 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 D | ELFObjectFile.h | 465 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 D | ELF.h | 149 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 D | ctf_lib.c | 167 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 D | libdwarf_elf_init.c | 156 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 D | link_elf_obj.c | 395 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 D | ELFDump.cpp | 48 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 D | pe.c | 153 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 D | nlist.c | 172 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 D | linux_vdso.c | 133 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 D | output.c | 522 } 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 D | dt_link.c | 527 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 …]
|