| /freebsd-12-stable/sys/kern/ |
| D | kern_ctf.c | 146 if (hdr->e_shstrndx == 0 || shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { 148 __func__, __LINE__, lf->pathname, hdr->e_shstrndx, 149 shdr[hdr->e_shstrndx].sh_type); 155 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK); 159 shdr[hdr->e_shstrndx].sh_size, shdr[hdr->e_shstrndx].sh_offset,
|
| /freebsd-12-stable/contrib/elftoolchain/libelf/ |
| 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()
|
| 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()
|
| D | libelf_ehdr.c | 182 strndx = ((Elf32_Ehdr *) ehdr)->e_shstrndx; in _libelf_ehdr() 187 strndx = ((Elf64_Ehdr *) ehdr)->e_shstrndx; in _libelf_ehdr()
|
| D | elf_types.m4 | 115 `e_shstrndx, HALF', 132 `e_shstrndx, HALF',
|
| /freebsd-12-stable/contrib/binutils/include/elf/ |
| D | external.h | 54 unsigned char e_shstrndx[2]; /* Section header string table index */ member 71 unsigned char e_shstrndx[2]; /* Section header string table index */ member
|
| D | internal.h | 58 unsigned int e_shstrndx; /* Section header string table index */ member
|
| /freebsd-12-stable/contrib/binutils/bfd/ |
| D | elfcode.h | 250 dst->e_shstrndx = H_GET_16 (abfd, src->e_shstrndx); in elf_swap_ehdr_in() 283 tmp = src->e_shstrndx; in elf_swap_ehdr_out() 286 H_PUT_16 (abfd, tmp, dst->e_shstrndx); in elf_swap_ehdr_out() 701 if (i_ehdrp->e_shstrndx == SHN_XINDEX) in elf_object_p() 703 i_ehdrp->e_shstrndx = i_shdr.sh_link; in elf_object_p() 704 if (i_ehdrp->e_shstrndx != i_shdr.sh_link) in elf_object_p() 801 if (! valid_section_index_p (i_ehdrp->e_shstrndx, elf_numsections (abfd))) in elf_object_p() 809 i_ehdrp->e_shstrndx = SHN_UNDEF; in elf_object_p() 813 else if (i_ehdrp->e_shstrndx != SHN_UNDEF) in elf_object_p() 841 if (i_ehdrp->e_shstrndx != 0 && i_ehdrp->e_shoff != 0) in elf_object_p() [all …]
|
| /freebsd-12-stable/cddl/contrib/opensolaris/tools/ctf/cvt/ |
| D | output.c | 509 sname = elf_strptr(src, sehdr.e_shstrndx, shdr1.sh_name); in write_file() 571 sname = elf_strptr(src, sehdr.e_shstrndx, shdr.sh_name); in write_file() 602 if (srcidx == sehdr.e_shstrndx) { in write_file() 704 dehdr.e_shstrndx = secxlate[sehdr.e_shstrndx]; in write_file()
|
| D | util.c | 82 if ((name = elf_strptr(elf, ehdr.e_shstrndx, in findelfsecidx()
|
| /freebsd-12-stable/stand/common/ |
| D | load_elf_obj.c | 309 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN() 310 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in __elfN() 315 ef->shstrindex = hdr->e_shstrndx; in __elfN()
|
| D | load_elf.c | 156 CONVERT_FIELD(b, e_shstrndx, e) in elf_header_convert() 661 chunk = shdr[ehdr->e_shstrndx].sh_size; in __elfN() 664 shdr[ehdr->e_shstrndx].sh_offset, chunk); in __elfN() 978 shstrtab = alloc_pread(VECTX_HANDLE(&ef), shdr[ef.ehdr->e_shstrndx].sh_offset, in __elfN() 979 shdr[ef.ehdr->e_shstrndx].sh_size); in __elfN()
|
| /freebsd-12-stable/cddl/contrib/opensolaris/lib/libctf/common/ |
| D | ctf_lib.c | 156 dst->e_shstrndx = src->e_shstrndx; in ehdr_to_gelf() 302 shstrndx = hdr.e64.e_shstrndx; in ctf_fdopen()
|
| /freebsd-12-stable/contrib/file/src/ |
| D | readelf.h | 106 Elf32_Half e_shstrndx; member 123 Elf64_Half e_shstrndx; member
|
| D | elfclass.h | 72 CAST(int, elf_getu16(swap, elfhdr.e_shstrndx)),
|
| /freebsd-12-stable/contrib/llvm-project/lldb/source/Plugins/ObjectFile/ELF/ |
| D | ELFHeader.cpp | 110 e_shstrndx = section_zero.sh_link; in ParseHeaderExtension() 148 e_shstrndx = e_shstrndx_hdr; in Parse()
|
| D | ELFHeader.h | 77 elf_word e_shstrndx; ///< String table section index. member
|
| /freebsd-12-stable/usr.sbin/kldxref/ |
| D | ef_obj.c | 484 if (hdr->e_shstrndx != 0 && in ef_obj_open() 485 shdr[hdr->e_shstrndx].sh_type == SHT_STRTAB) { in ef_obj_open() 486 shstrindex = hdr->e_shstrndx; in ef_obj_open()
|
| /freebsd-12-stable/stand/mips/beri/boot2/ |
| D | boot2.c | 361 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in boot_fromfs() 363 (hdr.eh.e_shstrndx + 1); in boot_fromfs()
|
| /freebsd-12-stable/stand/i386/isoboot/ |
| D | isoboot.c | 398 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load() 400 (hdr.eh.e_shstrndx + 1); in load()
|
| /freebsd-12-stable/sys/sys/ |
| D | elf32.h | 71 Elf32_Half e_shstrndx; /* Section name strings section. */ member
|
| D | elf64.h | 80 Elf64_Half e_shstrndx; /* Section name strings section. */ member
|
| /freebsd-12-stable/stand/i386/boot2/ |
| D | boot2.c | 329 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load() 331 (hdr.eh.e_shstrndx + 1); in load()
|
| /freebsd-12-stable/contrib/binutils/binutils/ |
| D | readelf.c | 3237 (long) elf_header.e_shstrndx); in process_file_header() 3238 if (section_headers != NULL && elf_header.e_shstrndx == SHN_XINDEX) in process_file_header() 3240 else if (elf_header.e_shstrndx != SHN_UNDEF in process_file_header() 3241 && (elf_header.e_shstrndx >= elf_header.e_shnum in process_file_header() 3242 || (elf_header.e_shstrndx >= SHN_LORESERVE in process_file_header() 3243 && elf_header.e_shstrndx <= SHN_HIRESERVE))) in process_file_header() 3252 if (elf_header.e_shstrndx == SHN_XINDEX) in process_file_header() 3253 elf_header.e_shstrndx = section_headers[0].sh_link; in process_file_header() 3254 else if (elf_header.e_shstrndx != SHN_UNDEF in process_file_header() 3255 && (elf_header.e_shstrndx >= elf_header.e_shnum in process_file_header() [all …]
|
| /freebsd-12-stable/stand/i386/gptboot/ |
| D | gptboot.c | 459 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load() 461 (hdr.eh.e_shstrndx + 1); in load()
|