Home
last modified time | relevance | path

Searched refs:shstr (Results 1 – 6 of 6) sorted by relevance

/openbsd/sys/lib/libsa/
H A Dloadfile_elf.c207 char *shstr = ALLOC(shstrsz); in ELFNAME() local
210 FREE(shstr, shstrsz); in ELFNAME()
214 if (read(fd, shstr, shstrsz) != shstrsz) { in ELFNAME()
216 FREE(shstr, shstrsz); in ELFNAME()
235 !strcmp(shstr + shp[i].sh_name, ".debug_line") || in ELFNAME()
236 !strcmp(shstr + shp[i].sh_name, ELF_CTF)) { in ELFNAME()
243 FREE(shstr, shstrsz); in ELFNAME()
250 FREE(shstr, shstrsz); in ELFNAME()
269 FREE(shstr, shstrsz); in ELFNAME()
/openbsd/usr.bin/nm/
H A Delf.c309 elf2nlist(Elf_Sym *sym, Elf_Ehdr *eh, Elf_Shdr *shdr, char *shstr, in elf2nlist() argument
317 sn = shstr + shdr[sym->st_shndx].sh_name; in elf2nlist()
436 if (!strcmp(shstr + shdr[i].sh_name, strtab)) { in elf_symloadx()
450 if (!strcmp(shstr + shdr[i].sh_name, symtab)) { in elf_symloadx()
497 elf2nlist(&sbuf, eh, shdr, shstr, np); in elf_symloadx()
515 char *shstr; in elf_symload() local
523 if ((shstr = malloc(shstrsize)) == NULL) { in elf_symload()
530 free(shstr); in elf_symload()
534 if (fread(shstr, 1, shstrsize, fp) != shstrsize) { in elf_symload()
536 free(shstr); in elf_symload()
[all …]
/openbsd/usr.sbin/vmd/
H A Dloadfile_elf.c798 char *shstr = malloc(shstrsz); in elf64_exec() local
801 free(shstr); in elf64_exec()
806 free(shstr); in elf64_exec()
830 free(shstr); in elf64_exec()
836 free(shstr); in elf64_exec()
852 free(shstr); in elf64_exec()
1019 free(shstr); in elf32_exec()
1024 free(shstr); in elf32_exec()
1047 free(shstr); in elf32_exec()
1053 free(shstr); in elf32_exec()
[all …]
/openbsd/sys/arch/octeon/dev/
H A Doctboot.c100 char *shstr = NULL; in octboot_kexec() local
233 shstr = malloc(shstrsize, M_TEMP, M_NOWAIT); in octboot_kexec()
234 if (shstr == NULL) { in octboot_kexec()
238 error = octboot_read(kargs, shstr, shstrsize, in octboot_kexec()
247 strcmp(shstr + sh[i].sh_name, ELF_CTF) == 0 || in octboot_kexec()
248 strcmp(shstr + sh[i].sh_name, ".debug_line") == 0) { in octboot_kexec()
351 free(shstr, M_TEMP, shstrsize); in octboot_kexec()
/openbsd/sys/arch/sparc64/stand/ofwboot/
H A Delf64_exec.c201 char *shstr = alloc(shstrsz); in elf64_exec() local
206 if (read(fd, shstr, shstrsz) != shstrsz) { in elf64_exec()
216 && strcmp(shstr + shp->sh_name, ELF_CTF)) { in elf64_exec()
253 || !strcmp(shstr + shp->sh_name, ELF_CTF)) { in elf64_exec()
/openbsd/sys/arch/powerpc64/dev/
H A Dkexec.c101 char *shstr; in kexec_kexec() local
197 shstr = symaddr + shp[eh.e_shstrndx].sh_offset; in kexec_kexec()
201 strcmp(shstr + shp[i].sh_name, ".debug_line") == 0 || in kexec_kexec()
202 strcmp(shstr + shp[i].sh_name, ELF_CTF) == 0) in kexec_kexec()