Home
last modified time | relevance | path

Searched refs:Elf (Results 1 – 25 of 147) sorted by relevance

123456

/titanic_44/usr/src/head/
H A Dlibelf.h115 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 Dgelf.h110 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 Dlink.h56 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_44/usr/src/cmd/sgs/libelf/common/
H A Dllib-lelf41 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 Ddecl.h138 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 Dbegin.c50 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 Dflag.c41 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 Dgetehdr.c38 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 Dgetphdr.c38 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 Dcook.c112 _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 Dnext.c37 elf_next(Elf * elf) in elf_next()
39 Elf *parent; in elf_next()
H A Dgetshstrndx.c45 elf_getshdrstrndx(Elf *elf, size_t *shstrndx) in elf_getshdrstrndx()
66 elf_getshstrndx(Elf *elf, size_t *shstrndx) in elf_getshstrndx()
H A Dgetbase.c35 elf_getbase(Elf *elf) in elf_getbase()
55 _elf_getarhdrbase(Elf *elf) in _elf_getarhdrbase()
H A Dgetshnum.c51 elf_getshdrnum(Elf *elf, size_t *shnum) in elf_getshdrnum()
76 elf_getshnum(Elf *elf, size_t *shnum) in elf_getshnum()
/titanic_44/usr/src/tools/scripts/
H A Dfind_elf.pl97 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_44/usr/src/cmd/sgs/include/
H A D_libelf.h45 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_44/usr/src/cmd/sgs/nm/common/
H A Dnm.c141 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_44/usr/src/tools/ctf/cvt/
H A Dinput.c50 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 Dctftools.h374 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_44/usr/src/cmd/sgs/libelf/demo/
H A Dpcom.c47 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 Dtpcom.c55 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_44/usr/src/cmd/sgs/elfdump/common/
H A D_elfdump.h230 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_44/usr/src/cmd/sgs/gprof/common/
H A Dreadelf.c62 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_44/usr/src/cmd/sgs/libld/common/
H A Dsupport.c170 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_44/usr/src/lib/libproc/common/
H A DPsymtab_machelf.h36 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,

123456