Home
last modified time | relevance | path

Searched refs:e_shstrndx (Results 1 – 25 of 44) sorted by relevance

12

/freebsd/sys/kern/
H A Dkern_ctf.c146 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 Dlink_elf_obj.c433 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 Dgelf_ehdr.c81 d->e_shstrndx = eh32->e_shstrndx; in gelf_getehdr()
164 eh32->e_shstrndx = s->e_shstrndx; in gelf_update_ehdr()
H A Dlibelf_extended.c100 ((Elf32_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx()
102 ((Elf64_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU; in _libelf_setshstrndx()
H A Dlibelf_ehdr.c182 strndx = ((Elf32_Ehdr *) ehdr)->e_shstrndx; in _libelf_ehdr()
187 strndx = ((Elf64_Ehdr *) ehdr)->e_shstrndx; in _libelf_ehdr()
H A Delf_types.m4115 `e_shstrndx, HALF',
132 `e_shstrndx, HALF',
/freebsd/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c508 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 Dutil.c83 if ((name = elf_strptr(elf, ehdr.e_shstrndx, in findelfsecidx()
/freebsd/stand/common/
H A Dload_elf_obj.c304 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 Dload_elf.c151 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 Dreadelf.h106 Elf32_Half e_shstrndx; member
123 Elf64_Half e_shstrndx; member
H A Delfclass.h72 CAST(int, elf_getu16(swap, elfhdr.e_shstrndx)),
/freebsd/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c157 dst->e_shstrndx = src->e_shstrndx; in ehdr_to_gelf()
304 shstrndx = hdr.e64.e_shstrndx; in ctf_fdopen()
/freebsd/lib/libkldelf/
H A Def_obj.c370 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 DELFHeader.cpp110 e_shstrndx = section_zero.sh_link; in ParseHeaderExtension()
148 e_shstrndx = e_shstrndx_hdr; in Parse()
H A DELFHeader.h77 elf_word e_shstrndx; ///< String table section index. member
/freebsd/stand/i386/isoboot/
H A Disoboot.c395 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 Delf32.h69 Elf32_Half e_shstrndx; /* Section name strings section. */ member
H A Delf64.h78 Elf64_Half e_shstrndx; /* Section name strings section. */ member
/freebsd/stand/i386/boot2/
H A Dboot2.c326 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 Dgptboot.c456 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 Dzfsboot.c433 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 DELF.h76 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 Delfcore.c504 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 Dexec_elf32.c268 if (i == xe16toh(ehdr.e_shstrndx)) in ELFNAMEEND()

12