/external/libabigail/src/ |
D | abg-elf-helpers.h | 48 find_section(Elf* elf_handle, 53 find_symbol_table_section(Elf* elf_handle); 56 find_symbol_table_section_index(Elf* elf_handle, size_t& symtab_index); 66 find_hash_table_section_index(Elf* elf_handle, 71 find_text_section(Elf* elf_handle); 74 find_bss_section(Elf* elf_handle); 77 find_rodata_section(Elf* elf_handle); 80 find_data_section(Elf* elf_handle); 83 find_data1_section(Elf* elf_handle); 86 find_opd_section(Elf* elf_handle); [all …]
|
D | abg-elf-helpers.cc | 311 find_section(Elf* elf_handle, const std::string& name, Elf64_Word section_type) in find_section() 347 find_symbol_table_section(Elf* elf_handle) in find_symbol_table_section() 387 find_symbol_table_section_index(Elf* elf_handle, size_t& symtab_index) in find_symbol_table_section_index() 408 find_hash_table_section_index(Elf* elf_handle, in find_hash_table_section_index() 449 find_text_section(Elf* elf_handle) in find_text_section() 458 find_bss_section(Elf* elf_handle) in find_bss_section() 467 find_rodata_section(Elf* elf_handle) in find_rodata_section() 476 find_data_section(Elf* elf_handle) in find_data_section() 485 find_data1_section(Elf* elf_handle) in find_data1_section() 496 find_opd_section(Elf* elf_handle) in find_opd_section() [all …]
|
/external/elfutils/libelf/ |
D | libelf.h | 216 typedef struct Elf Elf; typedef 227 extern Elf *elf_begin (int __fildes, Elf_Cmd __cmd, Elf *__ref); 230 extern Elf *elf_clone (Elf *__elf, Elf_Cmd __cmd); 233 extern Elf *elf_memory (char *__image, size_t __size); 236 extern Elf_Cmd elf_next (Elf *__elf); 239 extern int elf_end (Elf *__elf); 242 extern int64_t elf_update (Elf *__elf, Elf_Cmd __cmd); 245 extern Elf_Kind elf_kind (Elf *__elf) __pure_attribute__; 248 extern int64_t elf_getbase (Elf *__elf); 252 extern char *elf_getident (Elf *__elf, size_t *__nbytes); [all …]
|
D | libelfP.h | 46 #define ElfW2_(Bits, Name) Elf##Bits##_##Name 221 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. */ 445 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address, 447 Elf_Cmd cmd, Elf *parent) 454 extern int __libelf_next_arhdr_wrlock (Elf *elf) internal_function; 457 extern char *__libelf_readall (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() 191 || (offsetof (struct Elf, state.elf32.scns) in elf_end() 192 == offsetof (struct Elf, state.elf64.scns)) in elf_end() 203 || (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); 171 extern void *gelf_newehdr (Elf *__elf, int __class); 174 extern Elf_Scn *gelf_offscn (Elf *__elf, GElf_Off __offset); 183 extern GElf_Phdr *gelf_getphdr (Elf *__elf, int __ndx, GElf_Phdr *__dst); 186 extern int gelf_update_phdr (Elf *__elf, int __ndx, GElf_Phdr *__src); 191 extern void *gelf_newphdr (Elf *__elf, size_t __phnum); 199 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 | 51 static inline Elf * 53 Elf_Cmd cmd, Elf *parent) in file_read_ar() 55 Elf *elf; in file_read_ar() 277 static Elf * 279 int64_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) in file_read_elf() 320 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf() 327 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf() 328 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf() 542 Elf * 545 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()
|
/external/elfutils/libebl/ |
D | eblopenbackend.c | 44 Ebl *i386_init (Elf *, GElf_Half, Ebl *); 45 Ebl *sh_init (Elf *, GElf_Half, Ebl *); 46 Ebl *x86_64_init (Elf *, GElf_Half, Ebl *); 47 Ebl *ia64_init (Elf *, GElf_Half, Ebl *); 48 Ebl *alpha_init (Elf *, GElf_Half, Ebl *); 49 Ebl *arm_init (Elf *, GElf_Half, Ebl *); 50 Ebl *aarch64_init (Elf *, GElf_Half, Ebl *); 51 Ebl *sparc_init (Elf *, GElf_Half, Ebl *); 52 Ebl *ppc_init (Elf *, GElf_Half, Ebl *); 53 Ebl *ppc64_init (Elf *, GElf_Half, Ebl *); [all …]
|
/external/elfutils/libdwfl/ |
D | open.c | 53 decompress (int fd __attribute__ ((unused)), Elf **elf) in decompress() 83 Elf *memelf = elf_memory (buffer, size); in decompress() 104 what_kind (int fd, Elf **elfp, Elf_Kind *kind, bool *may_close_fd) in what_kind() 126 libdw_open_elf (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok, in libdw_open_elf() 131 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); in libdw_open_elf() 152 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in libdw_open_elf() 195 __libdw_open_file (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok) in __libdw_open_file() 201 __libdw_open_elf (int fd, Elf **elfp) in __libdw_open_elf()
|
D | libdwflP.h | 112 Elf *core; /* non-NULL if we need to free it. */ 151 Elf *elf; 197 Elf *alt_elf; /* Elf for alt Dwarf. */ 377 dwfl_adjusted_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr) in dwfl_adjusted_st_value() 387 dwfl_deadjust_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr) in dwfl_deadjust_st_value() 421 Elf *elf; 460 Elf **elfp, Dwarf_Addr *biasp, 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, 495 extern Dwfl_Error __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, [all …]
|
D | libdwfl.h | 57 char **file_name, Elf **elfp); 280 char **, Elf **); 314 char **, Elf **); 356 extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable); 372 char **file_name, Elf **); 413 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias) 466 Elf **elfp, Dwarf_Addr *bias) 493 GElf_Word *shndxp, Elf **elfp, 702 bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, 710 extern int dwfl_core_file_attach (Dwfl *dwfl, Elf *elf);
|
D | offline.c | 101 const char *file_name, int fd, Elf *elf); 103 const char *file_name, int fd, Elf *elf, 111 Elf *elf, int (*predicate) (const char *module, in process_file() 132 Elf *elf) in process_elf() 169 int fd, Elf *member, Dwfl_Module **mod) in process_archive_member() 246 Elf *archive, in process_archive() 251 Elf *member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive); in process_archive() 280 Elf *elf; in __libdwfl_report_offline()
|
D | dwfl_module_addrsym.c | 43 Elf *addr_symelf; 50 Elf *closest_elf; 57 Elf *sizeless_elf; 66 GElf_Addr value, Elf *symelf, GElf_Word shndx) in same_section() 134 Elf *elf, bool resolved) in try_sym_value() 206 Elf *elf; in search_table() 246 Elf **elfp, Dwarf_Addr *biasp, bool _adjust_st_value) in __libdwfl_addrsym() 330 GElf_Word *shndxp, Elf **elfp, Dwarf_Addr *bias) in INTDEF()
|
/external/llvm-project/llvm/tools/llvm-objdump/ |
D | ELFDump.cpp | 28 static Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> &Elf) { in getDynamicStrTab() argument 29 auto DynamicEntriesOrError = Elf.dynamicEntries(); in getDynamicStrTab() 35 auto MappedAddrOrError = Elf.toMappedAddr(Dyn.getPtr()); in getDynamicStrTab() 43 auto SectionsOrError = Elf.sections(); in getDynamicStrTab() 49 return Elf.getStringTableForSymtab(Sec); in getDynamicStrTab() 165 static void printDynamicSection(const ELFFile<ELFT> &Elf, StringRef Filename) { in printDynamicSection() argument 167 unwrapOrError(Elf.dynamicEntries(), Filename); in printDynamicSection() 172 MaxLen = std::max(MaxLen, Elf.getDynamicTagAsString(Dyn.d_tag).size()); in printDynamicSection() 180 std::string Str = Elf.getDynamicTagAsString(Dyn.d_tag); in printDynamicSection() 188 Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf); in printDynamicSection() [all …]
|
/external/bcc/src/cc/ |
D | bcc_elf.c | 36 static int openelf_fd(int fd, Elf **elf_out) { in openelf_fd() 47 static int openelf(const char *path, Elf **elf_out, int *fd_out) { in openelf() 126 static int listprobes(Elf *e, bcc_elf_probecb callback, const char *binpath, in listprobes() 174 Elf *e; in bcc_elf_foreach_usdt() 187 static Elf_Scn * get_section(Elf *e, const char *section_name, in get_section() 215 static int list_in_scn(Elf *e, Elf_Scn *section, size_t stridx, size_t symsize, in list_in_scn() 298 static int listsymbols(Elf *e, bcc_elf_symcb callback, void *payload, in listsymbols() 323 static Elf_Data * get_section_elf_data(Elf *e, const char *section_name) { in get_section_elf_data() 330 static int find_debuglink(Elf *e, char **debug_file, unsigned int *crc) { in find_debuglink() 346 static int find_buildid(Elf *e, char *buildid) { in find_buildid() [all …]
|
/external/elfutils/include/elfutils/ |
D | libdwfl.h | 57 char **file_name, Elf **elfp); 280 char **, Elf **); 314 char **, Elf **); 356 extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable); 372 char **file_name, Elf **); 413 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias) 466 Elf **elfp, Dwarf_Addr *bias) 493 GElf_Word *shndxp, Elf **elfp, 702 bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, 710 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/libdwelf/ |
D | dwelf_elf_begin.c | 39 Elf * 42 Elf *elf = NULL; in dwelf_elf_begin() 56 Elf *belf = elf_memory (badelf, EI_NIDENT); in dwelf_elf_begin()
|
/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()
|