Searched refs:shstrtab (Results 1 - 13 of 13) sorted by relevance

/illumos-gate/usr/src/tools/btxld/
H A Delfh.h41 char shstrtab[28]; /* section header string table */ member in struct:elfh
H A Delfh.c102 htole32(offsetof(struct elfh, shstrtab)), /* sh_offset */
103 htole32(sizeof(elfhdr.shstrtab)), /* sh_size */
134 "\0.shstrtab\0.text\0.data" /* shstrtab */
/illumos-gate/usr/src/cmd/sgs/elfwrap/common/
H A Delfwrap.c141 * i. its basename, prefixed with a "dot", to the .shstrtab.
166 * Create section descriptors for .symtab, .strtab, and .shstrtab.
192 * i. its section name to the .shstrtab.
222 char *strtab, *strtabent, *shstrtab, *shstrtabent; local
420 shstrtab = (char *)outsec->os_data->d_buf;
429 * Update the ELF header with the .shstrtab index.
439 shstrtabent = shstrtab;
484 outsec->os_shdr->sh_name = (shstrtabent - shstrtab);
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dload_elf.c784 char *shstrtab = NULL; local
809 /* Load shstrtab. */
810 shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset,
812 if (shstrtab == NULL) {
814 "load_modmetadata: unable to load shstrtab\n");
822 if (strcmp(&shstrtab[shdr[i].sh_name],
826 if ((strcmp(&shstrtab[shdr[i].sh_name], ".data") == 0) ||
827 (strcmp(&shstrtab[shdr[i].sh_name], ".rodata") == 0)) {
881 if (shstrtab != NULL)
882 free(shstrtab);
[all...]
H A Dload_elf_obj.c429 vm_offset_t shstrtab; local
434 shstrtab = shdr[ef->shstrindex].sh_addr;
441 p = strdupout(shstrtab + shdr[i].sh_name);
/illumos-gate/usr/src/uts/common/krtld/
H A Dkobj.c2628 char *shstrtab, *ctfdata; local
2646 shstrtab = kobj_alloc(shstrlen, KM_WAIT|KM_TMP);
2648 if (kobj_read_file(file, shstrtab, shstrlen, shp->sh_offset) < 0) {
2653 kobj_free(shstrtab, shstrlen);
2661 strcmp(shstrtab + shp->sh_name, ".SUNW_ctf") == 0) {
2669 kobj_free(shstrtab, shstrlen);
2679 kobj_free(shstrtab, shstrlen);
2692 crypto_es_hash(struct module *mp, char *hash, char *shstrtab) argument
2710 if (strcmp(shstrtab + shp->sh_name, ".bss") == 0)
2716 " %s data size=%d\n", shstrtab
2735 char *shstrtab, *sigdata = NULL; local
[all...]
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c50 * .shstrtab Section header string table
123 * The .shstrtab section is constructed when the module is first loaded.
143 SECT_SHSTRTAB(".shstrtab",
213 int i, shstrtab, strtab, symtab; local
225 if (strcmp(sect->sect_name, ".shstrtab") == 0)
226 shstrtab = i;
234 sect = &data_sections[shstrtab];
648 ".shstrtab") == 0)
/illumos-gate/usr/src/uts/common/exec/elf/
H A Delf.c103 ".shstrtab"
106 typedef struct shstrtab { struct
1585 shstrtab_t shstrtab; local
1590 shstrtab_init(&shstrtab);
1680 v[i].sh_name = shstrtab_ndx(&shstrtab,
1752 &shstrtab, STR_DYNSYM);
1754 &shstrtab, STR_DYNSTR);
1757 &shstrtab, STR_SYMTAB);
1759 &shstrtab, STR_STRTAB);
1828 v[i].sh_name = shstrtab_ndx(&shstrtab, STR_SHSTRTA
[all...]
/illumos-gate/usr/src/lib/libproc/common/
H A DPcore.c2117 char *shstrtab = NULL; local
2170 * Read the .shstrtab section from the core file, terminating it with
2176 if ((shstrtab = malloc(shstrtabsz + 1)) == NULL) {
2177 dprintf("failed to allocate %lu bytes for shstrtab\n",
2182 if (pread64(efp->e_fd, shstrtab, shstrtabsz,
2189 shstrtab[shstrtabsz] = '\0';
2197 name = shstrtab + shp->sh_name;
2247 free(shstrtab);
H A DPgcore.c71 ".shstrtab"
74 typedef struct shstrtab { struct
976 * Preemptively stick the name of the shstrtab in the string table.
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/
H A Dstatic_prof.c1135 int shstrtab,
1145 if ((scn_fd = elf_getscn(e_file, shstrtab)) == NULL)
1134 get_scnfd(Elf * e_file, int shstrtab, int SCN_TYPE) argument
/illumos-gate/usr/src/cmd/sgs/nm/common/
H A Dnm.c509 get_scnfd(Elf * e_file, int shstrtab, int SCN_TYPE) argument
514 if ((fd_scn = elf_getscn(e_file, shstrtab)) == NULL) {
/illumos-gate/usr/src/cmd/sgs/libld/common/
H A Dupdate.c212 Str_tbl *shstrtab; local
326 shstrtab = ofl->ofl_shdrsttab;
433 * Generate the .shstrtab for this section.
435 (void) st_setstring(shstrtab, osp->os_name, &stoff);
4135 * Update the .shstrtab, .strtab and .dynstr sections.

Completed in 2538 milliseconds