Home
last modified time | relevance | path

Searched refs:subelf (Results 1 – 12 of 12) sorted by relevance

/external/elfutils/tests/
Darls.c75 Elf *subelf = NULL; in handle() local
77 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle()
79 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle()
84 elf_end (subelf); in handle()
90 off_t off = elf_getaroff (subelf); in handle()
104 cmd = elf_next (subelf); in handle()
105 elf_end (subelf); in handle()
Darextract.c36 Elf *subelf; in main() local
72 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in main()
75 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in main()
88 offset = elf_getbase (subelf); in main()
132 if (elf_end (subelf) != 0 || elf_end (elf) != 0) in main()
146 cmd = elf_next (subelf); in main()
147 if (elf_end (subelf) != 0) in main()
Dsaridx.c142 Elf *subelf; in main() local
147 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in main()
150 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in main()
158 switch (elf_kind (subelf)) in main()
192 if (elf_kind (subelf) == ELF_K_ELF) in main()
197 if (gelf_getehdr (subelf, &ehdr) == NULL) in main()
225 cmd = elf_next (subelf); in main()
226 if (elf_end (subelf) != 0) in main()
Darsymtest.c87 Elf *subelf; in main() local
97 subelf = elf_begin (fd, ELF_C_READ, elf); in main()
98 if (subelf == NULL) in main()
105 arhdr = elf_getarhdr (subelf); in main()
117 if (elf_end (subelf) != 0) in main()
/external/elfutils/src/
Dar.c493 Elf *subelf; in do_oper_extract() local
494 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in do_oper_extract()
496 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in do_oper_extract()
500 index_off = elf_getaroff (subelf); in do_oper_extract()
584 char *data = elf_rawfile (subelf, &nleft); in do_oper_extract()
740 cmd = elf_next (subelf); in do_oper_extract()
741 if (elf_end (subelf) != 0) in do_oper_extract()
938 Elf *subelf; in do_oper_delete() local
939 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in do_oper_delete()
941 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in do_oper_delete()
[all …]
Dsize.c357 Elf *subelf; in handle_ar() local
359 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
362 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
364 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
365 handle_elf (subelf, new_prefix, arhdr->ar_name); in handle_ar()
366 else if (likely (elf_kind (subelf) == ELF_K_AR)) in handle_ar()
367 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name); in handle_ar()
371 cmd = elf_next (subelf); in handle_ar()
372 if (unlikely (elf_end (subelf) != 0)) in handle_ar()
Dobjdump.c294 Elf *subelf; in handle_ar() local
310 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
313 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
319 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
320 result |= handle_elf (subelf, new_prefix, arhdr->ar_name, in handle_ar()
322 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar()
323 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar()
334 cmd = elf_next (subelf); in handle_ar()
335 if (elf_end (subelf) != 0) in handle_ar()
Dnm.c417 Elf *subelf; in handle_ar() local
448 || (subelf = elf_begin (fd, cmd, elf)) == NULL in handle_ar()
449 || (arhdr = elf_getarhdr (subelf)) == NULL)) in handle_ar()
471 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
474 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
481 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
482 result |= handle_elf (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar()
484 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar()
485 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar()
496 cmd = elf_next (subelf); in handle_ar()
[all …]
Dstrip.c2736 Elf *subelf; in handle_ar() local
2739 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
2742 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
2744 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
2745 result |= handle_elf (fd, subelf, new_prefix, arhdr->ar_name, 0, NULL); in handle_ar()
2746 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar()
2747 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, NULL); in handle_ar()
2750 cmd = elf_next (subelf); in handle_ar()
2751 if (unlikely (elf_end (subelf) != 0)) in handle_ar()
Delflint.c246 Elf *subelf; in process_file() local
266 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in process_file()
268 kind = elf_kind (subelf); in process_file()
273 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in process_file()
276 process_file (fd, subelf, new_prefix, new_suffix, in process_file()
281 cmd = elf_next (subelf); in process_file()
282 if (elf_end (subelf) != 0) in process_file()
Dreadelf.c13098 Elf *subelf = NULL; in dump_archive_index() local
13100 || unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf)) in dump_archive_index()
13109 const Elf_Arhdr *h = elf_getarhdr (subelf); in dump_archive_index()
13113 elf_end (subelf); in dump_archive_index()
/external/elfutils/libdwfl/
Dopen.c155 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in libdw_open_elf() local
157 if (unlikely (subelf == NULL)) in libdw_open_elf()
161 subelf->parent = NULL; in libdw_open_elf()
162 subelf->flags |= elf->flags & (ELF_F_MMAPPED | ELF_F_MALLOCED); in libdw_open_elf()
165 elf = subelf; in libdw_open_elf()