Home
last modified time | relevance | path

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

12345678910

/external/elfutils/libelf/
Dlibelf.h216 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 …]
DlibelfP.h49 #define ElfW2_(Bits, Name) Elf##Bits##_##Name
224 struct Elf *elf; /* The underlying ELF file. */
276 struct Elf struct
283 Elf *parent; argument
284 Elf *next; /* Used in list of archive descriptors. */ argument
389 Elf *children; /* List of all descriptors for this archive. */
442 extern Elf_Type __libelf_data_type (Elf *elf, int sh_type, GElf_Xword align)
447 extern Elf *__libelf_read_mmaped_file (int fildes, void *map_address,
449 Elf_Cmd cmd, Elf *parent)
456 extern int __libelf_next_arhdr_wrlock (Elf *elf) internal_function;
[all …]
Delf_end.c43 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 …]
Dcommon.h69 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()
Dgelf.h153 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 …]
Delf_newscn.c44 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()
Delf_clone.c40 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()
Delf_begin.c51 static inline Elf *
53 Elf_Cmd cmd, Elf *parent) in file_read_ar()
55 Elf *elf; in file_read_ar()
267 static Elf *
269 off_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) in file_read_elf()
310 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf()
317 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf()
318 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf()
532 Elf *
535 size_t maxsize, Elf_Cmd cmd, Elf *parent) in __libelf_read_mmaped_file()
[all …]
Delf_getshdrnum.c43 __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()
Dgelf_getehdr.c44 __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()
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-objdump/
DELFDump.cpp25 Expected<StringRef> getDynamicStrTab(const ELFFile<ELFT> *Elf) { in getDynamicStrTab() argument
28 auto DynamicEntriesOrError = Elf->dynamicEntries(); in getDynamicStrTab()
34 auto MappedAddrOrError = Elf->toMappedAddr(Dyn.getPtr()); in getDynamicStrTab()
42 auto SectionsOrError = Elf->sections(); in getDynamicStrTab()
48 return Elf->getStringTableForSymtab(Sec); in getDynamicStrTab()
55 void printDynamicSection(const ELFFile<ELFT> *Elf, StringRef Filename) { in printDynamicSection() argument
56 auto ProgramHeaderOrError = Elf->program_headers(); in printDynamicSection()
60 auto DynamicEntriesOrError = Elf->dynamicEntries(); in printDynamicSection()
69 StringRef Str = StringRef(Elf->getDynamicTagAsString(Dyn.d_tag)); in printDynamicSection()
82 Expected<StringRef> StrTabOrErr = getDynamicStrTab(Elf); in printDynamicSection()
/external/elfutils/libdwfl/
DlibdwflP.h110 Elf *core; /* non-NULL if we need to free it. */
152 Elf *elf;
198 Elf *alt_elf; /* Elf for alt Dwarf. */
379 dwfl_adjusted_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr) in dwfl_adjusted_st_value()
389 dwfl_deadjust_st_value (Dwfl_Module *mod, Elf *symelf, GElf_Addr addr) in dwfl_deadjust_st_value()
423 Elf *elf;
462 Elf **elfp, Dwarf_Addr *biasp,
478 extern Dwfl_Error __libdwfl_relocate (Dwfl_Module *mod, Elf *file, bool debug)
489 extern Dwfl_Error __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
497 extern Dwfl_Error __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf,
[all …]
Dopen.c49 decompress (int fd __attribute__ ((unused)), Elf **elf) in decompress()
77 Elf *memelf = elf_memory (buffer, size); in decompress()
98 what_kind (int fd, Elf **elfp, Elf_Kind *kind, bool *may_close_fd) in what_kind()
120 libdw_open_elf (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok, in libdw_open_elf()
125 Elf *elf = elf_begin (*fdp, ELF_C_READ_MMAP_PRIVATE, NULL); in libdw_open_elf()
146 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in libdw_open_elf()
185 __libdw_open_file (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok) in __libdw_open_file()
191 __libdw_open_elf (int fd, Elf **elfp) in __libdw_open_elf()
Dlibdwfl.h57 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);
Doffline.c101 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()
Dcore-file.c42 static inline Elf *
57 static Elf *
58 elf_begin_rand (Elf *parent, off_t offset, off_t size, off_t *next) in elf_begin_rand()
125 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes) in dwfl_report_core_segments()
178 void *arg, Elf **elfp) in core_file_read_eagerly()
180 Elf *core = arg; in core_file_read_eagerly()
254 Elf *elf, GElf_Off start, int *pndx, in do_more()
288 Elf *elf = arg; in dwfl_elf_phdr_memory_callback()
423 __libdwfl_dynamic_vaddr_get (Elf *elf, GElf_Addr *vaddrp) in __libdwfl_dynamic_vaddr_get()
444 dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable) in dwfl_core_file_report()
[all …]
Ddwfl_module_addrsym.c43 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/bcc/src/cc/
Dbcc_elf.c36 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 int list_in_scn(Elf *e, Elf_Scn *section, size_t stridx, size_t symsize, in list_in_scn()
225 static int listsymbols(Elf *e, bcc_elf_symcb callback, void *payload, in listsymbols()
250 static Elf_Data * get_section_elf_data(Elf *e, const char *section_name) { in get_section_elf_data()
272 static int find_debuglink(Elf *e, char **debug_file, unsigned int *crc) { in find_debuglink()
288 static int find_buildid(Elf *e, char *buildid) { in find_buildid()
398 static char *find_debug_via_debuglink(Elf *e, const char *binpath, in find_debug_via_debuglink()
[all …]
/external/elfutils/include/elfutils/
Dlibdwfl.h57 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/elfutils/tests/
Dsectiondump.c31 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()
Dnewdata.c38 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/llvm/lib/ObjectYAML/
DObjectYAML.cpp23 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/src/
Dsize.c96 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname);
99 static void handle_elf (Elf *elf, const char *fullname, const char *fname);
277 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); in process_file()
318 print_header (Elf *elf) in print_header()
341 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) in handle_ar()
358 Elf *subelf; in handle_ar()
388 show_sysv (Elf *elf, const char *prefix, const char *fname, in show_sysv()
461 show_sysv_one_line (Elf *elf) in show_sysv_one_line()
511 show_bsd (Elf *elf, const char *prefix, const char *fname, in show_bsd()
582 show_segments (Elf *elf, const char *fullname) in show_segments()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ObjectYAML/
DObjectYAML.cpp26 if (ObjectFile.Elf) in mapping()
27 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
37 ObjectFile.Elf.reset(new ELFYAML::Object()); in mapping()
38 MappingTraits<ELFYAML::Object>::mapping(IO, *ObjectFile.Elf); in mapping()
/external/elfutils/libdwelf/
Ddwelf_elf_begin.c39 Elf *
42 Elf *elf = NULL; in dwelf_elf_begin()
56 Elf *belf = elf_memory (badelf, EI_NIDENT); in dwelf_elf_begin()

12345678910