/illumos-gate/usr/src/tools/btxld/ |
H A D | elfh.h | 41 char shstrtab[28]; /* section header string table */ member in struct:elfh
|
H A D | elfh.c | 102 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 D | elfwrap.c | 141 * 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 D | load_elf.c | 784 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 D | load_elf_obj.c | 429 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 D | kobj.c | 2628 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 D | objfs_data.c | 50 * .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 D | elf.c | 103 ".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 D | Pcore.c | 2117 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 D | Pgcore.c | 71 ".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 D | static_prof.c | 1135 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 D | nm.c | 509 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 D | update.c | 212 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.
|