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.c495 Elf *subelf; in do_oper_extract() local
496 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in do_oper_extract()
498 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in do_oper_extract()
502 index_off = elf_getaroff (subelf); in do_oper_extract()
586 char *data = elf_rawfile (subelf, &nleft); in do_oper_extract()
742 cmd = elf_next (subelf); in do_oper_extract()
743 if (elf_end (subelf) != 0) in do_oper_extract()
941 Elf *subelf; in do_oper_delete() local
942 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in do_oper_delete()
944 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in do_oper_delete()
[all …]
Dsize.c358 Elf *subelf; in handle_ar() local
360 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
363 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
365 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
366 handle_elf (subelf, new_prefix, arhdr->ar_name); in handle_ar()
367 else if (likely (elf_kind (subelf) == ELF_K_AR)) in handle_ar()
368 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name); in handle_ar()
372 cmd = elf_next (subelf); in handle_ar()
373 if (unlikely (elf_end (subelf) != 0)) in handle_ar()
Dobjdump.c295 Elf *subelf; in handle_ar() local
311 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
314 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
320 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
321 result |= handle_elf (subelf, new_prefix, arhdr->ar_name, in handle_ar()
323 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar()
324 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar()
335 cmd = elf_next (subelf); in handle_ar()
336 if (elf_end (subelf) != 0) in handle_ar()
Dnm.c418 Elf *subelf; in handle_ar() local
449 || (subelf = elf_begin (fd, cmd, elf)) == NULL in handle_ar()
450 || (arhdr = elf_getarhdr (subelf)) == NULL)) in handle_ar()
472 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
475 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
482 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
483 result |= handle_elf (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar()
485 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar()
486 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar()
497 cmd = elf_next (subelf); in handle_ar()
[all …]
Dstrip.c2733 Elf *subelf; in handle_ar() local
2736 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar()
2739 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar()
2741 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar()
2742 result |= handle_elf (fd, subelf, new_prefix, arhdr->ar_name, 0, NULL); in handle_ar()
2743 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar()
2744 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, NULL); in handle_ar()
2747 cmd = elf_next (subelf); in handle_ar()
2748 if (unlikely (elf_end (subelf) != 0)) in handle_ar()
Delflint.c247 Elf *subelf; in process_file() local
267 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in process_file()
269 kind = elf_kind (subelf); in process_file()
274 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in process_file()
277 process_file (fd, subelf, new_prefix, new_suffix, in process_file()
282 cmd = elf_next (subelf); in process_file()
283 if (elf_end (subelf) != 0) in process_file()
Dreadelf.c12853 Elf *subelf = NULL; in dump_archive_index() local
12855 || unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf)) in dump_archive_index()
12864 const Elf_Arhdr *h = elf_getarhdr (subelf); in dump_archive_index()
12868 elf_end (subelf); in dump_archive_index()
/external/elfutils/libdwfl/
Dopen.c152 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in libdw_open_elf() local
154 if (unlikely (subelf == NULL)) in libdw_open_elf()
158 subelf->parent = NULL; in libdw_open_elf()
159 subelf->flags |= elf->flags & (ELF_F_MMAPPED | ELF_F_MALLOCED); in libdw_open_elf()
162 elf = subelf; in libdw_open_elf()