| /freebsd-14-stable/sys/kern/ |
| HD | kern_ctf.c | 47 caddr_t shstrtab = NULL; in link_elf_ctf_get() local 148 shstrtab = malloc(shdr[hdr->e_shstrndx].sh_size, M_LINKER, M_WAITOK); in link_elf_ctf_get() 151 if ((error = vn_rdwr(UIO_READ, nd.ni_vp, shstrtab, in link_elf_ctf_get() 158 if (strcmp(".SUNW_ctf", shstrtab + shdr[i].sh_name) == 0) in link_elf_ctf_get() 279 if (shstrtab != NULL) in link_elf_ctf_get() 280 free(shstrtab, M_LINKER); in link_elf_ctf_get()
|
| HD | link_elf_obj.c | 114 caddr_t shstrtab; /* Section name string table */ member 478 ef->shstrtab = (char *)shdr[shstrindex].sh_addr; in link_elf_link_preload() 511 if (ef->shstrtab && shdr[i].sh_name != 0) in link_elf_link_preload() 513 ef->shstrtab + shdr[i].sh_name; in link_elf_link_preload() 940 ef->shstrtab = malloc(shdr[shstrindex].sh_size, M_LINKER, in link_elf_load_file() 942 error = vn_rdwr(UIO_READ, nd->ni_vp, ef->shstrtab, in link_elf_load_file() 1051 if (ef->shstrtab != NULL && shdr[i].sh_name != 0) { in link_elf_load_file() 1053 ef->shstrtab + shdr[i].sh_name; in link_elf_load_file() 1330 free(ef->shstrtab, M_LINKER); in link_elf_unload_file()
|
| /freebsd-14-stable/usr.sbin/kldxref/ |
| HD | ef_obj.c | 87 caddr_t shstrtab; /* Section name string table */ member 368 &ef->shstrcnt, &ef->shstrtab) != 0) { in ef_obj_open() 397 if (ef->shstrtab && shdr[i].sh_name != 0) in ef_obj_open() 399 ef->shstrtab + shdr[i].sh_name; in ef_obj_open() 464 if (ef->shstrtab != NULL) in ef_obj_close() 465 free(ef->shstrtab); in ef_obj_close()
|
| /freebsd-14-stable/usr.sbin/btxld/ |
| HD | elfh.c | 92 htole32(offsetof(struct elfh, shstrtab)), /* sh_offset */ 93 htole32(sizeof(elfhdr.shstrtab)), /* sh_size */
|
| HD | elfh.h | 35 char shstrtab[28]; /* section header string table */ member
|
| /freebsd-14-stable/usr.bin/elfdump/ |
| HD | elfdump.c | 449 static char *shstrtab; variable 622 shstrtab = (char *)e + offset; in main() 627 shstrtab = NULL; in main() 632 if (strcmp(shstrtab + name, ".strtab") == 0) in main() 634 if (strcmp(shstrtab + name, ".dynstr") == 0) in main() 683 strcmp(shstrtab + name, ".note.tag") == 0) in main() 693 strcmp(shstrtab + name, ".got") == 0) in main() 852 fprintf(out, "\tsh_name: %s\n", shstrtab + name); in elf_print_shdr() 886 fprintf(out, "\nsymbol table (%s):\n", shstrtab + name); in elf_print_symtab() 984 fprintf(out, "\nrelocation with addend (%s):\n", shstrtab + name); in elf_print_rela() [all …]
|
| /freebsd-14-stable/contrib/elftoolchain/elfcopy/ |
| HD | binary.c | 195 ecp->shstrtab->off = 0; in create_elf_from_binary() 208 if ((ecp->shstrtab->os = elf_newscn(ecp->eout)) == NULL) in create_elf_from_binary() 211 insert_to_sec_list(ecp, ecp->shstrtab, 1); in create_elf_from_binary()
|
| HD | sections.c | 437 s = ecp->shstrtab; in create_scn() 1395 if (elftc_string_table_insert(ecp->shstrtab->strtab, name) == 0) in add_to_shstrtab() 1418 osh.sh_name = elftc_string_table_lookup(ecp->shstrtab->strtab, in update_shdr() 1457 Elf_Scn *shstrtab; in init_shstrtab() local 1463 shstrtab = elf_getscn(ecp->ein, indx); in init_shstrtab() 1464 if (shstrtab == NULL) in init_shstrtab() 1467 if (gelf_getshdr(shstrtab, &shdr) != &shdr) in init_shstrtab() 1477 if ((ecp->shstrtab = calloc(1, sizeof(*ecp->shstrtab))) == NULL) in init_shstrtab() 1479 s = ecp->shstrtab; in init_shstrtab() 1504 s = ecp->shstrtab; in set_shstrtab()
|
| HD | ascii.c | 241 ecp->shstrtab->off = 0; in create_elf_from_srec() 313 if ((ecp->shstrtab->os = elf_newscn(ecp->eout)) == NULL) in create_elf_from_srec() 316 insert_to_sec_list(ecp, ecp->shstrtab, 1); in create_elf_from_srec() 510 ecp->shstrtab->off = 0; in create_elf_from_ihex() 586 if ((ecp->shstrtab->os = elf_newscn(ecp->eout)) == NULL) in create_elf_from_ihex() 589 insert_to_sec_list(ecp, ecp->shstrtab, 1); in create_elf_from_ihex()
|
| HD | elfcopy.h | 242 struct section *shstrtab; /* .shstrtab section. */ member
|
| HD | main.c | 487 elftc_string_table_destroy(ecp->shstrtab->strtab); in free_elf() 505 ecp->shstrtab = NULL; in free_elf()
|
| /freebsd-14-stable/stand/common/ |
| HD | load_elf.c | 997 char *shstrtab = NULL; local 1023 shstrtab = alloc_pread(VECTX_HANDLE(&ef), shdr[ef.ehdr->e_shstrndx].sh_offset, 1025 if (shstrtab == NULL) { 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);
|
| HD | load_elf_obj.c | 475 vm_offset_t shstrtab; in __elfN() local 480 shstrtab = shdr[ef->shstrindex].sh_addr; in __elfN() 487 p = strdupout(shstrtab + shdr[i].sh_name); in __elfN()
|
| /freebsd-14-stable/contrib/llvm-project/lld/ELF/ |
| HD | InputFiles.cpp | 600 StringRef shstrtab = CHECK(obj.getSectionStringTable(objSections), this); in parse() local 606 StringRef name = check(obj.getSectionName(sec, shstrtab)); in parse() 629 StringRef name = check(obj.getSectionName(sec, shstrtab)); in parse() 680 i, sec, check(obj.getSectionName(sec, shstrtab))); in parse() 780 StringRef shstrtab = CHECK(obj.getSectionStringTable(objSections), this); in initializeSections() local 845 createInputSection(i, sec, check(obj.getSectionName(sec, shstrtab))); in initializeSections() 859 createInputSection(i, sec, check(obj.getSectionName(sec, shstrtab))); in initializeSections() 917 *this, sec, check(obj.getSectionName(sec, shstrtab))); in initializeSections()
|
| /freebsd-14-stable/contrib/llvm-project/lld/ELF/Arch/ |
| HD | ARM.cpp | 1443 StringTableSection *shstrtab = in writeARMCmseImportLib() local 1452 osIsPairs.emplace_back(make<OutputSection>(shstrtab->name, 0, 0), shstrtab); in writeARMCmseImportLib() 1472 osec->shName = shstrtab->addString(osec->name); in writeARMCmseImportLib() 1516 eHdr->e_shstrndx = shstrtab->getParent()->sectionIndex; in writeARMCmseImportLib()
|