/titanic_50/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 *); 166 unsigned elf_flagehdr(Elf *, Elf_Cmd, unsigned); 167 unsigned elf_flagelf(Elf *, Elf_Cmd, unsigned); 168 unsigned elf_flagphdr(Elf *, Elf_Cmd, unsigned); 172 Elf_Arhdr *elf_getarhdr(Elf *); 173 Elf_Arsym *elf_getarsym(Elf *, size_t *); 174 off_t elf_getbase(Elf *); [all …]
|
H A D | gelf.h | 110 int gelf_getclass(Elf*); 111 size_t gelf_fsize(Elf *, Elf_Type, size_t, uint_t); 112 GElf_Ehdr * gelf_getehdr(Elf *, GElf_Ehdr *); 113 int gelf_update_ehdr(Elf *, GElf_Ehdr *); 114 unsigned long gelf_newehdr(Elf *, int); 115 GElf_Phdr * gelf_getphdr(Elf *, int, GElf_Phdr *); 116 int gelf_update_phdr(Elf *, int, GElf_Phdr *); 117 unsigned long gelf_newphdr(Elf *, size_t); 120 Elf_Data * gelf_xlatetof(Elf *, Elf_Data *, const Elf_Data *, uint_t); 121 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 *);
|
/titanic_50/usr/src/cmd/sgs/libelf/common/ |
H A D | llib-lelf | 41 Elf32_Ehdr * elf32_getehdr(Elf *); 42 Elf32_Phdr * elf32_getphdr(Elf *); 44 Elf32_Ehdr * elf32_newehdr(Elf *); 45 Elf32_Phdr * elf32_newphdr(Elf *, size_t); 54 Elf64_Ehdr * elf64_getehdr(Elf *); 55 Elf64_Phdr * elf64_getphdr(Elf *); 57 Elf64_Ehdr * elf64_newehdr(Elf *); 58 Elf64_Phdr * elf64_newphdr(Elf *, size_t); 66 size_t gelf_fsize(Elf *, Elf_Type, size_t, uint_t); 67 int gelf_getclass(Elf *); [all …]
|
H A D | decl.h | 138 Elf *s_elf; /* parent file */ 182 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \ 183 (void) rw_wrlock(&((Elf *)e)->ed_rwlock); 188 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \ 189 (void) rw_wrlock(&((Elf *)e)->ed_rwlock); \ 195 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \ 196 (void) rw_rdlock(&((Elf *)e)->ed_rwlock); \ 201 (void) rw_unlock(&((Elf *)e)->ed_rwlock); \ 202 (void) rw_rdlock(&((Elf *)e)->ed_rwlock); \ 209 (void) rw_rdlock(&((Elf *)e)->ed_rwlock); \ [all …]
|
H A D | begin.c | 50 Elf * 51 _elf_member(int fd, Elf * ref, unsigned flags) in _elf_member() 53 register Elf *elf; in _elf_member() 79 if ((elf = (Elf *)calloc(1, sizeof (Elf))) == 0) { in _elf_member() 110 Elf * 113 Elf *elf; in _elf_regular() 115 if ((elf = (Elf *)calloc(1, sizeof (Elf))) == 0) { in _elf_regular() 132 Elf * 133 _elf_config(Elf * elf) in _elf_config() 198 Elf * [all …]
|
H A D | flag.c | 41 Elf * elf; in elf_flagdata() 65 elf_flagehdr(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagehdr() 88 elf_flagelf(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagelf() 111 elf_flagphdr(Elf * elf, Elf_Cmd cmd, unsigned flags) in elf_flagphdr() 137 Elf * elf; in elf_flagscn() 164 Elf * elf; in elf_flagshdr()
|
H A D | getehdr.c | 38 getehdr(Elf * elf, int class) in getehdr() 60 elf32_getehdr(Elf * elf) in elf32_getehdr() 67 elf64_getehdr(Elf * elf) in elf64_getehdr()
|
H A D | getphdr.c | 38 getphdr(Elf * elf, int class) in getphdr() 58 elf32_getphdr(Elf * elf) in elf32_getphdr() 64 elf64_getphdr(Elf * elf) in elf64_getphdr()
|
H A D | cook.c | 112 _elf_slide(Elf * elf) in _elf_slide() 115 Elf *par = elf->ed_parent; in _elf_slide() 163 _elf_cook(Elf * elf) in _elf_cook() 234 Elf * elf = s->s_elf; in _elf_cookscn()
|
H A D | next.c | 37 elf_next(Elf * elf) in elf_next() 39 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 | getshnum.c | 51 elf_getshdrnum(Elf *elf, size_t *shnum) in elf_getshdrnum() 76 elf_getshnum(Elf *elf, size_t *shnum) in elf_getshnum()
|
/titanic_50/usr/src/tools/scripts/ |
H A D | find_elf.pl | 97 my @Elf = split(/\n/, `$ecmd $path 2>/dev/null`); 99 my $ElfCnt = scalar @Elf; 105 $Elf[0] =~ s/^ELFCLASS//; 106 $Elf[1] =~ s/^ET_//; 107 $Elf[2] = ($ElfCnt == 3) ? 'VERDEF' : 'NOVERDEF'; 108 return @Elf; 112 my @Elf = split(/\n/, `elfdump -ed $path 2>&1`); 117 foreach my $Line (@Elf) { 174 my(@Elf, @Pvs, @Pvs_don, @Vers, %TopVer); 195 @Elf = GetObjectInfo($FullPath); [all …]
|
/titanic_50/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 int _elf_swap_wrimage(Elf *);
|
/titanic_50/usr/src/cmd/sgs/nm/common/ |
H A D | nm.c | 141 static void process(Elf *, char *); 142 static Elf_Scn * get_scnfd(Elf *, int, int); 143 static void get_symtab(Elf *, char *); 144 static SYM * readsyms(Elf_Data *, GElf_Sxword, Elf *, unsigned int, 148 static int is_bss_section(unsigned int, Elf *, unsigned int); 149 static void print_ar_files(int, Elf *, char *); 150 static void print_symtab(Elf *, unsigned int, Elf_Scn *, GElf_Shdr *, char *); 402 Elf *elf_file; in each_file() 430 if ((elf_file = elf_begin(fd, cmd, (Elf *) 0)) == NULL) { in each_file() 488 process(Elf *elf_file, char *filename) in process() [all …]
|
/titanic_50/usr/src/tools/ctf/cvt/ |
H A D | input.c | 50 built_source_types(Elf *elf, char const *file) in built_source_types() 86 read_file(Elf *elf, char *file, char *label, read_cb_f *func, void *arg, in read_file() 129 read_archive(int fd, Elf *elf, char *file, char *label, read_cb_f *func, in read_archive() 132 Elf *melf; in read_archive() 187 Elf *elf; in read_ctf_common() 250 count_archive(int fd, Elf *elf, char *file) in count_archive() 252 Elf *melf; in count_archive() 281 Elf *elf; in count_files() 342 symit_new(Elf *elf, const char *file) in symit_new()
|
H A D | ctftools.h | 374 source_types_t built_source_types(Elf *, const char *); 379 symit_data_t *symit_new(Elf *, const char *); 406 int stabs_read(tdata_t *, Elf *, const char *); 409 int dw_read(tdata_t *, Elf *, const char *); 433 int findelfsecidx(Elf *, const char *, const char *); 434 size_t elf_ptrsz(Elf *);
|
/titanic_50/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()
|
/titanic_50/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,
|
/titanic_50/usr/src/cmd/sgs/gprof/common/ |
H A D | readelf.c | 62 static void get_symtab(Elf *elf, mod_info_t *module); 63 static void get_textseg(Elf *elf, int fd); 78 Elf *elf; in is_shared_obj() 140 get_txtorigin(Elf *elf) in get_txtorigin() 171 Elf *elf; in process_namelist() 201 Elf *elf; in process() 240 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()
|
/titanic_50/usr/src/cmd/sgs/libld/common/ |
H A D | support.c | 170 int flags, Elf **oelf, Elf *ref, size_t off, const Elf_Kind ekind) in ld_sup_open() 178 Elf *nelf = *oelf; in ld_sup_open() 232 Elf *elf) in ld_sup_file() 255 Shdr **oshdr, Word ndx, Elf_Scn *scn, Elf *elf) in ld_sup_input_section() 303 Elf_Data *data, Elf *elf) in ld_sup_section()
|
/titanic_50/usr/src/lib/libctf/common/ |
H A D | libctf_impl.h | 38 typedef ctf_conv_status_t (*ctf_convert_f)(int, Elf *, uint_t, int *, 40 extern ctf_conv_status_t ctf_dwarf_convert(int, Elf *, uint_t, int *,
|
/titanic_50/usr/src/lib/libproc/common/ |
H A D | Psymtab_machelf.h | 36 extern Elf *fake_elf32(struct ps_prochandle *P, file_info_t *fptr, 39 extern Elf *fake_elf64(struct ps_prochandle *P, file_info_t *fptr,
|