/external/elfutils/libelf/ |
D | libelf.h | 190 typedef struct Elf Elf; typedef 201 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref); 204 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd); 207 extern Elf *elf_memory (char *__image, size_t __size); 210 extern Elf_Cmd elf_next (Elf *__elf); 213 extern int elf_end (Elf *__elf); 216 extern int64_t elf_update (Elf *__elf, Elf_Cmd __cmd); 219 extern Elf_Kind elf_kind (Elf *__elf) __attribute__ ((__pure__)); 222 extern int64_t elf_getbase (Elf *__elf); 226 extern char *elf_getident (Elf *__elf, size_t *__nbytes); [all …]
|
D | libelfP.h | 53 #define ElfW2_(Bits, Name) Elf##Bits##_##Name 227 struct Elf *elf; /* The underlying ELF file. */ 273 struct Elf struct 280 Elf *parent; argument 281 Elf *next; /* Used in list of archive descriptors. */ argument 386 Elf *children; /* List of all descriptors for this archive. */ 456 extern Elf_Type __libelf_data_type (Elf *elf, int sh_type) internal_function; 470 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address, 472 Elf_Cmd cmd, Elf *parent) 479 extern int __libelf_next_arhdr_wrlock (Elf *elf) internal_function; [all …]
|
D | elf_end.c | 43 elf_end (Elf *elf) in elf_end() 45 Elf *parent; in elf_end() 95 struct Elf *child = parent->state.ar.children; in elf_end() 118 || (offsetof (struct Elf, state.elf32.rawchunks) in elf_end() 119 == offsetof (struct Elf, state.elf64.rawchunks)) in elf_end() 132 || (offsetof (struct Elf, state.elf32.scns) in elf_end() 133 == offsetof (struct Elf, state.elf64.scns)) in elf_end() 190 || (offsetof (struct Elf, state.elf32.scns) in elf_end() 191 == offsetof (struct Elf, state.elf64.scns)) in elf_end() 202 || (offsetof (struct Elf, state.elf32.shdr) in elf_end() [all …]
|
D | common.h | 69 static inline Elf * 72 Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra) in allocate_elf() 74 Elf *result = (Elf *) calloc (1, sizeof (Elf) + extra); in allocate_elf() 98 libelf_acquire_all (Elf *elf) in libelf_acquire_all() 104 Elf *child = elf->state.ar.children; in libelf_acquire_all() 118 libelf_release_all (Elf *elf) in libelf_release_all() 122 Elf *child = elf->state.ar.children; in libelf_release_all()
|
D | gelf.h | 153 extern int gelf_getclass (Elf *__elf); 159 extern size_t gelf_fsize (Elf *__elf, Elf_Type __type, size_t __count, 163 extern GElf_Ehdr *gelf_getehdr (Elf *__elf, GElf_Ehdr *__dest); 166 extern int gelf_update_ehdr (Elf *__elf, GElf_Ehdr *__src); 169 extern unsigned long int gelf_newehdr (Elf *__elf, int __class); 172 extern Elf_Scn *gelf_offscn (Elf *__elf, GElf_Off __offset); 181 extern GElf_Phdr *gelf_getphdr (Elf *__elf, int __ndx, GElf_Phdr *__dst); 184 extern int gelf_update_phdr (Elf *__elf, int __ndx, GElf_Phdr *__src); 187 extern unsigned long int gelf_newphdr (Elf *__elf, size_t __phnum); 195 extern Elf_Data *gelf_xlatetom (Elf *__elf, Elf_Data *__dest, [all …]
|
D | elf_newscn.c | 44 elf_newscn (Elf *elf) in elf_newscn() 54 assert (offsetof (Elf, state.elf.scns_last) in elf_newscn() 55 == offsetof (Elf, state.elf32.scns_last)); in elf_newscn() 56 assert (offsetof (Elf, state.elf.scns_last) in elf_newscn() 57 == offsetof (Elf, state.elf64.scns_last)); in elf_newscn() 58 assert (offsetof (Elf, state.elf32.scns) in elf_newscn() 59 == offsetof (Elf, state.elf64.scns)); in elf_newscn() 71 || (offsetof (Elf, state.elf32.scns) in elf_newscn() 72 == offsetof (Elf, state.elf64.scns)) in elf_newscn()
|
D | elf_clone.c | 40 Elf * 41 elf_clone (Elf *elf, Elf_Cmd cmd) in elf_clone() 43 Elf *retval = NULL; in elf_clone() 68 assert (offsetof (struct Elf, state.elf32.scns) in elf_clone() 69 == offsetof (struct Elf, state.elf64.scns)); in elf_clone()
|
D | elf_begin.c | 52 static inline Elf * 54 Elf_Cmd cmd, Elf *parent) in file_read_ar() 56 Elf *elf; in file_read_ar() 247 static Elf * 249 off_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) in file_read_elf() 282 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf() 289 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf() 290 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf() 504 Elf * 507 size_t maxsize, Elf_Cmd cmd, Elf *parent) in __libelf_read_mmaped_file() [all …]
|
D | elf_getshdrnum.c | 43 __elf_getshdrnum_rdlock (Elf *elf, size_t *dst) in __elf_getshdrnum_rdlock() 61 || (offsetof (Elf, state.elf32.scns) in __elf_getshdrnum_rdlock() 62 == offsetof (Elf, state.elf64.scns)) in __elf_getshdrnum_rdlock() 73 elf_getshdrnum (Elf *elf, size_t *dst) in elf_getshdrnum()
|
D | gelf_getehdr.c | 44 __gelf_getehdr_rdlock (Elf *elf, GElf_Ehdr *dest) in __gelf_getehdr_rdlock() 59 if (offsetof (struct Elf, state.elf32.ehdr) in __gelf_getehdr_rdlock() 60 != offsetof (struct Elf, state.elf64.ehdr)) in __gelf_getehdr_rdlock() 97 gelf_getehdr (Elf *elf, GElf_Ehdr *dest) in gelf_getehdr()
|
D | elf_getident.c | 40 elf_getident (Elf *elf, size_t *ptr) in elf_getident() 57 || (offsetof (struct Elf, state.elf32.ehdr) in elf_getident() 58 == offsetof (struct Elf, state.elf64.ehdr)) in elf_getident()
|
D | elf_getshdrstrndx.c | 46 elf_getshdrstrndx (Elf *elf, size_t *dst) in elf_getshdrstrndx() 63 assert (offsetof (struct Elf, state.elf.ehdr) in elf_getshdrstrndx() 64 == offsetof (struct Elf, state.elf32.ehdr)); in elf_getshdrstrndx() 67 assert (offsetof (struct Elf, state.elf.ehdr) in elf_getshdrstrndx() 68 == offsetof (struct Elf, state.elf64.ehdr)); in elf_getshdrstrndx()
|
D | elf_getscn.c | 42 elf_getscn (Elf *elf, size_t idx) in elf_getscn() 59 || (offsetof (struct Elf, state.elf32.scns) in elf_getscn() 60 == offsetof (struct Elf, state.elf64.scns)) in elf_getscn()
|
/external/elfutils/libdwfl/ |
D | libdwflP.h | 113 Elf *core; /* non-NULL if we need to free it. */ 155 Elf *elf; 199 Elf *alt_elf; /* Elf for alt Dwarf. */ 380 dwfl_adjusted_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr) in dwfl_adjusted_st_value() 390 dwfl_deadjust_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr) in dwfl_deadjust_st_value() 416 Elf *elf; 451 Elf **elfp, Dwarf_Addr *biasp, 460 GElf_Word *shndxp, Elf **elfp, 476 extern Dwfl_Error __libdwfl_relocate (Dwfl_Module *mod, Elf *file, bool debug) 487 extern Dwfl_Error __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated, [all …]
|
D | open.c | 45 decompress (int fd __attribute__ ((unused)), Elf **elf) in decompress() 73 Elf *memelf = elf_memory (buffer, size); in decompress() 94 what_kind (int fd, Elf **elfp, Elf_Kind *kind, bool *close_fd) in what_kind() 116 __libdw_open_file (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok) in __libdw_open_file() 120 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); in __libdw_open_file() 141 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in __libdw_open_file()
|
D | libdwfl.h | 57 char **file_name, Elf **elfp); 292 char **, Elf **); 326 char **, Elf **); 368 extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable); 384 char **file_name, Elf **); 425 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias) 478 Elf **elfp, Dwarf_Addr *bias) 505 GElf_Word *shndxp, Elf **elfp, 714 bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, 722 extern int dwfl_core_file_attach (Dwfl *dwfl, Elf *elf);
|
D | offline.c | 97 const char *file_name, int fd, Elf *elf); 99 const char *file_name, int fd, Elf *elf, 107 Elf *elf, int (*predicate) (const char *module, in process_file() 128 Elf *elf) in process_elf() 162 int fd, Elf *member, Dwfl_Module **mod) in process_archive_member() 239 Elf *archive, in process_archive() 244 Elf *member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive); in process_archive() 273 Elf *elf; in __libdwfl_report_offline()
|
D | core-file.c | 43 static inline Elf * 58 static Elf * 59 elf_begin_rand (Elf *parent, off_t offset, off_t size, off_t *next) in elf_begin_rand() 126 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes) in dwfl_report_core_segments() 179 void *arg, Elf **elfp) in core_file_read_eagerly() 181 Elf *core = arg; in core_file_read_eagerly() 255 Elf *elf, GElf_Off start, int *pndx, in do_more() 289 Elf *elf = arg; in dwfl_elf_phdr_memory_callback() 424 __libdwfl_dynamic_vaddr_get (Elf *elf, GElf_Addr *vaddrp) in __libdwfl_dynamic_vaddr_get() 445 dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable) in dwfl_core_file_report() [all …]
|
D | dwfl_module_addrsym.c | 39 Elf *addr_symelf; 46 Elf *closest_elf; 53 Elf *sizeless_elf; 62 GElf_Addr value, Elf *symelf, GElf_Word shndx) in same_section() 130 Elf *elf, bool resolved) in try_sym_value() 202 Elf *elf; in search_table() 239 Elf **elfp, Dwarf_Addr *biasp, bool _adjust_st_value) in __libdwfl_addrsym() 323 GElf_Word *shndxp, Elf **elfp, Dwarf_Addr *bias) in INTDEF()
|
/external/elfutils/include/elfutils/ |
D | libdwfl.h | 57 char **file_name, Elf **elfp); 292 char **, Elf **); 326 char **, Elf **); 368 extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable); 384 char **file_name, Elf **); 425 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias) 478 Elf **elfp, Dwarf_Addr *bias) 505 GElf_Word *shndxp, Elf **elfp, 714 bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, 722 extern int dwfl_core_file_attach (Dwfl *dwfl, Elf *elf);
|
/external/llvm/lib/ObjectYAML/ |
D | ObjectYAML.cpp | 23 if (ObjectFile.Elf) in mapping() 24 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping() 34 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping() 35 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
|
/external/elfutils/tests/ |
D | sectiondump.c | 31 static int handle_section (Elf *elf, Elf_Scn *scn); 33 static void print_symtab (Elf *elf, Elf_Data *data); 39 Elf *elf; in main() 78 handle_section (Elf *elf, Elf_Scn *scn) in handle_section() 163 print_symtab (Elf *elf, Elf_Data *data) in print_symtab()
|
D | newdata.c | 38 add_section_data (Elf *elf, char *buf, size_t len) in add_section_data() 71 static Elf * 74 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_WRITE_MMAP : ELF_C_WRITE, NULL); in create_elf() 155 static Elf * 159 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_RDWR_MMAP : ELF_C_RDWR, NULL); in read_elf() 170 check_section_size (Elf *elf, size_t size) in check_section_size() 198 check_section_data (Elf *elf, char *data, size_t len, size_t times) in check_section_data() 253 Elf *elf = create_elf (fd, class, use_mmap); in check_elf()
|
/external/elfutils/src/ |
D | size.c | 99 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname); 102 static void handle_elf (Elf *elf, const char *fullname, const char *fname); 294 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); in process_file() 335 print_header (Elf *elf) in print_header() 358 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) in handle_ar() 375 Elf *subelf; in handle_ar() 403 show_sysv (Elf *elf, const char *prefix, const char *fname, in show_sysv() 476 show_sysv_one_line (Elf *elf) in show_sysv_one_line() 526 show_bsd (Elf *elf, const char *prefix, const char *fname, in show_bsd() 597 show_segments (Elf *elf, const char *fullname) in show_segments() [all …]
|
/external/elfutils/libebl/ |
D | eblopenbackend.c | 146 static bool default_reloc_valid_use (Elf *elf, int ignore); 148 static bool default_gotpc_reloc_check (Elf *elf, int ignore); 184 static bool default_check_special_symbol (Elf *elf, GElf_Ehdr *ehdr, 191 static bool default_bss_plt_p (Elf *elf); 257 openbackend (Elf *elf, const char *emulation, GElf_Half machine) in openbackend() 299 assert (offsetof (Elf, state.elf32.ehdr) in openbackend() 300 == offsetof (Elf, state.elf64.ehdr)); in openbackend() 397 ebl_openbackend (Elf *elf) in ebl_openbackend() 455 default_reloc_valid_use (Elf *elf __attribute__ ((unused)), in default_reloc_valid_use() 469 default_gotpc_reloc_check (Elf *elf __attribute__ ((unused)), in default_gotpc_reloc_check() [all …]
|