/titanic_44/usr/src/cmd/sgs/dump/common/ |
H A D | dump.c | 283 print_rela(Elf *elf_file, SCNTAB *p_scns, Elf_Data *rdata, Elf_Data *sym_data, in print_rela() argument 298 if (gelf_getclass(elf_file) == ELFCLASS64) in print_rela() 304 rel_entsize = gelf_fsize(elf_file, ELF_T_RELA, 1, in print_rela() 309 no_syms = sym_size / gelf_fsize(elf_file, ELF_T_SYM, 1, EV_CURRENT); in print_rela() 325 sym_name = (char *)elf_strptr(elf_file, in print_rela() 388 print_rel(Elf *elf_file, SCNTAB *p_scns, Elf_Data *rdata, Elf_Data *sym_data, in print_rel() argument 403 if (gelf_getclass(elf_file) == ELFCLASS64) in print_rel() 409 rel_entsize = gelf_fsize(elf_file, ELF_T_REL, 1, in print_rel() 414 no_syms = sym_size / gelf_fsize(elf_file, ELF_T_SYM, 1, EV_CURRENT); in print_rel() 430 sym_name = (char *)elf_strptr(elf_file, in print_rel() [all …]
|
H A D | fcns.c | 84 dump_exec_header(Elf *elf_file, unsigned nseg, char *filename) in dump_exec_header() argument 93 if (gelf_getclass(elf_file) == ELFCLASS64) in dump_exec_header() 108 if ((gelf_getehdr(elf_file, &ehdr) == 0) || (ehdr.e_phnum == 0)) { in dump_exec_header() 114 if (gelf_getphdr(elf_file, counter, &p_phdr) == 0) { in dump_exec_header()
|
/titanic_44/usr/src/lib/libdtrace/common/ |
H A D | dt_link.c | 62 (lseek64(fd, (off64_t)elf_file.shdr[(index)].sh_offset, SEEK_SET) != \ 63 (off64_t)elf_file.shdr[(index)].sh_offset || \ 64 dt_write(dtp, fd, (data), elf_file.shdr[(index)].sh_size) != \ 65 elf_file.shdr[(index)].sh_size) 458 } elf_file; in dump_elf32() local 475 bzero(&elf_file, sizeof (elf_file)); in dump_elf32() 477 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0; in dump_elf32() 478 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1; in dump_elf32() 479 elf_file.ehdr.e_ident[EI_MAG2] = ELFMAG2; in dump_elf32() 480 elf_file.ehdr.e_ident[EI_MAG3] = ELFMAG3; in dump_elf32() [all …]
|
/titanic_44/usr/src/cmd/sgs/nm/common/ |
H A D | nm.c | 402 Elf *elf_file; in each_file() local 430 if ((elf_file = elf_begin(fd, cmd, (Elf *) 0)) == NULL) { in each_file() 437 file_type = elf_kind(elf_file); in each_file() 439 print_ar_files(fd, elf_file, filename); in each_file() 470 process(elf_file, filename); in each_file() 478 (void) elf_end(elf_file); in each_file() 488 process(Elf *elf_file, char *filename) in process() argument 492 if (gelf_getehdr(elf_file, &ehdr) == NULL) { in process() 499 get_symtab(elf_file, filename); in process() 534 get_symtab(Elf *elf_file, char *filename) in get_symtab() argument [all …]
|
/titanic_44/usr/src/uts/i86pc/dboot/ |
H A D | dboot_elfload.c | 40 static caddr_t elf_file = 0; variable 42 #define PGETBYTES(offset) ((void *)(elf_file + (offset))) 84 elf_file = (caddr_t)file_image; in dboot_elfload64()
|
/titanic_44/usr/src/cmd/abi/appcert/static_prof/ |
H A D | static_prof.c | 857 Elf * elf_file, in is_text_section() argument 865 Elf_Scn *scn = elf_getscn(elf_file, shndx); in is_text_section() 875 sym_name = elf_strptr(elf_file, in is_text_section() 903 Elf * elf_file, in scan_archive_symbols() argument 924 if (!is_text_section(symtab_entry->st_shndx, elf_file, ehdr)) in scan_archive_symbols() 1168 Elf * elf_file, in print_symtab() argument 1213 scn = elf_getscn(elf_file, shdr->sh_link); in print_symtab() 1237 elf_file, in print_symtab() 1259 Elf * elf_file, in get_symtab() argument 1276 scnfd = get_scnfd(elf_file, ehdr->e_shstrndx, SHT_STRTAB); in get_symtab() [all …]
|
/titanic_44/usr/src/lib/libproc/common/ |
H A D | Pcontrol.h | 190 typedef struct elf_file { /* convenience for managing ELF files */ struct
|