Home
last modified time | relevance | path

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

1234567

/external/elfutils/libelf/
Dlibelf.h187 typedef struct Elf Elf; typedef
198 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref);
201 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd);
204 extern Elf *elf_memory (char *__image, size_t __size);
207 extern Elf_Cmd elf_next (Elf *__elf);
210 extern int elf_end (Elf *__elf);
215 extern off_t elf_update (Elf *__elf, Elf_Cmd __cmd);
222 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
227 extern loff_t elf_getbase (Elf *__elf);
229 extern off_t elf_getbase (Elf *__elf);
[all …]
DlibelfP.h73 #define ElfW2_(Bits, Name) Elf##Bits##_##Name
240 struct Elf *elf; /* The underlying ELF file. */
282 struct Elf struct
313 Elf *parent; argument
321 struct Elf *next; /* Used in list of archive descriptors. */ argument
414 struct Elf *children; /* List of all descriptors for this archive. */
480 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
482 Elf_Cmd cmd, Elf *parent)
489 extern int __libelf_next_arhdr_wrlock (Elf *elf) internal_function;
492 extern char *__libelf_readall (Elf *elf) internal_function;
[all …]
Delf_end.c65 Elf *elf; in elf_end()
67 Elf *parent;
117 struct Elf *child = parent->state.ar.children;
140 || (offsetof (struct Elf, state.elf32.rawchunks)
141 == offsetof (struct Elf, state.elf64.rawchunks))
154 || (offsetof (struct Elf, state.elf32.scns)
155 == offsetof (struct Elf, state.elf64.scns))
205 || (offsetof (struct Elf, state.elf32.scns)
206 == offsetof (struct Elf, state.elf64.scns))
217 || (offsetof (struct Elf, state.elf32.shdr)
[all …]
Dcommon.h90 static inline Elf *
93 Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra) in allocate_elf()
95 Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra); in allocate_elf()
119 libelf_acquire_all (Elf *elf) in libelf_acquire_all()
125 Elf *child = elf->state.ar.children; in libelf_acquire_all()
139 libelf_release_all (Elf *elf) in libelf_release_all()
143 Elf *child = elf->state.ar.children; in libelf_release_all()
Delf_newscn.c66 Elf *elf; in elf_newscn()
76 assert (offsetof (Elf, state.elf.scns_last)
77 == offsetof (Elf, state.elf32.scns_last));
78 assert (offsetof (Elf, state.elf.scns_last)
79 == offsetof (Elf, state.elf64.scns_last));
80 assert (offsetof (Elf, state.elf32.scns)
81 == offsetof (Elf, state.elf64.scns));
93 || (offsetof (Elf, state.elf32.scns)
94 == offsetof (Elf, state.elf64.scns))
Dgelf.h171 extern int gelf_getclass (Elf *__elf);
177 extern size_t gelf_fsize (Elf *__elf, Elf_Type __type, size_t __count,
181 extern GElf_Ehdr *gelf_getehdr (Elf *__elf, GElf_Ehdr *__dest);
184 extern int gelf_update_ehdr (Elf *__elf, GElf_Ehdr *__src);
187 extern unsigned long int gelf_newehdr (Elf *__elf, int __class);
190 extern Elf_Scn *gelf_offscn (Elf *__elf, GElf_Off __offset);
199 extern GElf_Phdr *gelf_getphdr (Elf *__elf, int __ndx, GElf_Phdr *__dst);
202 extern int gelf_update_phdr (Elf *__elf, int __ndx, GElf_Phdr *__src);
205 extern unsigned long int gelf_newphdr (Elf *__elf, size_t __phnum);
210 extern Elf_Data *gelf_xlatetom (Elf *__elf, Elf_Data *__dest,
[all …]
Delf_clone.c61 Elf *
62 elf_clone (Elf *elf, Elf_Cmd cmd) in elf_clone()
64 Elf *retval = NULL; in elf_clone()
89 assert (offsetof (struct Elf, state.elf32.scns) in elf_clone()
90 == offsetof (struct Elf, state.elf64.scns)); in elf_clone()
Delf_begin.c72 static inline Elf *
74 Elf_Cmd cmd, Elf *parent) in file_read_ar()
76 Elf *elf; in file_read_ar()
265 static Elf *
267 off_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) in file_read_elf()
288 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf()
481 Elf *
484 size_t maxsize, Elf_Cmd cmd, Elf *parent) in __libelf_read_mmaped_file()
515 static Elf *
517 Elf *parent) in read_unmmaped_file()
[all …]
Delf_getshnum.c64 Elf *elf; in __elf_getshnum_rdlock()
83 || (offsetof (Elf, state.elf32.scns)
84 == offsetof (Elf, state.elf64.scns))
96 Elf *elf; in elf_getshnum()
Dgelf_getehdr.c65 Elf *elf; in __gelf_getehdr_rdlock()
81 if (offsetof (struct Elf, state.elf32.ehdr)
82 != offsetof (struct Elf, state.elf64.ehdr))
120 Elf *elf; in gelf_getehdr()
Delf_getident.c62 Elf *elf; in elf_getident()
80 || (offsetof (struct Elf, state.elf32.ehdr)
81 == offsetof (struct Elf, state.elf64.ehdr))
Delf_getshstrndx.c68 Elf *elf; in elf_getshstrndx()
86 assert (offsetof (struct Elf, state.elf.ehdr)
87 == offsetof (struct Elf, state.elf32.ehdr));
90 assert (offsetof (struct Elf, state.elf.ehdr)
91 == offsetof (struct Elf, state.elf64.ehdr));
Delf_getscn.c64 Elf *elf; in elf_getscn()
82 || (offsetof (struct Elf, state.elf32.scns)
83 == offsetof (struct Elf, state.elf64.scns))
Delf_nextscn.c64 Elf *elf; in elf_nextscn()
78 || (offsetof (Elf, state.elf32.scns)
79 == offsetof (Elf, state.elf64.scns)))
Delf32_getehdr.c67 Elf *elf;
102 Elf *elf;
109 Elf *elf;
Delf_readall.c64 set_address (Elf *elf, size_t offset) in set_address()
68 Elf *child = elf->state.ar.children; in set_address()
90 Elf *elf; in __libelf_readall()
Delf_getaroff.c64 Elf *elf; in elf_getaroff()
71 Elf *parent = elf->parent;
/external/elfutils/libdwfl/
Doffline.c117 const char *file_name, int fd, Elf *elf);
119 const char *file_name, int fd, Elf *elf,
127 Elf *elf, int (*predicate) (const char *module, in process_file()
148 Elf *elf) in process_elf()
181 int fd, Elf *member, Dwfl_Module **mod) in process_archive_member()
257 Elf *archive, in process_archive()
262 Elf *member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive); in process_archive()
291 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, NULL); in __libdwfl_report_offline()
DlibdwflP.h138 Elf *elf;
250 extern Dwfl_Error __libdwfl_relocate (Dwfl_Module *mod, Elf *file, bool debug)
255 extern Dwfl_Error __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
263 extern Dwfl_Error __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf,
291 extern int __libdwfl_find_build_id (Dwfl_Module *mod, bool set, Elf *elf)
307 Elf *elf, GElf_Addr base)
335 void *arg, Elf **elfp);
363 extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const GElf_Ehdr *ehdr);
Dcore-file.c66 static Elf *
67 elf_begin_rand (Elf *parent, loff_t offset, loff_t size, loff_t *next) in elf_begin_rand()
73 inline Elf *fail (int error) in elf_begin_rand()
144 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, const GElf_Ehdr *ehdr, in dwfl_report_core_segments()
201 void *arg, Elf **elfp) in core_file_read_eagerly()
203 Elf *core = arg; in core_file_read_eagerly()
264 Elf *elf = arg; in dwfl_elf_phdr_memory_callback()
397 dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const GElf_Ehdr *ehdr) in dwfl_core_file_report()
/external/elfutils/tests/
Dsectiondump.c39 static int handle_section (Elf *elf, Elf_Scn *scn);
41 static void print_symtab (Elf *elf, Elf_Data *data);
47 Elf *elf; in main()
86 handle_section (Elf *elf, Elf_Scn *scn) in handle_section()
171 print_symtab (Elf *elf, Elf_Data *data) in print_symtab()
/external/elfutils/libebl/
Debl-hooks.h63 bool EBLHOOK(reloc_valid_use) (Elf *, int);
66 bool EBLHOOK(gotpc_reloc_check) (Elf *, int);
144 bool EBLHOOK(check_special_symbol) (Elf *, GElf_Ehdr *, const GElf_Sym *,
148 bool EBLHOOK(bss_plt_p) (Elf *, GElf_Ehdr *);
Deblopenbackend.c163 static bool default_reloc_valid_use (Elf *elf, int ignore);
165 static bool default_gotpc_reloc_check (Elf *elf, int ignore);
208 static bool default_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr,
214 static bool default_bss_plt_p (Elf *elf, GElf_Ehdr *ehdr);
276 Elf *elf; in openbackend()
320 assert (offsetof (Elf, state.elf32.ehdr)
321 == offsetof (Elf, state.elf64.ehdr));
415 Elf *elf; in ebl_openbackend()
474 default_reloc_valid_use (Elf *elf __attribute__ ((unused)), in default_reloc_valid_use()
488 default_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), in default_gotpc_reloc_check()
[all …]
/external/elfutils/
Dandroid.patch284 static bool default_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr,
299 default_check_special_symbol (Elf *elf __attribute__ ((unused)),
333 static inline Elf *
341 Elf *elf;
434 extern int elf_end (Elf *__elf);
437 -extern loff_t elf_update (Elf *__elf, Elf_Cmd __cmd);
440 +extern off_t elf_update (Elf *__elf, Elf_Cmd __cmd);
447 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__));
452 extern loff_t elf_getbase (Elf *__elf);
454 +extern off_t elf_getbase (Elf *__elf);
[all …]
/external/elfutils/src/
Dsize.c108 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname);
111 static void handle_elf (Elf *elf, const char *fullname, const char *fname);
306 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); in process_file()
337 print_header (Elf *elf) in print_header()
360 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) in handle_ar()
377 Elf *subelf; in handle_ar()
408 show_sysv (Elf *elf, const char *prefix, const char *fname, in show_sysv()
486 show_sysv_one_line (Elf *elf) in show_sysv_one_line()
542 show_bsd (Elf *elf, const char *prefix, const char *fname, in show_bsd()
613 show_segments (Elf *elf, const char *fullname) in show_segments()
[all …]

1234567