/external/elfutils/tests/ |
D | arls.c | 75 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()
|
D | arextract.c | 36 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()
|
D | saridx.c | 142 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()
|
D | arsymtest.c | 87 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/ |
D | ar.c | 495 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() 937 Elf *subelf; in do_oper_delete() local 938 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in do_oper_delete() 940 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in do_oper_delete() [all …]
|
D | size.c | 358 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()
|
D | objdump.c | 295 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()
|
D | nm.c | 418 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 …]
|
D | strip.c | 2717 Elf *subelf; in handle_ar() local 2720 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar() 2723 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar() 2725 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar() 2726 result |= handle_elf (fd, subelf, new_prefix, arhdr->ar_name, 0, NULL); in handle_ar() 2727 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar() 2728 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, NULL); in handle_ar() 2731 cmd = elf_next (subelf); in handle_ar() 2732 if (unlikely (elf_end (subelf) != 0)) in handle_ar()
|
D | elflint.c | 247 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()
|
D | readelf.c | 12613 Elf *subelf = NULL; in dump_archive_index() local 12615 || unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf)) in dump_archive_index() 12624 const Elf_Arhdr *h = elf_getarhdr (subelf); in dump_archive_index() 12628 elf_end (subelf); in dump_archive_index()
|
/external/elfutils/libdwfl/ |
D | open.c | 146 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in libdw_open_elf() local 148 if (unlikely (subelf == NULL)) in libdw_open_elf() 152 subelf->parent = NULL; in libdw_open_elf() 153 subelf->flags |= elf->flags & (ELF_F_MMAPPED | ELF_F_MALLOCED); in libdw_open_elf() 156 elf = subelf; in libdw_open_elf()
|