/openbsd/usr.bin/gprof/ |
H A D | elf.c | 58 const char *strtab; in getnfile() local 90 strtab = (const char *)(base + sh_strtab->sh_offset); in getnfile() 95 if (wantsym(&symtab[i], strtab)) in getnfile() 100 printf("[getnfile] symtab at %p, strtab at %p\n", symtab, strtab); in getnfile() 114 if (wantsym(sym, strtab)) { in getnfile() 116 npe->name = strtab + sym->st_name; in getnfile() 132 wantsym(const Elf_Sym *sym, const char *strtab) in wantsym() argument 143 (uflag && strchr(strtab + sym->st_name, '.') != NULL)) in wantsym() 150 const char *c = strtab + sym->st_name; in wantsym()
|
/openbsd/lib/libc/gen/ |
H A D | nlist.c | 90 caddr_t strtab; in __fdnlist() local 194 if ((strtab = malloc(symstrsize)) == NULL) in __fdnlist() 196 if (pread(fd, strtab, symstrsize, symstroff) != symstrsize) { in __fdnlist() 197 free(strtab); in __fdnlist() 201 strtab = mmap(NULL, symstrsize, PROT_READ, MAP_SHARED|MAP_FILE, in __fdnlist() 203 if (strtab == MAP_FAILED) in __fdnlist() 237 strcmp(&strtab[soff], sym) != 0) && in __fdnlist() 239 strcmp(&strtab[soff], sym + 1) != 0)) in __fdnlist() 283 free(strtab); in __fdnlist() 285 munmap(strtab, symstrsize); in __fdnlist()
|
/openbsd/usr.sbin/installboot/ |
H A D | i386_nlist.c | 97 caddr_t strtab; in __elf_fdnlist() local 202 if ((strtab = malloc(symstrsize)) == NULL) in __elf_fdnlist() 204 if (pread(fd, strtab, symstrsize, (off_t)symstroff) != in __elf_fdnlist() 206 free(strtab); in __elf_fdnlist() 210 strtab = mmap(NULL, (size_t)symstrsize, PROT_READ, in __elf_fdnlist() 212 if (strtab == MAP_FAILED) in __elf_fdnlist() 246 strcmp(&strtab[soff], sym) != 0) && in __elf_fdnlist() 248 strcmp(&strtab[soff], sym + 1) != 0)) in __elf_fdnlist() 292 free(strtab); in __elf_fdnlist() 294 munmap(strtab, symstrsize); in __elf_fdnlist()
|
/openbsd/sys/ddb/ |
H A D | db_elf.c | 239 char *strtab; in db_elf_sym_lookup() local 247 strtab = db_elf_find_strtab(stab); in db_elf_sym_lookup() 248 if (strtab == NULL) in db_elf_sym_lookup() 335 char *strtab; in db_symbol_values() local 346 strtab = db_elf_find_strtab(stab); in db_symbol_values() 347 if (strtab == NULL) in db_symbol_values() 350 *namep = strtab + symp->st_name; in db_symbol_values() 393 char *strtab; in db_elf_sym_forall() local 403 strtab = db_elf_find_strtab(stab); in db_elf_sym_forall() 404 if (strtab == NULL) in db_elf_sym_forall() [all …]
|
/openbsd/gnu/llvm/lldb/source/Plugins/SymbolFile/DWARF/ |
H A D | ManualDWARFIndex.cpp | 532 StringTableReader strtab; in Decode() local 534 if (!strtab.Decode(data, offset_ptr)) in Decode() 572 if (!globals.Decode(data, offset_ptr, strtab)) in Decode() 576 if (!types.Decode(data, offset_ptr, strtab)) in Decode() 594 ConstStringTable strtab; in Encode() local 608 function_basenames.Encode(index_encoder, strtab); in Encode() 616 function_methods.Encode(index_encoder, strtab); in Encode() 628 globals.Encode(index_encoder, strtab); in Encode() 632 types.Encode(index_encoder, strtab); in Encode() 636 namespaces.Encode(index_encoder, strtab); in Encode() [all …]
|
H A D | NameToDIE.cpp | 98 const StringTableReader &strtab) { in Decode() argument 106 llvm::StringRef str(strtab.Get(data.GetU32(offset_ptr))); in Decode() 128 void NameToDIE::Encode(DataEncoder &encoder, ConstStringTable &strtab) const { in Encode() 134 encoder.AppendU32(strtab.Add(entry.cstring)); in Encode()
|
H A D | NameToDIE.h | 66 const lldb_private::StringTableReader &strtab); 80 lldb_private::ConstStringTable &strtab) const;
|
/openbsd/usr.sbin/kvm_mkdb/ |
H A D | nlist.c | 63 caddr_t strtab = NULL; in __elf_knlist() local 140 strtab = mmap(NULL, (size_t)symstrsize, PROT_READ, in __elf_knlist() 142 if (strtab == MAP_FAILED) { in __elf_knlist() 144 if ((strtab = malloc(symstrsize)) == NULL) { in __elf_knlist() 154 if (fread(strtab, symstrsize, 1, fp) != 1) { in __elf_knlist() 218 strlcpy(buf + 1, strtab + sbuf.st_name, sizeof buf - 1); in __elf_knlist() 291 if (strtab) { in __elf_knlist() 293 free(strtab); in __elf_knlist() 295 munmap(strtab, symstrsize); in __elf_knlist()
|
/openbsd/gnu/llvm/lldb/source/Core/ |
H A D | Mangled.cpp | 425 const StringTableReader &strtab) { in Decode() argument 434 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 438 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 442 m_mangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 443 m_demangled.SetString(strtab.Get(data.GetU32(offset_ptr))); in Decode() 474 void Mangled::Encode(DataEncoder &file, ConstStringTable &strtab) const { in Encode() 494 file.AppendU32(strtab.Add(m_demangled)); in Encode() 497 file.AppendU32(strtab.Add(m_mangled)); in Encode() 500 file.AppendU32(strtab.Add(m_mangled)); in Encode() 501 file.AppendU32(strtab.Add(m_demangled)); in Encode()
|
/openbsd/libexec/ld.so/ldconfig/ |
H A D | ldconfig.c | 304 char *strtab, *tmpfilenam; in buildhints() local 336 strtab = xmalloc(strtab_sz); in buildhints() 364 strlcpy(strtab + str_index, shp->name, strtab_sz - str_index); in buildhints() 377 strlcpy(strtab + str_index, dir_list, strtab_sz - str_index); in buildhints() 404 if (write(fd, strtab, strtab_sz) != strtab_sz) { in buildhints() 419 free(strtab); in buildhints() 431 char *strtab; in readhints() local 474 strtab = (char *)(addr + hdr->hh_strtab); in readhints() 476 dir_list = xstrdup(strtab + hdr->hh_dirlist); in readhints() 496 shp->name = xstrdup(strtab + bp->hi_namex); in readhints() [all …]
|
/openbsd/gnu/llvm/compiler-rt/lib/cfi/ |
H A D | cfi.cpp | 222 uptr strtab = 0, symtab = 0, strsz = 0; in find_cfi_check_in_dso() local 227 strtab = p->d_un.d_ptr; in find_cfi_check_in_dso() 232 if (symtab > strtab) { in find_cfi_check_in_dso() 233 VReport(1, "Can not handle: symtab > strtab (%zx > %zx)\n", symtab, strtab); in find_cfi_check_in_dso() 245 if (strtab >= beg && strtab + strsz < end && symtab >= beg && in find_cfi_check_in_dso() 253 VReport(1, "Can not handle: symtab %zx, strtab %zx\n", symtab, strtab); in find_cfi_check_in_dso() 257 for (const Elf_Sym *p = (const Elf_Sym *)symtab; (Elf_Addr)p < strtab; in find_cfi_check_in_dso() 263 char *name = (char*)(strtab + p->st_name); in find_cfi_check_in_dso()
|
/openbsd/usr.sbin/crunchgen/ |
H A D | elf_hide.c | 239 char *strtab; variable 247 strtab = NULL; in load_strtab() 261 strtab = (char *) (pexe + pshdr->sh_offset); in load_strtab() 278 pstr = strtab; in dump_strtab() 282 index = pnstr - strtab; in dump_strtab() 292 if (strtab != NULL) in fprint_str() 293 fprintf(channel, "\"%s\"", &(strtab[indx])); in fprint_str() 299 return &(strtab[indx]); in get_str()
|
/openbsd/usr.bin/nm/ |
H A D | nm.c | 367 char *strtab, *p; in show_symtab() local 387 strtab = (char *)(symtab + num + 1); in show_symtab() 388 for (ps = symtab + 1; num--; ps++, strtab += strlen(strtab) + 1) { in show_symtab() 408 printf("%s in %s\n", strtab, p); in show_symtab() 428 char *strtab, *p; in show_symdef() local 448 strtab = symdef + sizeof(u_long) + size + sizeof(u_long); in show_symdef() 471 printf("%s in %s\n", strtab + prn->ran_un.ran_strx, p); in show_symdef()
|
/openbsd/usr.bin/ctfconv/ |
H A D | ctfconv.c | 218 const char *strtab; variable 236 &strtab, &strtabsz) == -1) in elf_convert() 315 if (strtab == NULL || stroff >= strtabsz) in find_symb() 318 sname = xstrdup(strtab + stroff); in find_symb() 330 strlcpy(tmp->it_name, (strtab + stroff), ITNAME_MAX); in find_symb()
|
H A D | elf.c | 115 size_t shstabsz, const Elf_Sym **symtab, size_t *nsymb, const char **strtab, in elf_getsymtab() argument 169 if (strtab != NULL) in elf_getsymtab() 170 *strtab = p + sh->sh_offset; in elf_getsymtab()
|
/openbsd/gnu/llvm/lldb/include/lldb/Core/ |
H A D | Mangled.h | 276 const StringTableReader &strtab); 289 void Encode(DataEncoder &encoder, ConstStringTable &strtab) const;
|
/openbsd/gnu/usr.bin/binutils-2.17/binutils/ |
H A D | readelf.c | 1072 char *strtab, in dump_relocations() argument 4636 char *strtab; in process_section_groups() local 4693 strtab = NULL; in process_section_groups() 4739 free (strtab); in process_section_groups() 4750 if (strtab) in process_section_groups() 4759 if (strtab) in process_section_groups() 4857 if (strtab) in process_section_groups() 5010 if (strtab) in process_relocs() 5424 if (aux.strtab) in ia64_process_unwind() 6974 free (strtab); in process_version_sections() [all …]
|
/openbsd/gnu/llvm/lldb/source/Symbol/ |
H A D | Symtab.cpp | 1199 encoder.AppendU32(strtab.Add(entry.cstring)); in EncodeCStrMap() 1205 const StringTableReader &strtab, in DecodeCStrMap() argument 1214 llvm::StringRef str(strtab.Get(data.GetU32(offset_ptr))); in DecodeCStrMap() 1255 ConstStringTable strtab; in Encode() local 1269 symbol.Encode(symtab_encoder, strtab); in Encode() 1282 EncodeCStrMap(symtab_encoder, strtab, pair.second); in Encode() 1288 strtab.Encode(encoder); in Encode() 1298 StringTableReader strtab; in Decode() local 1308 if (!strtab.Decode(data, offset_ptr)) in Decode() 1324 if (!m_symbols[i].Decode(data, offset_ptr, sections, strtab)) in Decode() [all …]
|
/openbsd/gnu/usr.bin/perl/ext/XS-APItest/t/ |
H A D | hash.t | 49 my $strtab = strtab(); 50 is (ref $strtab, 'HASH', "The shared string table quacks like a hash"); 53 $strtab->{$wibble}++; 59 XS::APItest::Hash::store($strtab, 'Boom!', 1) 68 delete $strtab->{DESTROY};
|
/openbsd/libexec/ld.so/mips64/ |
H A D | rtld_machine.c | 90 symn = object->dyn.strtab + sym->st_name; in _dl_md_reloc() 164 strt = object->dyn.strtab; in _dl_md_reloc_got() 250 symn = object->dyn.strtab + sym->st_name; in _dl_bind()
|
/openbsd/gnu/usr.bin/binutils-2.17/ld/ |
H A D | elf-hints-local.h | 33 u_int32_t strtab; /* Offset of string table in file. */ member
|
/openbsd/gnu/llvm/lldb/include/lldb/Symbol/ |
H A D | Symbol.h | 271 const SectionList *section_list, const StringTableReader &strtab); 284 void Encode(DataEncoder &encoder, ConstStringTable &strtab) const;
|
/openbsd/sys/dev/dt/ |
H A D | dt_prov_kprobe.c | 123 char *strtab, *name; in dt_prov_kprobe_init() local 143 strtab = db_elf_find_strtab(stab); in dt_prov_kprobe_init() 150 name = strtab + symp->st_name; in dt_prov_kprobe_init()
|
/openbsd/gnu/usr.bin/binutils/gdb/ |
H A D | ppc-linux-tdep.c | 232 CORE_ADDR strtab = 0; in ppc_linux_skip_trampoline_code() local 276 strtab = sect->addr; in ppc_linux_skip_trampoline_code() 280 if (plt_start == 0 || num_slots == -1 || symtab == 0 || strtab == 0) in ppc_linux_skip_trampoline_code() 319 if (target_read_memory (strtab + symidx, symname, sizeof (symname)) != 0) in ppc_linux_skip_trampoline_code()
|
/openbsd/libexec/ld.so/alpha/ |
H A D | rtld_machine.c | 103 symn = object->dyn.strtab + sym->st_name; in _dl_md_reloc() 192 symn = object->dyn.strtab + sym->st_name; in _dl_bind()
|