Home
last modified time | relevance | path

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

123

/illumos-gate/usr/src/cmd/sgs/libelf/common/
H A Dgetshstrndx.c53 if (ehdr.e_shstrndx != SHN_XINDEX) { in elf_getshdrstrndx()
54 *shstrndx = ehdr.e_shstrndx; in elf_getshdrstrndx()
H A Dgelf.c115 dst->e_shstrndx = e->e_shstrndx; in gelf_getehdr()
177 d->e_shstrndx = src->e_shstrndx; in gelf_update_ehdr()
/illumos-gate/usr/src/lib/libdwarf/common/
H A Ddw_elfstructs.h74 TYP(e_shstrndx,2);
92 TYP(e_shstrndx,2);
H A Ddwarf_elfstructs.h82 TYP(e_shstrndx,2);
100 TYP(e_shstrndx,2);
/illumos-gate/usr/src/lib/libctf/common/
H A Dctf_elfwrite.c350 if (sehdr.e_shstrndx == SHN_XINDEX) in ctf_write_elf()
351 dehdr.e_shstrndx = SHN_XINDEX; in ctf_write_elf()
353 dehdr.e_shstrndx = secxlate[sehdr.e_shstrndx]; in ctf_write_elf()
H A Dctf_lib.c358 dst->e_shstrndx = src->e_shstrndx; in ehdr_to_gelf()
507 shstrndx = hdr.e64.e_shstrndx; in ctf_fdcreate_int()
/illumos-gate/usr/src/grub/grub-0.97/netboot/
H A Delf.h179 Elf32_Half e_shstrndx; /* Section name strings section. */ member
196 Elf64_Half e_shstrndx; /* Section name strings section. */ member
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/
H A Delf.c79 if (ehdr->e_shstrndx == SHN_XINDEX) { in Elf_ehdr()
85 ehdr->e_ehsize, ehdr->e_shstrndx); in Elf_ehdr()
/illumos-gate/usr/src/cmd/sgs/elfedit/modules/common/
H A Dehdr.c545 Word num = ehdr->e_shstrndx; in print_ehdr()
1115 Half e_shstrndx; in cmd_body() local
1145 e_shstrndx = SHN_XINDEX; in cmd_body()
1148 e_shstrndx = shstrndx; in cmd_body()
1152 if (ehdr->e_shstrndx == e_shstrndx) { in cmd_body()
1155 EC_WORD(ehdr->e_shstrndx)); in cmd_body()
1159 EC_WORD(ehdr->e_shstrndx), e_shstrndx); in cmd_body()
1161 ehdr->e_shstrndx = e_shstrndx; in cmd_body()
H A Dstr.msg152 By default, the string table referenced by the e_shstrndx field\n\
183 By default, the string table referenced by the e_shstrndx field\n\
227 By default, the string table referenced by the e_shstrndx field\n\
241 By default, the string table referenced by the e_shstrndx field\n\
/illumos-gate/usr/src/cmd/mdb/tools/common/
H A Dfindscn.c47 (name = elf_strptr(elf, ehdr.e_shstrndx, in findelfsecidx()
/illumos-gate/usr/src/boot/common/
H A Dload_elf_obj.c264 if (hdr->e_shstrndx == 0 || hdr->e_shstrndx >= hdr->e_shnum || in __elfN()
265 shdr[hdr->e_shstrndx].sh_type != SHT_STRTAB) { in __elfN()
270 ef->shstrindex = hdr->e_shstrndx; in __elfN()
H A Dload_elf.c562 chunk = shdr[ehdr->e_shstrndx].sh_size; in __elfN()
564 shstr = alloc_pread(ef->fd, shdr[ehdr->e_shstrndx].sh_offset, in __elfN()
861 shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset, in __elfN()
862 shdr[ef.ehdr->e_shstrndx].sh_size); in __elfN()
/illumos-gate/usr/src/cmd/sgs/libelf/demo/
H A Ddcom.c268 tehdr.e_shstrndx = shndx[shstrndx]; in delete_comment()
289 tehdr.e_shstrndx = SHN_XINDEX; in delete_comment()
/illumos-gate/usr/src/test/os-tests/tests/cores/secmapper/
H A Dsecmapper.c233 comp_name = elf_strptr(sm->sm_elf, sm->sm_ehdr.e_shstrndx, in secmap_data_cmp()
376 sname = elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name); in main()
/illumos-gate/usr/src/cmd/ctfmerge/
H A Dctfmerge.c123 sname = elf_strptr(elf, ehdr.e_shstrndx, shdr.sh_name); in ctfmerge_elfopen()
156 strsect.cts_name = elf_strptr(elf, ehdr.e_shstrndx, in ctfmerge_elfopen()
/illumos-gate/usr/src/lib/libproc/common/
H A DPcore.c1763 efp->e_hdr.e_shstrndx = (Elf64_Word)e64.e_shstrndx; in core_elf_fdopen()
1783 efp->e_hdr.e_shstrndx = (Elf64_Word)e32.e_shstrndx; in core_elf_fdopen()
1794 efp->e_hdr.e_shstrndx == SHN_XINDEX || in core_elf_fdopen()
1832 if (efp->e_hdr.e_shstrndx == SHN_XINDEX) { in core_elf_fdopen()
1833 efp->e_hdr.e_shstrndx = shdr.sh_link; in core_elf_fdopen()
2228 if (efp->e_hdr.e_shstrndx >= efp->e_hdr.e_shnum) { in core_load_shdrs()
2230 efp->e_hdr.e_shstrndx, efp->e_hdr.e_shnum); in core_load_shdrs()
2275 shp = &shdrs[efp->e_hdr.e_shstrndx]; in core_load_shdrs()
2747 (sname = elf_strptr(aout.e_elf, aout.e_hdr.e_shstrndx,
H A DPcontrol.h198 Elf64_Word e_shstrndx; /* shdr string index extended to 32 bits */ member
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Di386-elf.h90 Elf32_Half e_shstrndx; /* section header table index */ member
/illumos-gate/usr/src/boot/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
/illumos-gate/usr/src/lib/libsaveargs/tests/dump/
H A Ddump.c80 ehdr.e_shstrndx, (size_t)textshdr.sh_name)) == 0) { in walk_symtab()
/illumos-gate/usr/src/boot/i386/isoboot/
H A Disoboot.c417 if (hdr.eh.e_shnum == hdr.eh.e_shstrndx + 3) { in load()
419 (hdr.eh.e_shstrndx + 1); in load()
/illumos-gate/usr/src/uts/common/sys/
H A Delf.h84 Elf32_Half e_shstrndx; /* shdr string index */ member
102 Elf64_Half e_shstrndx; /* shdr string index */ member
/illumos-gate/usr/src/cmd/mdb/common/mdb/
H A Dmdb_gelf.c193 dst->e_shstrndx = src->e_shstrndx; in mdb_gelf_ehdr_to_gehdr()
601 gf->gf_ehdr.e_shstrndx = ehdr->e_shstrndx; in gelf32_init()
604 gf->gf_shstrndx = gf->gf_ehdr.e_shstrndx; in gelf32_init()
663 gf->gf_shstrndx = gf->gf_ehdr.e_shstrndx; in gelf64_init()

123