/freebsd/sys/kern/ |
H A D | kern_ctf.c | 146 if (hdr->e_shstrndx == 0 || shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in link_elf_ctf_get() 150 __func__, __LINE__, lf->pathname, hdr->e_shstrndx, in link_elf_ctf_get() 151 shdr[hdr->e_shstrndx].sh_type); in link_elf_ctf_get() 158 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK); in link_elf_ctf_get() 162 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset, in link_elf_ctf_get()
|
H A D | link_elf_obj.c | 433 shstrindex = hdr->e_shstrndx; in link_elf_link_preload() 937 if (hdr->e_shstrndx != 0 && in link_elf_load_file() 938 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { in link_elf_load_file() 939 shstrindex = hdr->e_shstrndx; in link_elf_load_file()
|
/freebsd/contrib/elftoolchain/libelf/ |
H A D | gelf_ehdr.c | 81 d->e_shstrndx = eh32->e_shstrndx; in gelf_getehdr() 164 eh32->e_shstrndx = s->e_shstrndx; in gelf_update_ehdr()
|
H A D | libelf_extended.c | 100 ((Elf32_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx() 102 ((Elf64_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx()
|
H A D | libelf_ehdr.c | 182 strndx = ((Elf32_Ehdr *) ehdr)->e_shstrndx; in _libelf_ehdr() 187 strndx = ((Elf64_Ehdr *) ehdr)->e_shstrndx; in _libelf_ehdr()
|
H A D | elf_types.m4 | 115 `e_shstrndx, HALF', 132 `e_shstrndx, HALF',
|
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/ |
H A D | output.c | 508 sname = elf_strptr(src, sehdr.e_shstrndx, shdr1.sh_name); in write_file() 569 sname = elf_strptr(src, sehdr.e_shstrndx, shdr.sh_name); in write_file() 600 if (srcidx == sehdr.e_shstrndx) { in write_file() 702 dehdr.e_shstrndx = secxlate[sehdr.e_shstrndx]; in write_file()
|
H A D | util.c | 83 if ((name = elf_strptr(elf, ehdr.e_shstrndx, in findelfsecidx()
|
/freebsd/stand/common/ |
H A D | load_elf_obj.c | 304 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN() 305 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in __elfN() 310 ef->shstrindex = hdr->e_shstrndx; in __elfN()
|
H A D | load_elf.c | 151 CONVERT_FIELD(b, e_shstrndx, e) in elf_header_convert() 726 chunk = shdr[ehdr->e_shstrndx].sh_size; 729 shdr[ehdr->e_shstrndx].sh_offset, chunk); 1021 shstrtab = alloc_pread(VECTX_HANDLE(&ef), shdr[ef.ehdr->e_shstrndx].sh_offset, 1022 shdr[ef.ehdr->e_shstrndx].sh_size);
|
/freebsd/contrib/file/src/ |
H A D | readelf.h | 106 Elf32_Half e_shstrndx; member 123 Elf64_Half e_shstrndx; member
|
H A D | elfclass.h | 72 CAST(int, elf_getu16(swap, elfhdr.e_shstrndx)),
|
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/ |
H A D | ctf_lib.c | 157 dst->e_shstrndx = src->e_shstrndx; in ehdr_to_gelf() 304 shstrndx = hdr.e64.e_shstrndx; in ctf_fdopen()
|
/freebsd/lib/libkldelf/ |
H A D | ef_obj.c | 370 if (hdr->e_shstrndx != 0 && in ef_obj_open() 371 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { in ef_obj_open() 372 if (elf_read_string_table(efile, &shdr[hdr->e_shstrndx], in ef_obj_open()
|
/freebsd/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
H A D | ELFHeader.cpp | 110 e_shstrndx = section_zero.sh_link; in ParseHeaderExtension() 148 e_shstrndx = e_shstrndx_hdr; in Parse()
|
H A D | ELFHeader.h | 77 elf_word e_shstrndx; ///< String table section index. member
|
/freebsd/stand/i386/isoboot/ |
H A D | isoboot.c | 395 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load() 397 (hdr.eh.e_shstrndx + 1); in load()
|
/freebsd/sys/sys/ |
H A D | elf32.h | 69 Elf32_Half e_shstrndx; /* Section name strings section. */ member
|
H A D | elf64.h | 78 Elf64_Half e_shstrndx; /* Section name strings section. */ member
|
/freebsd/stand/i386/boot2/ |
H A D | boot2.c | 326 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load() 328 (hdr.eh.e_shstrndx + 1); in load()
|
/freebsd/stand/i386/gptboot/ |
H A D | gptboot.c | 456 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load() 458 (hdr.eh.e_shstrndx + 1); in load()
|
/freebsd/stand/i386/zfsboot/ |
H A D | zfsboot.c | 433 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load() 435 sizeof (es[0]) * (hdr.eh.e_shstrndx + 1), in load()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/BinaryFormat/ |
H A D | ELF.h | 76 Elf32_Half e_shstrndx; // Sect hdr table index of sect name string table member 102 Elf64_Half e_shstrndx; member
|
/freebsd/usr.bin/gcore/ |
H A D | elfcore.c | 504 ehdr->e_shstrndx = SHN_UNDEF; in elf_puthdr() 529 shdr->sh_link = ehdr->e_shstrndx; in elf_puthdr()
|
/freebsd/usr.sbin/crunch/crunchide/ |
H A D | exec_elf32.c | 268 if (i == xe16toh(ehdr.e_shstrndx)) in ELFNAMEEND()
|