Searched refs:elf_file (Results 1 - 11 of 11) sorted by relevance

/illumos-gate/usr/src/cmd/sgs/dump/common/
H A Ddump.c283 print_rela(Elf *elf_file, SCNTAB *p_scns, Elf_Data *rdata, Elf_Data *sym_data, argument
298 if (gelf_getclass(elf_file) == ELFCLASS64)
304 rel_entsize = gelf_fsize(elf_file, ELF_T_RELA, 1,
309 no_syms = sym_size / gelf_fsize(elf_file, ELF_T_SYM, 1, EV_CURRENT);
325 sym_name = (char *)elf_strptr(elf_file,
388 print_rel(Elf *elf_file, SCNTAB *p_scns, Elf_Data *rdata, Elf_Data *sym_data, argument
403 if (gelf_getclass(elf_file) == ELFCLASS64)
409 rel_entsize = gelf_fsize(elf_file, ELF_T_REL, 1,
414 no_syms = sym_size / gelf_fsize(elf_file, ELF_T_SYM, 1, EV_CURRENT);
430 sym_name = (char *)elf_strptr(elf_file,
515 print_symtab(Elf *elf_file, SCNTAB *p_symtab, Elf_Data *sym_data, long range, int index) argument
646 print_shdr(Elf *elf_file, SCNTAB *s, int num_scns, int index) argument
761 dump_reloc_table(Elf *elf_file, GElf_Ehdr *p_ehdr, SCNTAB *p_scns, int num_scns, char *filename) argument
974 dump_symbol_table(Elf *elf_file, SCNTAB *p_symtab, char *filename) argument
1071 dump_dynamic(Elf *elf_file, SCNTAB *p_scns, int num_scns, char *filename) argument
1329 dump_elf_header(Elf *elf_file, char *filename, GElf_Ehdr * elf_head_p) argument
1467 print_section(Elf *elf_file, GElf_Ehdr *p_ehdr, SCNTAB *p, int num_scns, char *filename) argument
1534 dump_section(Elf *elf_file, GElf_Ehdr *p_ehdr, SCNTAB *s, int num_scns, char *filename) argument
1585 dump_shdr(Elf *elf_file, SCNTAB *s, int num_scns, char *filename) argument
1653 dump_section_table(Elf *elf_file, GElf_Ehdr *elf_head_p, char *filename) argument
1743 load_arstring_table(struct stab_list_s *STabList, int fd, Elf *elf_file, Elf_Arhdr *p_ar, char *filename) argument
1791 dump_ar_hdr(int fd, Elf *elf_file, char *filename) argument
1878 dump_ar_files(int fd, Elf *elf_file, char *filename) argument
1945 Elf *elf_file; local
[all...]
H A Dfcns.c84 dump_exec_header(Elf *elf_file, unsigned nseg, char *filename) argument
93 if (gelf_getclass(elf_file) == ELFCLASS64)
108 if ((gelf_getehdr(elf_file, &ehdr) == 0) || (ehdr.e_phnum == 0)) {
114 if (gelf_getphdr(elf_file, counter, &p_phdr) == 0) {
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_link.c62 (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; local
475 bzero(&elf_file, sizeof (elf_file));
477 elf_file.ehdr.e_ident[EI_MAG0] = ELFMAG0;
478 elf_file.ehdr.e_ident[EI_MAG1] = ELFMAG1;
479 elf_file
595 } elf_file; local
[all...]
/illumos-gate/usr/src/cmd/sgs/nm/common/
H A Dnm.c402 Elf *elf_file; local
430 if ((elf_file = elf_begin(fd, cmd, (Elf *) 0)) == NULL) {
437 file_type = elf_kind(elf_file);
439 print_ar_files(fd, elf_file, filename);
470 process(elf_file, filename);
478 (void) elf_end(elf_file);
488 process(Elf *elf_file, char *filename) argument
492 if (gelf_getehdr(elf_file, &ehdr) == NULL) {
499 get_symtab(elf_file, filename);
534 get_symtab(Elf *elf_file, cha argument
595 print_ar_files(int fd, Elf * elf_file, char *filename) argument
668 print_symtab(Elf *elf_file, unsigned int shstrndx, Elf_Scn *p_sd, GElf_Shdr *shdr, char *filename) argument
762 is_bss_section(unsigned int shndx, Elf * elf_file, unsigned int shstrndx) argument
1046 print_brief_sym_type(Elf *elf_file, unsigned int shstrndx, SYM *sym_data) argument
1097 print_with_pflag( int ndigits, Elf *elf_file, unsigned int shstrndx, SYM *sym_data, char *filename ) argument
1151 print_with_Pflag( int ndigits, Elf *elf_file, unsigned int shstrndx, SYM *sym_data ) argument
1203 print_with_otherflags( int ndigits, Elf *elf_file, unsigned int shstrndx, SYM *sym_data, char *filename ) argument
[all...]
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_elfload.c40 static caddr_t elf_file = 0; variable
42 #define PGETBYTES(offset) ((void *)(elf_file + (offset)))
84 elf_file = (caddr_t)file_image;
/illumos-gate/usr/src/cmd/abi/appcert/static_prof/
H A Dstatic_prof.c850 * elf_file - ELF descriptor of the object file under test
857 Elf * elf_file,
865 Elf_Scn *scn = elf_getscn(elf_file, shndx);
875 sym_name = elf_strptr(elf_file,
903 Elf * elf_file,
924 if (!is_text_section(symtab_entry->st_shndx, elf_file, ehdr))
1168 Elf * elf_file,
1213 scn = elf_getscn(elf_file, shdr->sh_link);
1237 elf_file,
1259 Elf * elf_file,
856 is_text_section(int shndx, Elf * elf_file, Elf64_Ehdr * ehdr) argument
895 scan_archive_symbols(obj_list * c, Elf64_Sym * syms, int symn, char *buf, Elf * elf_file, Elf64_Ehdr * ehdr) argument
1167 print_symtab(obj_list * com, Elf * elf_file, Elf64_Ehdr * ehdr, Elf64_Shdr * shdr, Elf_Scn * p_sd, char *filename) argument
1258 get_symtab(obj_list * c, Elf * elf_file, Elf64_Ehdr * ehdr, char *filename) argument
1324 process(obj_list * c, Elf * elf_file, char *filename) argument
[all...]
/illumos-gate/usr/src/boot/sys/boot/common/
H A Dbootstrap.h246 struct elf_file;
247 typedef Elf_Addr (symaddr_fn)(struct elf_file *ef, Elf_Size symidx);
252 int __elfN(reloc)(struct elf_file *ef, symaddr_fn *symaddr,
H A Dload_elf_obj.c54 typedef struct elf_file { struct
73 static Elf_Addr __elfN(obj_symaddr)(struct elf_file *ef, Elf_Size symidx);
88 struct elf_file ef;
94 bzero(&ef, sizeof(struct elf_file));
520 __elfN(obj_symaddr)(struct elf_file *ef, Elf_Size symidx)
H A Dreloc_elf.c52 __elfN(reloc)(struct elf_file *ef, symaddr_fn *symaddr, const void *reldata,
H A Dload_elf.c53 typedef struct elf_file { struct
160 struct elf_file ef;
165 bzero(&ef, sizeof(struct elf_file));
780 struct elf_file ef;
788 bzero(&ef, sizeof(struct elf_file));
1086 __elfN(symaddr)(struct elf_file *ef __unused, Elf_Size symidx __unused)
/illumos-gate/usr/src/lib/libproc/common/
H A DPcontrol.h192 typedef struct elf_file { /* convenience for managing ELF files */ struct

Completed in 1234 milliseconds