Home
last modified time | relevance | path

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

12345678910

/third_party/libabigail/src/
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_handle);
[all …]
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_handle) in find_bss_section()
[all …]
/third_party/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.h47 #define ElfW2_(Bits, Name) Elf##Bits##_##Name
222 struct Elf *elf; /* The underlying ELF file. */
275 struct Elf struct
282 Elf *parent; argument
283 Elf *next; /* Used in list of archive descriptors. */ argument
388 Elf *children; /* List of all descriptors for this archive. */
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;
459 extern char *__libelf_readall (Elf *elf) internal_function;
[all …]
Delf_end.c42 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, state.elf64.scns)) in elf_end()
202 || (offsetof (struct Elf, state.elf32.shdr) in elf_end()
[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()
Dcommon.h66 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()
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.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 *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()
/third_party/elfutils/libebl/
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_Half, Ebl *);
[all …]
/third_party/elfutils/libdwfl/
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()
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 **elfp) in __libdw_open_elf()
DlibdwflP.h113 Elf *core; /* non-NULL if we need to free it. */
152 Elf *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()
424 Elf *elf;
463 Elf **elfp, Dwarf_Addr *biasp,
479 extern Dwfl_Error __libdwfl_relocate (Dwfl_Module *mod, Elf *file, bool debug)
490 extern Dwfl_Error __libdwfl_relocate_section (Dwfl_Module *mod, Elf *relocated,
498 extern Dwfl_Error __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf,
[all …]
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()
250 Elf *archive, in process_archive()
256 Elf *member = elf_begin (fd, ELF_C_READ_MMAP_PRIVATE, archive); in process_archive()
285 Elf *elf; in __libdwfl_report_offline()
332 Elf *elf; in INTDEF()
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 *elf);
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()
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 *elf, const char *executable) in dwfl_core_file_report()
[all …]
/third_party/skia/buildtools/third_party/eu-strip/
Dfix-elf-size.patch5 @@ -137,7 +137,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
14 @@ -152,7 +152,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
23 @@ -330,7 +330,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
32 @@ -352,9 +352,9 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
44 @@ -416,7 +416,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
53 @@ -430,7 +430,7 @@ __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum)
/third_party/elfutils/include/elfutils/
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 *elf);
/third_party/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.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/src/
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 *elf, const char *fullname) in show_segments()
[all …]
/third_party/elfutils/libdwelf/
Ddwelf_elf_begin.c38 Elf *
41 Elf *elf = NULL; in dwelf_elf_begin()
55 Elf *belf = elf_memory (badelf, EI_NIDENT); in dwelf_elf_begin()

12345678910