shstrtab
char *shstrtab = NULL;
shstrtab = alloc_pread(ef.fd, shdr[ef.ehdr->e_shstrndx].sh_offset,
if (shstrtab == NULL) {
if (strcmp(&shstrtab[shdr[i].sh_name],
if ((strcmp(&shstrtab[shdr[i].sh_name], ".data") == 0) ||
(strcmp(&shstrtab[shdr[i].sh_name], ".rodata") == 0)) {
if (shstrtab != NULL)
free(shstrtab);
vm_offset_t shstrtab;
shstrtab = shdr[ef->shstrindex].sh_addr;
p = strdupout(shstrtab + shdr[i].sh_name);
int shstrtab,
if ((scn_fd = elf_getscn(e_file, shstrtab)) == NULL)
char *strtab, *strtabent, *shstrtab, *shstrtabent;
shstrtab = (char *)outsec->os_data->d_buf;
shstrtabent = shstrtab;
outsec->os_shdr->sh_name = (shstrtabent - shstrtab);
Str_tbl *shstrtab;
shstrtab = ofl->ofl_shdrsttab;
(void) st_setstring(shstrtab, osp->os_name, &stoff);
get_scnfd(Elf * e_file, int shstrtab, int SCN_TYPE)
if ((fd_scn = elf_getscn(e_file, shstrtab)) == NULL) {
char *shstrtab = NULL;
if ((shstrtab = malloc(shstrtabsz + 1)) == NULL) {
if (pread64(efp->e_fd, shstrtab, shstrtabsz,
shstrtab[shstrtabsz] = '\0';
name = shstrtab + shp->sh_name;
free(shstrtab);
htole32(offsetof(struct elfh, shstrtab)), /* sh_offset */
htole32(sizeof(elfhdr.shstrtab)), /* sh_size */
char shstrtab[28]; /* section header string table */
Shdr *v, uint_t idx, const uint_t remain, shstrtab_t *shstrtab,
if (!shstrtab_ndx(shstrtab, name, &v[idx].sh_name)) {
if (!shstrtab_ndx(shstrtab,
if (!shstrtab_ndx(shstrtab,
if (!shstrtab_ndx(shstrtab,
shstrtab_t shstrtab;
if (!shstrtab_init(&shstrtab))
&shstrtab, &count);
if (!shstrtab_ndx(&shstrtab, shstrtab_data[STR_SHSTRTAB],
v[idx].sh_size = shstrtab_size(&shstrtab);
shstrtab_dump(&shstrtab, ctx->ecc_buf);
shstrtab_fini(&shstrtab);
int i, shstrtab, strtab, symtab;
shstrtab = i;
sect = &data_sections[shstrtab];
char *shstrtab, *ctfdata;
shstrtab = kobj_alloc(shstrlen, KM_WAIT|KM_TMP);
if (kobj_read_file(file, shstrtab, shstrlen, shp->sh_offset) < 0) {
kobj_free(shstrtab, shstrlen);
strcmp(shstrtab + shp->sh_name, ".SUNW_ctf") == 0) {
kobj_free(shstrtab, shstrlen);
kobj_free(shstrtab, shstrlen);
crypto_es_hash(struct module *mp, char *hash, char *shstrtab)
if (strcmp(shstrtab + shp->sh_name, ".bss") == 0)
" %s data size=%lx\n", shstrtab + shp->sh_name,
char *shstrtab, *sigdata = NULL;
shstrtab = kobj_alloc(shstrlen, KM_WAIT|KM_TMP);
if (kobj_read_file(file, shstrtab, shstrlen, shp->sh_offset) < 0) {
kobj_free(shstrtab, shstrlen);
strcmp(shstrtab + shp->sh_name,
kobj_free(shstrtab, shstrlen);
kobj_free(shstrtab, shstrlen);
crypto_es_hash(mp, sigdata + shp->sh_size, shstrtab);
kobj_free(shstrtab, shstrlen);