/illumos-gate/usr/src/head/ |
H A D | libelf.h | 115 typedef struct Elf Elf; typedef 159 Elf *elf_begin(int, Elf_Cmd, Elf *); 160 int elf_cntl(Elf *, Elf_Cmd); 161 int elf_end(Elf *); 172 Elf_Arhdr *elf_getarhdr(Elf *); 174 off_t elf_getbase(Elf *); 189 long elf32_checksum(Elf *); 190 Elf_Kind elf_kind(Elf *); 196 Elf_Scn *elf_newscn(Elf *); 198 Elf_Cmd elf_next(Elf *); [all …]
|
H A D | gelf.h | 108 int gelf_getclass(Elf*); 109 size_t gelf_fsize(Elf *, Elf_Type, size_t, uint_t); 110 GElf_Ehdr * gelf_getehdr(Elf *, GElf_Ehdr *); 111 int gelf_update_ehdr(Elf *, GElf_Ehdr *); 112 unsigned long gelf_newehdr(Elf *, int); 113 GElf_Phdr * gelf_getphdr(Elf *, int, GElf_Phdr *); 114 int gelf_update_phdr(Elf *, int, GElf_Phdr *); 115 unsigned long gelf_newphdr(Elf *, size_t); 118 Elf_Data * gelf_xlatetof(Elf *, Elf_Data *, const Elf_Data *, uint_t); 119 Elf_Data * gelf_xlatetom(Elf *, Elf_Data *, const Elf_Data *, uint_t); [all …]
|
H A D | link.h | 56 extern void ld_open(const char **, const char **, int *, int, Elf **, 57 Elf *, size_t, const Elf_Kind); 58 extern void ld_file(const char *, const Elf_Kind, int, Elf *); 60 Elf_Data *, Elf *, uint_t *); 62 Elf_Data *, Elf *); 67 extern void ld_open64(const char **, const char **, int *, int, Elf **, 68 Elf *, size_t, const Elf_Kind); 69 extern void ld_file64(const char *, const Elf_Kind, int, Elf *); 71 Elf_Data *, Elf *, uint_t *); 73 Elf_Data *, Elf *);
|
/illumos-gate/usr/src/cmd/sgs/libelf/common/ |
H A D | decl.h | 137 Elf *s_elf; /* parent file */ 262 struct Elf struct 371 extern void _elf_arinit(Elf *); 372 extern Okay _elf_cook(Elf *); 380 extern Okay _elf_inmap(Elf *); 392 extern int _elf32_ehdr(Elf *, int); 393 extern int _elf32_phdr(Elf *, int); 394 extern int _elf32_shdr(Elf *, int); 395 extern int _elf64_ehdr(Elf *, int); 396 extern int _elf64_phdr(Elf *, int); [all …]
|
H A D | begin.c | 48 Elf * 77 if ((elf = (Elf *)calloc(1, sizeof (Elf))) == 0) { in _elf_member() 108 Elf * 111 Elf *elf; in _elf_regular() 113 if ((elf = (Elf *)calloc(1, sizeof (Elf))) == 0) { in _elf_regular() 128 Elf * 194 Elf * 197 Elf *elf; in elf_memory() 209 if ((elf = (Elf *)calloc(1, sizeof (Elf))) == 0) { in elf_memory() 293 Elf * [all …]
|
H A D | flag.c | 39 Elf * elf; in elf_flagdata() 63 elf_flagehdr(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagehdr() 86 elf_flagelf(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagelf() 109 elf_flagphdr(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagphdr() 135 Elf * elf; in elf_flagscn() 162 Elf * elf; in elf_flagshdr()
|
H A D | getehdr.c | 36 getehdr(Elf * elf, int class) in getehdr() 58 elf32_getehdr(Elf * elf) in elf32_getehdr() 65 elf64_getehdr(Elf * elf) in elf64_getehdr()
|
H A D | getphdr.c | 36 getphdr(Elf * elf, int class) in getphdr() 56 elf32_getphdr(Elf * elf) in elf32_getphdr() 62 elf64_getphdr(Elf * elf) in elf64_getphdr()
|
H A D | cook.c | 108 _elf_slide(Elf * elf) in _elf_slide() 110 Elf *par = elf->ed_parent; in _elf_slide() 158 _elf_cook(Elf * elf) in _elf_cook() 228 Elf * elf = s->s_elf; in _elf_cookscn()
|
H A D | next.c | 35 elf_next(Elf * elf) in elf_next() 37 Elf *parent; in elf_next()
|
H A D | getshstrndx.c | 45 elf_getshdrstrndx(Elf *elf, size_t *shstrndx) in elf_getshdrstrndx() 66 elf_getshstrndx(Elf *elf, size_t *shstrndx) in elf_getshstrndx()
|
H A D | getbase.c | 35 elf_getbase(Elf *elf) in elf_getbase() 55 _elf_getarhdrbase(Elf *elf) in _elf_getarhdrbase()
|
H A D | getshnum.c | 51 elf_getshdrnum(Elf *elf, size_t *shnum) in elf_getshdrnum() 76 elf_getshnum(Elf *elf, size_t *shnum) in elf_getshnum()
|
H A D | getphnum.c | 47 elf_getphdrnum(Elf *elf, size_t *phnum) in elf_getphdrnum() 74 elf_getphnum(Elf *elf, size_t *phnum) in elf_getphnum()
|
/illumos-gate/usr/src/cmd/sgs/include/ |
H A D | _libelf.h | 45 extern size_t _elf_getnextoff(Elf *); 46 extern off_t _elf_getarhdrbase(Elf *); 47 extern size_t _elf_getarsymwordsize(Elf *); 49 extern GElf_Xword _gelf_getdyndtflags_1(Elf *); 50 extern GElf_Xword _gelf_getdynval(Elf *, GElf_Sxword); 51 extern int _elf_swap_wrimage(Elf *);
|
/illumos-gate/usr/src/cmd/sgs/nm/common/ |
H A D | nm.c | 144 static void process(Elf *, char *); 145 static Elf_Scn * get_scnfd(Elf *, int, int); 146 static void get_symtab(Elf *, char *); 152 static void print_ar_files(int, Elf *, char *); 449 Elf *elf_file; 535 process(Elf *elf_file, char *filename) 556 get_scnfd(Elf * e_file, int shstrtab, int SCN_TYPE) 581 get_symtab(Elf *elf_file, char *filename) 645 Elf *arf; 715 print_symtab(Elf *elf_file, unsigned int shstrndx, [all …]
|
/illumos-gate/usr/src/cmd/sgs/libelf/demo/ |
H A D | pcom.c | 47 print_comment(Elf *elf, const char *file) in print_comment() 108 process_elf(Elf *elf, char *file, int fd, int member) in process_elf() 111 Elf *_elf; in process_elf() 181 Elf *elf; in main()
|
H A D | tpcom.c | 55 Elf *pe_elf; 67 print_comment(Elf *elf, const char *file) in print_comment() 133 Elf *_elf; in process_elf() 218 Elf *elf; in main()
|
/illumos-gate/usr/src/cmd/sgs/elfdump/common/ |
H A D | _elfdump.h | 230 extern int fake_shdr_cache32(const char *, int, Elf *, Elf32_Ehdr *, 232 extern int fake_shdr_cache64(const char *, int, Elf *, Elf64_Ehdr *, 238 extern int regular32(const char *, int, Elf *, uint_t, const char *, int, 240 extern int regular64(const char *, int, Elf *, uint_t, const char *, int,
|
/illumos-gate/usr/src/cmd/sgs/gprof/common/ |
H A D | readelf.c | 60 static void get_symtab(Elf *elf, mod_info_t *module); 61 static void get_textseg(Elf *elf, int fd); 76 Elf *elf; in is_shared_obj() 138 get_txtorigin(Elf *elf) in get_txtorigin() 169 Elf *elf; in process_namelist() 199 Elf *elf; in process() 238 get_textseg(Elf *elf, int fd) in get_textseg() 401 is_function(Elf *elf, GElf_Sym *sym) in is_function() 454 get_symtab(Elf *elf, mod_info_t *module) in get_symtab()
|
/illumos-gate/usr/src/cmd/sgs/libld/common/ |
H A D | support.c | 169 int flags, Elf **oelf, Elf *ref, size_t off, const Elf_Kind ekind) in ld_sup_open() 177 Elf *nelf = *oelf; in ld_sup_open() 231 Elf *elf) in ld_sup_file() 254 Shdr **oshdr, Word ndx, Elf_Scn *scn, Elf *elf) in ld_sup_input_section() 302 Elf_Data *data, Elf *elf) in ld_sup_section()
|
/illumos-gate/usr/src/cmd/sgs/libelf/misc/ |
H A D | nlist.c | 49 end_elf_job(int fd, Elf * elfdes) in end_elf_job() 60 Elf *elfdes; /* ELF descriptor */ in _elf_nlist() 74 elfdes = elf_begin(fd, ELF_C_READ, (Elf *)0); in _elf_nlist()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf.h | 34 extern Elf *fake_elf32(struct ps_prochandle *P, file_info_t *fptr, 37 extern Elf *fake_elf64(struct ps_prochandle *P, file_info_t *fptr,
|
/illumos-gate/usr/src/cmd/sgs/dump/common/ |
H A D | dump.c | 766 dump_reloc_table(Elf *elf_file, GElf_Ehdr *p_ehdr, in dump_reloc_table() 1467 print_section(Elf *elf_file, in print_section() 1534 dump_section(Elf *elf_file, in dump_section() 1744 int fd, Elf *elf_file, Elf_Arhdr *p_ar, char *filename) in load_arstring_table() 1791 dump_ar_hdr(int fd, Elf *elf_file, char *filename) in dump_ar_hdr() 1795 Elf *arf; in dump_ar_hdr() 1878 dump_ar_files(int fd, Elf *elf_file, char *filename) in dump_ar_files() 1881 Elf *arf; in dump_ar_files() 1945 Elf *elf_file; in each_file() 1968 if ((elf_file = elf_begin(fd, cmd, (Elf *)0)) == NULL) { in each_file() [all …]
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | libctf_impl.h | 49 typedef int (*ctf_convert_f)(ctf_convert_t *, int, Elf *, ctf_file_t **, 51 extern int ctf_dwarf_convert(ctf_convert_t *, int, Elf *, ctf_file_t **,
|