Searched defs:elf (Results 51 - 75 of 103) sorted by relevance

12345

/external/elfutils/src/src/
H A Darlib.c204 arlib_add_symbols (Elf *elf, const char *arfname, const char *membername, argument
216 if (elf_kind (elf) != ELF_K_ELF)
220 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
236 while ((scn = elf_nextscn (elf, scn)) != NULL)
264 const char *symname = elf_strptr (elf, shdr->sh_link, sym->st_name);
H A Dranlib.c138 copy_content (Elf *elf, int newfd, off_t off, size_t n) argument
141 char *rawfile = elf_rawfile (elf, &len);
198 Elf *elf; local
200 while ((elf = elf_begin (fd, cmd, arelf)) != NULL)
202 Elf_Arhdr *arhdr = elf_getarhdr (elf);
208 index_off = elf_getaroff (elf);
213 arlib_add_symbols (elf, fname, arhdr->ar_name, cur_off);
219 cmd = elf_next (elf);
220 if (elf_end (elf) != 0)
H A Dfindtextrel.c94 GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw,
225 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local
226 if (elf == NULL)
235 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
241 elf_end (elf);
259 while ((scn = elf_nextscn (elf, scn)) != NULL
328 if (elf_getphdrnum (elf, &phnum) != 0)
336 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
374 Dwarf *dw = dwarf_begin_elf (elf, DWARF_C_READ, NULL);
400 while ((scn = elf_nextscn (elf, sc
505 check_rel(size_t nsegments, struct segments segments[nsegments], GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw, const char *fname, bool more_than_one, void **knownsrcs) argument
[all...]
H A Dsize.c100 static int handle_ar (int fd, Elf *elf, const char *prefix, const char *fname);
103 static void handle_elf (Elf *elf, const char *fullname, const char *fname);
298 Elf *elf = elf_begin (fd, ELF_C_READ_MMAP, NULL); local
299 if (likely (elf != NULL))
301 if (elf_kind (elf) == ELF_K_ELF)
303 handle_elf (elf, NULL, fname);
305 if (unlikely (elf_end (elf) != 0))
313 else if (likely (elf_kind (elf) == ELF_K_AR))
315 int result = handle_ar (fd, elf, NULL, fname);
324 if (unlikely (elf_end (elf) !
339 print_header(Elf *elf) argument
362 handle_ar(int fd, Elf *elf, const char *prefix, const char *fname) argument
407 show_sysv(Elf *elf, const char *prefix, const char *fname, const char *fullname) argument
480 show_sysv_one_line(Elf *elf) argument
530 show_bsd(Elf *elf, const char *prefix, const char *fname, const char *fullname) argument
601 show_segments(Elf *elf, const char *fullname) argument
647 handle_elf(Elf *elf, const char *prefix, const char *fname) argument
[all...]
H A Dstrings.c49 static int read_elf (Elf *elf, int fd, const char *fname, off64_t fdlen);
193 Elf *elf = NULL; local
197 || (elf = elf_begin (fd, ELF_C_READ, NULL)) == NULL
198 || elf_kind (elf) != ELF_K_ELF)
201 result |= read_elf (elf, fd, fname, fdlen);
204 elf_end (elf);
706 read_elf (Elf *elf, int fd, const char *fname, off64_t fdlen) argument
714 Elf_Scn *scn = elf_nextscn (elf, NULL);
731 while ((scn = elf_nextscn (elf, scn)) != NULL);
/external/elfutils/src/tests/
H A Dasm-tst3.c61 Elf *elf; local
148 elf = elf_begin (fd, ELF_C_READ, NULL);
149 if (elf == NULL)
155 if (elf_kind (elf) != ELF_K_ELF)
162 ehdr = gelf_getehdr (elf, &ehdr_mem);
176 scn = elf_getscn (elf, cnt);
193 if (strcmp (elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
197 elf_strptr (elf, ehdr->e_shstrndx, shdr->sh_name),
243 / gelf_fsize (elf, ELF_T_SYM, 1, EV_CURRENT));
283 elf_strptr (elf, shd
[all...]
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; local
56 elf = elf_begin (fd, ELF_C_READ, NULL);
57 if (elf == NULL)
63 if (handle_section (elf, elf_getscn (elf, atoi (argv[cnt]))) != 0)
69 if (elf_end (elf) != 0)
78 handle_section (Elf *elf, Elf_Scn *scn) argument
87 ehdr = gelf_getehdr (elf,
163 print_symtab(Elf *elf, Elf_Data *data) argument
[all...]
H A Ddwflsyms.c22 #include <elf.h>
88 elf_section_name (Elf *elf, GElf_Word shndx) argument
92 Elf_Scn *scn = elf_getscn (elf, shndx);
94 gelf_getehdr (elf, &ehdr);
95 return elf_strptr (elf, ehdr.e_shstrndx, shdr.sh_name);
99 addr_in_section (Elf *elf, GElf_Word shndx, GElf_Addr addr) argument
102 Elf_Scn *scn = elf_getscn (elf, shndx);
124 Elf *elf; local
137 &elf, &bias);
140 gelf_getehdr (elf,
[all...]
H A Dbacktrace.c371 Elf *elf = dwfl_module_getelf (data.mod, &loadbase); local
372 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
/external/elfutils/src/backends/
H A Dcommon-reloc.c102 EBLHOOK(reloc_valid_use) (Elf *elf, int reloc) argument
107 GElf_Ehdr *ehdr = gelf_getehdr (elf, &ehdr_mem);
/external/elfutils/src/libdwelf/
H A Ddwelf_elf_gnu_build_id.c41 find_elf_build_id (Dwfl_Module *mod, int e_type, Elf *elf, argument
68 Elf_Scn *scn = elf_nextscn (elf, NULL);
74 if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
83 GElf_Phdr *phdr = gelf_getphdr (elf, i, &phdr_mem);
85 result = check_notes (elf_getdata_rawchunk (elf,
105 else if (__libdwfl_relocate_value (mod, elf, &shstrndx,
111 while (result == 0 && (scn = elf_nextscn (elf, scn)) != NULL);
118 __libdwfl_find_elf_build_id (Dwfl_Module *mod, Elf *elf, argument
122 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
131 return find_elf_build_id (mod, ehdr->e_type, elf,
136 dwelf_elf_gnu_build_id(Elf *elf, const void **build_idp) argument
[all...]
/external/elfutils/src/libdwfl/
H A Ddwfl_frame.c135 dwfl_attach_state (Dwfl *dwfl, Elf *elf, pid_t pid, argument
158 if (elf != NULL)
160 ebl = ebl_openbackend (elf);
173 is called from dwfl_linux_proc_attach with elf == NULL.
H A Delf-from-memory.c359 Elf *elf = elf_memory ((char *) buffer, contents_size); local
360 if (elf == NULL)
366 elf->flags |= ELF_F_MALLOCED;
369 return elf;
H A Doffline.c53 if (mod->debug.elf == NULL)
61 Elf_Scn *ourscn = elf_getscn (mod->debug.elf, shndx);
64 while ((scn = elf_nextscn (mod->debug.elf, scn)) != ourscn)
76 while ((scn = elf_nextscn (mod->main.elf, scn)) != NULL)
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,
110 switch (elf_kind (elf))
114 __libdwfl_seterrno (elf == NULL ? DWFL_E_LIBELF : DWFL_E_BADELF);
118 return process_elf (dwfl, name, file_name, fd, elf);
106 process_file(Dwfl *dwfl, const char *name, const char *file_name, int fd, Elf *elf, int (*predicate) (const char *module, const char *file)) argument
127 process_elf(Dwfl *dwfl, const char *name, const char *file_name, int fd, Elf *elf) argument
273 Elf *elf; local
[all...]
H A Ddwfl_module_addrsym.c112 Elf *elf, bool resolved)
149 closest_elf = elf;
155 resolved ? mod->main.elf : elf, shndx))
164 sizeless_elf = elf;
184 closest_elf = elf;
198 Elf *elf; local
201 &shndx, &elf, NULL,
210 try_sym_value (value, &sym, name, shndx, elf, resolved);
217 adjusted_st_value = dwfl_adjusted_st_value (mod, elf,
110 try_sym_value(GElf_Addr value, GElf_Sym *sym, const char *name, GElf_Word shndx, Elf *elf, bool resolved) argument
[all...]
H A Ddwfl_report_elf.c43 __libdwfl_elf_address_range (Elf *elf, GElf_Addr base, bool add_p_vaddr, argument
49 GElf_Ehdr ehdr_mem, *ehdr = gelf_getehdr (elf, &ehdr_mem);
71 while ((scn = elf_nextscn (elf, scn)) != NULL)
105 prev_scn = elf_nextscn (elf, prev_scn);
177 if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
181 GElf_Phdr phdr_mem, *ph = gelf_getphdr (elf, i, &phdr_mem);
204 GElf_Phdr phdr_mem, *ph = gelf_getphdr (elf, i, &phdr_mem);
240 int fd, Elf *elf, GElf_Addr base, bool add_p_vaddr,
245 if (! __libdwfl_elf_address_range (elf, base, add_p_vaddr, sanity, &vaddr,
267 if (m->main.elf
239 __libdwfl_report_elf(Dwfl *dwfl, const char *name, const char *file_name, int fd, Elf *elf, GElf_Addr base, bool add_p_vaddr, bool sanity) argument
302 Elf *elf; local
[all...]
H A Dcore-file.c123 dwfl_report_core_segments (Dwfl *dwfl, Elf *elf, size_t phnum, GElf_Phdr *notes) argument
136 GElf_Phdr *phdr = gelf_getphdr (elf, ndx, &phdr_mem);
236 Elf *elf = arg; local
241 if (elf->map_address == NULL)
252 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL))
278 if (unlikely (gelf_getphdr (elf, ndx++, &phdr) == NULL))
302 if (elf->map_address != NULL)
303 (void) more (elf->maximum_size - start);
307 if (unlikely (end > elf->maximum_size))
308 end = elf
402 __libdwfl_dynamic_vaddr_get(Elf *elf, GElf_Addr *vaddrp) argument
423 dwfl_core_file_report(Dwfl *dwfl, Elf *elf, const char *executable) argument
[all...]
H A Drelocate.c38 __libdwfl_relocate_value (Dwfl_Module *mod, Elf *elf, size_t *shstrndx, argument
47 Elf_Scn *refscn = elf_getscn (elf, shndx);
58 && unlikely (elf_getshdrstrndx (elf, shstrndx) < 0))
61 const char *name = elf_strptr (elf, *shstrndx, refshdr->sh_name);
114 if (mod->symfile == NULL || mod->symfile->elf != relocated)
159 cache->symelf = mod->symfile->elf;
205 || referer->symfile->elf != symtab->symelf);
262 sym->st_value = dwfl_adjusted_st_value (m, m->symfile->elf,
270 return __libdwfl_relocate_value (m, m->symfile->elf,
/external/google-breakpad/src/common/linux/
H A Dfile_id_unittest.cc32 #include <elf.h>
109 void GetElfContents(ELF& elf) { argument
111 ASSERT_TRUE(elf.GetContents(&contents));
134 ELF elf(EM_386, TypeParam::kClass, kLittleEndian);
139 elf.AddSection(".text", text, SHT_PROGBITS);
140 elf.Finish();
141 this->GetElfContents(elf);
164 ELF elf(EM_386, TypeParam::kClass, kLittleEndian);
167 elf.AddSection(".text", text, SHT_PROGBITS);
171 elf
[all...]
/external/google-breakpad/src/common/solaris/
H A Dfile_id.cc36 #include <elf.h>
57 AutoElfEnder(Elf *elf) : elf_(elf) {} argument
63 // Find the text section in elf object file.
81 Elf *elf = elf_begin(fd, ELF_C_READ, NULL); local
82 AutoElfEnder elfEnder(elf);
84 if (gelf_getehdr(elf, &elf_header) == (GElf_Ehdr *)NULL) {
85 print_message2(2, "failed to read elf header: %s\n", elf_errmsg(-1));
102 while ((scn = elf_nextscn(elf, scn)) != NULL) {
109 const char *section_name = elf_strptr(elf, elf_heade
[all...]
/external/ltrace/
H A Dltrace-elf.h43 Elf *elf; member in struct:ltelf
/external/elfutils/src/libdw/
H A Ddwarf_getcfi_elf.c44 allocate_cfi (Elf *elf, GElf_Addr vaddr) argument
53 cfi->e_ident = (unsigned char *) elf_getident (elf, NULL);
126 getcfi_gnu_eh_frame (Elf *elf, const GElf_Ehdr *ehdr, const GElf_Phdr *phdr) argument
131 Elf_Data *data = elf_getdata_rawchunk (elf, phdr->p_offset, phdr->p_filesz,
161 if (elf_rawfile (elf, &filesize) != NULL)
164 data = elf_getdata_rawchunk (elf, eh_frame_offset, eh_frame_size, ELF_T_BYTE);
170 Dwarf_CFI *cfi = allocate_cfi (elf, eh_frame_ptr);
188 getcfi_phdr (Elf *elf, const GElf_Ehdr *ehdr) argument
191 if (unlikely (elf_getphdrnum (elf, &phnum) != 0))
197 GElf_Phdr *phdr = gelf_getphdr (elf,
209 getcfi_scn_eh_frame(Elf *elf, const GElf_Ehdr *ehdr, Elf_Scn *scn, GElf_Shdr *shdr, Elf_Scn *hdr_scn, GElf_Addr hdr_vaddr) argument
254 getcfi_shdr(Elf *elf, const GElf_Ehdr *ehdr) argument
[all...]
/external/elfutils/src/libelf/
H A Delf_begin.c56 Elf *elf; local
59 elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent,
61 if (elf != NULL)
65 elf->state.ar.offset = offset + SARMAG;
67 elf->state.ar.elf_ar_hdr.ar_rawname = elf->state.ar.raw_name;
70 return elf;
282 Elf *elf = allocate_elf (fildes, map_address, offset, maxsize, cmd, parent, local
284 if (elf == NULL)
291 elf
664 read_long_names(Elf *elf) argument
[all...]
/external/elfutils/src/libasm/
H A DlibasmP.h150 Elf *elf; member in union:AsmCtx::__anon4546
250 Elf *elf; member in struct:DisasmCtx
/external/libvpx/libvpx/build/make/
H A Dobj_int_extract.c215 #include "elf.h"
223 if(!elf->le_data) {log_msg("Big Endian data not supported yet!\n");goto bail;}\
241 int parse_elf_header(elf_obj_t *elf) { argument
244 COPY_STRUCT(&elf->e_ident, elf->buf, 0, elf->sz);
245 res = elf->e_ident[EI_MAG0] == ELFMAG0;
246 res &= elf->e_ident[EI_MAG1] == ELFMAG1;
247 res &= elf->e_ident[EI_MAG2] == ELFMAG2;
248 res &= elf
300 parse_elf_section(elf_obj_t *elf, int idx, Elf32_Shdr *hdr32, Elf64_Shdr *hdr64) argument
340 parse_elf_string_table(elf_obj_t *elf, int s_idx, int idx) argument
364 parse_elf_symbol(elf_obj_t *elf, unsigned int ofst, Elf32_Sym *sym32, Elf64_Sym *sym64) argument
388 elf_obj_t elf; local
[all...]

Completed in 433 milliseconds

12345