Searched refs:e_shstrndx (Results 1 - 25 of 58) sorted by relevance

123

/freebsd-11-stable/sys/kern/
H A Dkern_ctf.c158 if (hdr->e_shstrndx == 0 || shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) {
159 printf("%s(%d): module %s e_shstrndx is %d, sh_type is %d\n",
160 __func__, __LINE__, lf->pathname, hdr->e_shstrndx,
161 shdr[hdr->e_shstrndx].sh_type);
167 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK);
171 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset,
/freebsd-11-stable/contrib/elftoolchain/libelf/
H A Dgelf_ehdr.c81 d->e_shstrndx = eh32->e_shstrndx;
164 eh32->e_shstrndx = s->e_shstrndx;
H A Dlibelf_extended.c100 ((Elf32_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU;
102 ((Elf64_Ehdr *) eh)->e_shstrndx = shstrndx & 0xFFFFU;
H A Dlibelf_ehdr.c182 strndx = ((Elf32_Ehdr *) ehdr)->e_shstrndx;
187 strndx = ((Elf64_Ehdr *) ehdr)->e_shstrndx;
/freebsd-11-stable/contrib/binutils/include/elf/
H A Dexternal.h54 unsigned char e_shstrndx[2]; /* Section header string table index */ member in struct:__anon501
71 unsigned char e_shstrndx[2]; /* Section header string table index */ member in struct:__anon502
H A Dinternal.h58 unsigned int e_shstrndx; /* Section header string table index */ member in struct:elf_internal_ehdr
/freebsd-11-stable/contrib/file/src/
H A Delfclass.h72 CAST(int, elf_getu16(swap, elfhdr.e_shstrndx)),
H A Dreadelf.h106 Elf32_Half e_shstrndx; member in struct:__anon34
123 Elf64_Half e_shstrndx; member in struct:__anon35
/freebsd-11-stable/contrib/binutils/bfd/
H A Delfcode.h251 dst->e_shstrndx = H_GET_16 (abfd, src->e_shstrndx);
284 tmp = src->e_shstrndx;
287 H_PUT_16 (abfd, tmp, dst->e_shstrndx);
703 if (i_ehdrp->e_shstrndx == SHN_XINDEX)
705 i_ehdrp->e_shstrndx = i_shdr.sh_link;
706 if (i_ehdrp->e_shstrndx != i_shdr.sh_link)
803 if (! valid_section_index_p (i_ehdrp->e_shstrndx, elf_numsections (abfd)))
811 i_ehdrp->e_shstrndx = SHN_UNDEF;
815 else if (i_ehdrp->e_shstrndx !
[all...]
/freebsd-11-stable/cddl/contrib/opensolaris/tools/ctf/cvt/
H A Doutput.c509 sname = elf_strptr(src, sehdr.e_shstrndx, shdr1.sh_name);
571 sname = elf_strptr(src, sehdr.e_shstrndx, shdr.sh_name);
602 if (srcidx == sehdr.e_shstrndx) {
704 dehdr.e_shstrndx = secxlate[sehdr.e_shstrndx];
H A Dutil.c82 if ((name = elf_strptr(elf, ehdr.e_shstrndx,
/freebsd-11-stable/cddl/contrib/opensolaris/lib/libctf/common/
H A Dctf_lib.c156 dst->e_shstrndx = src->e_shstrndx;
302 shstrndx = hdr.e64.e_shstrndx;
/freebsd-11-stable/sys/sys/
H A Delf64.h78 Elf64_Half e_shstrndx; /* Section name strings section. */ member in struct:__anon8483
H A Delf32.h69 Elf32_Half e_shstrndx; /* Section name strings section. */ member in struct:__anon8465
/freebsd-11-stable/stand/common/
H A Dload_elf_obj.c269 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum ||
270 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) {
275 ef->shstrindex = hdr->e_shstrndx;
H A Dload_elf.c147 CONVERT_FIELD(b, e_shstrndx, e)
617 chunk = shdr[ehdr->e_shstrndx].sh_size;
619 shstr = alloc_pread(ef->fd, shdr[ehdr->e_shstrndx].sh_offset,
934 shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset,
935 shdr[ef.ehdr->e_shstrndx].sh_size);
/freebsd-11-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/
H A DELFHeader.h77 elf_word e_shstrndx; ///< String table section index. member in struct:elf::ELFHeader
H A DELFHeader.cpp110 e_shstrndx = section_zero.sh_link;
140 // Read e_ehsize, e_phentsize, e_phnum, e_shentsize, e_shnum and e_shstrndx.
144 // Initialize e_phnum, e_shnum, and e_shstrndx with the values read from the
148 e_shstrndx = e_shstrndx_hdr;
/freebsd-11-stable/usr.sbin/kldxref/
H A Def_obj.c480 if (hdr->e_shstrndx != 0 &&
481 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) {
482 shstrindex = hdr->e_shstrndx;
/freebsd-11-stable/stand/i386/isoboot/
H A Disoboot.c398 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
400 (hdr.eh.e_shstrndx + 1);
/freebsd-11-stable/stand/mips/beri/boot2/
H A Dboot2.c361 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
363 (hdr.eh.e_shstrndx + 1);
/freebsd-11-stable/stand/pc98/boot2/
H A Dboot2.c464 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
466 (hdr.eh.e_shstrndx + 1);
/freebsd-11-stable/stand/i386/boot2/
H A Dboot2.c329 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
331 (hdr.eh.e_shstrndx + 1);
/freebsd-11-stable/stand/i386/gptboot/
H A Dgptboot.c459 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) {
461 (hdr.eh.e_shstrndx + 1);
/freebsd-11-stable/contrib/binutils/binutils/
H A Dreadelf.c3240 (long) elf_header.e_shstrndx);
3241 if (section_headers != NULL && elf_header.e_shstrndx == SHN_XINDEX)
3243 else if (elf_header.e_shstrndx != SHN_UNDEF
3244 && (elf_header.e_shstrndx >= elf_header.e_shnum
3245 || (elf_header.e_shstrndx >= SHN_LORESERVE
3246 && elf_header.e_shstrndx <= SHN_HIRESERVE)))
3255 if (elf_header.e_shstrndx == SHN_XINDEX)
3256 elf_header.e_shstrndx = section_headers[0].sh_link;
3257 else if (elf_header.e_shstrndx != SHN_UNDEF
3258 && (elf_header.e_shstrndx >
[all...]

Completed in 385 milliseconds

123