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

/freebsd-current/usr.sbin/btxld/
H A Delfh.h35 char shstrtab[28]; /* section header string table */ member in struct:elfh
H A Delfh.c92 htole32(offsetof(struct elfh, shstrtab)), /* sh_offset */
93 htole32(sizeof(elfhdr.shstrtab)), /* sh_size */
124 "\0.shstrtab\0.text\0.data" /* shstrtab */
/freebsd-current/sys/kern/
H A Dkern_ctf.c51 caddr_t shstrtab = NULL; local
158 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK);
161 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, shstrtab,
168 if (strcmp(".SUNW_ctf", shstrtab + shdr[i].sh_name) == 0)
297 if (shstrtab != NULL)
298 free(shstrtab, M_LINKER);
H A Dlink_elf_obj.c113 caddr_t shstrtab; /* Section name string table */ member in struct:elf_file
481 ef->shstrtab = (char *)shdr[shstrindex].sh_addr;
514 if (ef->shstrtab && shdr[i].sh_name != 0)
516 ef->shstrtab + shdr[i].sh_name;
944 ef->shstrtab = malloc(shdr[shstrindex].sh_size, M_LINKER,
946 error = vn_rdwr(UIO_READ, nd->ni_vp, ef->shstrtab,
1055 if (ef->shstrtab != NULL && shdr[i].sh_name != 0) {
1057 ef->shstrtab + shdr[i].sh_name;
1333 free(ef->shstrtab, M_LINKER);
/freebsd-current/usr.sbin/kldxref/
H A Def_obj.c87 caddr_t shstrtab; /* Section name string table */ member in struct:ef_file
368 &ef->shstrcnt, &ef->shstrtab) != 0) {
397 if (ef->shstrtab && shdr[i].sh_name != 0)
399 ef->shstrtab + shdr[i].sh_name;
464 if (ef->shstrtab != NULL)
465 free(ef->shstrtab);
/freebsd-current/contrib/elftoolchain/elfcopy/
H A Dbinary.c193 /* Create .shstrtab section */
195 ecp->shstrtab->off = 0;
207 /* Insert .shstrtab after .data section. */
208 if ((ecp->shstrtab->os = elf_newscn(ecp->eout)) == NULL)
211 insert_to_sec_list(ecp, ecp->shstrtab, 1);
H A Dsections.c66 if (strcmp(name, ".shstrtab") == 0)
185 !strcmp(s->name, ".shstrtab"))
362 /* Create internal .shstrtab section. */
405 if (strcmp(name, ".shstrtab") != 0) {
436 /* Assuming .shstrtab is "unloadable". */
437 s = ecp->shstrtab;
444 /* Add new sections before .shstrtab if we have one. */
445 if (!strcmp(name, ".shstrtab")) {
449 * smaller index than .shstrtab section.
489 strcmp(name, ".shstrtab") !
1457 Elf_Scn *shstrtab; local
[all...]
H A Dascii.c239 /* Create .shstrtab section */
241 ecp->shstrtab->off = 0;
312 /* Insert .shstrtab after data sections. */
313 if ((ecp->shstrtab->os = elf_newscn(ecp->eout)) == NULL)
316 insert_to_sec_list(ecp, ecp->shstrtab, 1);
508 /* Create .shstrtab section */
510 ecp->shstrtab->off = 0;
585 /* Insert .shstrtab after data sections. */
586 if ((ecp->shstrtab->os = elf_newscn(ecp->eout)) == NULL)
589 insert_to_sec_list(ecp, ecp->shstrtab,
[all...]
H A Delfcopy.h242 struct section *shstrtab; /* .shstrtab section. */ member in struct:elfcopy
H A Dmain.c264 * | .shstrtab | <- section name string table
487 elftc_string_table_destroy(ecp->shstrtab->strtab);
505 ecp->shstrtab = NULL;
/freebsd-current/usr.bin/elfdump/
H A Delfdump.c448 static char *shstrtab; variable
621 shstrtab = (char *)e + offset;
626 shstrtab = NULL;
631 if (strcmp(shstrtab + name, ".strtab") == 0)
633 if (strcmp(shstrtab + name, ".dynstr") == 0)
682 strcmp(shstrtab + name, ".note.tag") == 0)
692 strcmp(shstrtab + name, ".got") == 0)
851 fprintf(out, "\tsh_name: %s\n", shstrtab + name);
885 fprintf(out, "\nsymbol table (%s):\n", shstrtab + name);
983 fprintf(out, "\nrelocation with addend (%s):\n", shstrtab
[all...]
/freebsd-current/stand/common/
H A Dload_elf.c997 char *shstrtab = NULL; local
1022 /* Load shstrtab. */
1023 shstrtab = alloc_pread(VECTX_HANDLE(&ef), shdr[ef.ehdr->e_shstrndx].sh_offset,
1025 if (shstrtab == NULL) {
1027 "load_modmetadata: unable to load shstrtab\n");
1035 if (strcmp(&shstrtab[shdr[i].sh_name],
1039 if ((strcmp(&shstrtab[shdr[i].sh_name], ".data") == 0) ||
1040 (strcmp(&shstrtab[shdr[i].sh_name], ".rodata") == 0)) {
1094 if (shstrtab != NULL)
1095 free(shstrtab);
[all...]
H A Dload_elf_obj.c475 vm_offset_t shstrtab; local
480 shstrtab = shdr[ef->shstrindex].sh_addr;
487 p = strdupout(shstrtab + shdr[i].sh_name);
/freebsd-current/contrib/llvm-project/lld/ELF/
H A DInputFiles.cpp577 StringRef shstrtab = CHECK(obj.getSectionStringTable(objSections), this); local
583 StringRef name = check(obj.getSectionName(sec, shstrtab));
606 StringRef name = check(obj.getSectionName(sec, shstrtab));
657 i, sec, check(obj.getSectionName(sec, shstrtab)));
748 StringRef shstrtab = CHECK(obj.getSectionStringTable(objSections), this); local
809 createInputSection(i, sec, check(obj.getSectionName(sec, shstrtab)));
860 *this, sec, check(obj.getSectionName(sec, shstrtab)));
/freebsd-current/contrib/llvm-project/lld/ELF/Arch/
H A DARM.cpp1366 StringTableSection *shstrtab = local
1367 make<StringTableSection>(".shstrtab", /*dynamic=*/false);
1375 osIsPairs.emplace_back(make<OutputSection>(shstrtab->name, 0, 0), shstrtab);
1395 osec->shName = shstrtab->addString(osec->name);
1439 eHdr->e_shstrndx = shstrtab->getParent()->sectionIndex;

Completed in 265 milliseconds