Home
last modified time | relevance | path

Searched refs:Elf (Results 1 - 25 of 219) sorted by relevance

123456789

/third_party/libabigail/src/
H A Dabg-elf-helpers.h69 find_section(Elf* elf_handle,
74 find_section_by_name(Elf* elf_handle, const std::string& name);
77 find_section(Elf* elf_handle, Elf64_Word section_type);
80 find_symtab_section(Elf* elf_handle);
83 find_dynsym_section(Elf* elf_handle);
86 find_symbol_table_section(Elf* elf_handle);
89 find_symbol_table_section_index(Elf* elf_handle, size_t& symtab_index);
99 find_hash_table_section_index(Elf* elf_handle,
104 find_text_section(Elf* elf_handle);
107 find_bss_section(Elf* elf_handl
[all...]
H A Dabg-elf-helpers.cc309 find_section_by_name(Elf* elf_handle, const std::string& name) in find_section_by_name()
344 find_section(Elf* elf_handle, const std::string& name, Elf64_Word section_type) in find_section()
377 find_section(Elf* elf_handle, Elf64_Word section_type) in find_section()
396 find_symtab_section(Elf* elf_handle) in find_symtab_section()
407 find_dynsym_section(Elf* elf_handle) in find_dynsym_section()
425 find_symbol_table_section(Elf* elf_handle) in find_symbol_table_section()
457 find_symbol_table_section_index(Elf* elf_handle, size_t& symtab_index) in find_symbol_table_section_index()
478 find_hash_table_section_index(Elf* elf_handle, in find_hash_table_section_index()
519 find_text_section(Elf* elf_handle) in find_text_section()
528 find_bss_section(Elf* elf_handl
[all...]
/third_party/elfutils/libelf/
H A 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 *__el
[all...]
H A DlibelfP.h47 #define ElfW2_(Bits, Name) Elf##Bits##_##Name
222 struct Elf *elf; /* The underlying ELF file. */
237 the Elf was mmapped. */
270 int64_t offset; /* The original raw offset in the Elf image. */
275 struct Elf struct
282 Elf *parent;
283 Elf *next; /* Used in list of archive descriptors. */
388 Elf *children; /* List of all descriptors for this archive. */
446 /* Create Elf descriptor from memory image. */
447 extern Elf *__libelf_read_mmaped_fil
[all...]
H A Delf_end.c1 /* Free resources associated with Elf descriptor.
42 elf_end (Elf *elf) in elf_end()
44 Elf *parent; in elf_end()
94 struct Elf *child = parent->state.ar.children; in elf_end()
117 || (offsetof (struct Elf, state.elf32.rawchunks) in elf_end()
118 == offsetof (struct Elf, state.elf64.rawchunks)) in elf_end()
131 || (offsetof (struct Elf, state.elf32.scns) in elf_end()
132 == offsetof (struct Elf, state.elf64.scns)) in elf_end()
190 || (offsetof (struct Elf, state.elf32.scns) in elf_end()
191 == offsetof (struct Elf, stat in elf_end()
[all...]
H A 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()
H A 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 *__el
[all...]
H A Dcommon.h65 /* Allocate an Elf descriptor and fill in the generic information. */
66 static inline Elf *
69 Elf_Cmd cmd, Elf *parent, Elf_Kind kind, size_t extra) in allocate_elf()
71 Elf *result = calloc (1, sizeof (Elf) + extra); in allocate_elf()
95 libelf_acquire_all (Elf *elf) in libelf_acquire_all()
101 Elf *child = elf->state.ar.children; in libelf_acquire_all()
115 libelf_release_all (Elf *elf) in libelf_release_all()
119 Elf *child = elf->state.ar.children; in libelf_release_all()
H A 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()
H A Delf_begin.c49 static inline Elf *
51 Elf_Cmd cmd, Elf *parent) in file_read_ar()
53 Elf *elf; in file_read_ar()
279 static Elf *
281 int64_t offset, size_t maxsize, Elf_Cmd cmd, Elf *parent) in file_read_elf()
322 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, in file_read_elf()
329 assert (offsetof (struct Elf, state.elf32.scns) in file_read_elf()
330 == offsetof (struct Elf, state.elf64.scns)); in file_read_elf()
548 Elf *
551 size_t maxsize, Elf_Cmd cmd, Elf *paren in __libelf_read_mmaped_file()
[all...]
H A 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()
H A 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()
/third_party/elfutils/libebl/
H A Deblopenbackend.c43 Ebl *i386_init (Elf *, GElf_Half, Ebl *);
44 Ebl *sh_init (Elf *, GElf_Half, Ebl *);
45 Ebl *x86_64_init (Elf *, GElf_Half, Ebl *);
46 Ebl *ia64_init (Elf *, GElf_Half, Ebl *);
47 Ebl *alpha_init (Elf *, GElf_Half, Ebl *);
48 Ebl *arm_init (Elf *, GElf_Half, Ebl *);
49 Ebl *aarch64_init (Elf *, GElf_Half, Ebl *);
50 Ebl *sparc_init (Elf *, GElf_Half, Ebl *);
51 Ebl *ppc_init (Elf *, GElf_Half, Ebl *);
52 Ebl *ppc64_init (Elf *, GElf_Hal
[all...]
/third_party/elfutils/libdwfl/
H A Dopen.c52 decompress (int fd __attribute__ ((unused)), Elf **elf) in decompress()
85 Elf *memelf = elf_memory (buffer, size); in decompress()
106 what_kind (int fd, Elf **elfp, Elf_Kind *kind, bool *may_close_fd) in what_kind()
128 libdw_open_elf (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok, in libdw_open_elf()
133 Elf *elf = in libdw_open_elf()
155 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in libdw_open_elf()
176 /* This basically means, we keep a ELF_K_NONE Elf handle and return it. */ in libdw_open_elf()
198 __libdw_open_file (int *fdp, Elf **elfp, bool close_on_fail, bool archive_ok) in __libdw_open_file()
205 __libdw_open_elf_memory (char *data, size_t size, Elf **elfp, bool archive_ok) in __libdw_open_elf_memory()
221 __libdw_open_elf (int fd, Elf **elf
[all...]
H A DlibdwflP.h113 Elf *core; /* non-NULL if we need to free it. */
152 Elf *elf;
193 char *elfdir; /* The dir where we found the main Elf. */
198 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()
423 /* Elf for /proc/PID/exe. Set to NULL if it couldn't be opened. */
424 Elf *elf;
463 Elf **elf
[all...]
H A Dlibdwfl.h60 char **file_name, Elf **elfp);
287 char **, Elf **);
321 char **, Elf **);
363 extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable);
379 char **file_name, Elf **);
420 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
473 Elf **elfp, Dwarf_Addr *bias)
500 GElf_Word *shndxp, Elf **elfp,
709 bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid,
717 extern int dwfl_core_file_attach (Dwfl *dwfl, Elf *el
[all...]
H A Doffline.c102 const char *file_name, int fd, Elf *elf);
104 const char *file_name, int fd, Elf *elf,
112 Elf *elf, int (*predicate) (const char *module, in process_file()
133 Elf *elf) in process_elf()
170 int fd, Elf *member, Dwfl_Module **mod) in process_archive_member()
232 On module teardown we will close it only on the last Elf reference. */ in process_archive_member()
250 Elf *archive, in process_archive()
256 Elf *member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive); in process_archive()
267 /* We can drop the archive Elf handle even if we're still using members in process_archive()
285 Elf *el in __libdwfl_report_offline()
[all...]
H A Dcore-file.c37 static inline Elf *
52 static Elf *
53 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()
427 __libdwfl_dynamic_vaddr_get (Elf *elf, GElf_Addr *vaddrp) in __libdwfl_dynamic_vaddr_get()
449 dwfl_core_file_report (Dwfl *dwfl, Elf *el
[all...]
H A 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()
/third_party/elfutils/include/elfutils/
H A Dlibdwfl.h60 char **file_name, Elf **elfp);
287 char **, Elf **);
321 char **, Elf **);
363 extern int dwfl_core_file_report (Dwfl *dwfl, Elf *elf, const char *executable);
379 char **file_name, Elf **);
420 extern Elf *dwfl_module_getelf (Dwfl_Module *, GElf_Addr *bias)
473 Elf **elfp, Dwarf_Addr *bias)
500 GElf_Word *shndxp, Elf **elfp,
709 bool dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid,
717 extern int dwfl_core_file_attach (Dwfl *dwfl, Elf *el
[all...]
/third_party/elfutils/tests/
H A 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()
H A Dnewdata.c39 add_section_data (Elf *elf, char *buf, size_t len) in add_section_data()
72 static Elf *
75 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_WRITE_MMAP : ELF_C_WRITE, NULL); in create_elf()
156 static Elf *
160 Elf *elf = elf_begin (fd, use_mmap ? ELF_C_RDWR_MMAP : ELF_C_RDWR, NULL); in read_elf()
171 check_section_size (Elf *elf, size_t size) in check_section_size()
199 check_section_data (Elf *elf, char *data, size_t len, size_t times) in check_section_data()
254 Elf *elf = create_elf (fd, class, use_mmap); in check_elf()
/third_party/elfutils/libdwelf/
H A Ddwelf_elf_begin.c38 Elf *
41 Elf *elf = NULL; in dwelf_elf_begin()
46 /* Elf wasn't usable. Make sure there is a proper elf error in dwelf_elf_begin()
55 Elf *belf = elf_memory (badelf, EI_NIDENT); in dwelf_elf_begin()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/
H A DObjectYAML.cpp25 if (ObjectFile.Elf) in mapping()
26 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()
/third_party/elfutils/src/
H A Dsize.c95 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname);
98 static void handle_elf (Elf *elf, const char *fullname, const char *fname);
276 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); in process_file()
317 print_header (Elf *elf) in print_header()
340 handle_ar (int fd, Elf *elf, const char *prefix, const char *fname) in handle_ar()
357 Elf *subelf; in handle_ar()
387 show_sysv (Elf *elf, const char *prefix, const char *fname, in show_sysv()
462 show_sysv_one_line (Elf *elf) in show_sysv_one_line()
514 show_bsd (Elf *elf, const char *prefix, const char *fname, in show_bsd()
588 show_segments (Elf *el
[all...]

Completed in 15 milliseconds

123456789