/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 | 510 Elf *subelf; in do_oper_extract() local 511 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in do_oper_extract() 513 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in do_oper_extract() 517 index_off = elf_getaroff (subelf); in do_oper_extract() 595 char *data = elf_rawfile (subelf, &nleft); in do_oper_extract() 751 cmd = elf_next (subelf); in do_oper_extract() 752 if (elf_end (subelf) != 0) in do_oper_extract() 943 Elf *subelf; in do_oper_delete() local 944 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in do_oper_delete() 946 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in do_oper_delete() [all …]
|
D | size.c | 375 Elf *subelf; in handle_ar() local 377 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar() 380 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar() 382 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar() 383 handle_elf (subelf, new_prefix, arhdr->ar_name); in handle_ar() 384 else if (likely (elf_kind (subelf) == ELF_K_AR)) in handle_ar() 385 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name); in handle_ar() 389 cmd = elf_next (subelf); in handle_ar() 390 if (unlikely (elf_end (subelf) != 0)) in handle_ar()
|
D | objdump.c | 307 Elf *subelf; in handle_ar() local 323 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar() 326 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar() 332 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar() 333 result |= handle_elf (subelf, new_prefix, arhdr->ar_name, in handle_ar() 335 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar() 336 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar() 347 cmd = elf_next (subelf); in handle_ar() 348 if (elf_end (subelf) != 0) in handle_ar()
|
D | nm.c | 432 Elf *subelf; in handle_ar() local 463 || (subelf = elf_begin (fd, cmd, elf)) == NULL in handle_ar() 464 || (arhdr = elf_getarhdr (subelf)) == NULL)) in handle_ar() 486 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar() 489 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar() 496 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar() 497 result |= handle_elf (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar() 499 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar() 500 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, in handle_ar() 511 cmd = elf_next (subelf); in handle_ar() [all …]
|
D | strip.c | 2250 Elf *subelf; in handle_ar() local 2253 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in handle_ar() 2256 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in handle_ar() 2258 if (elf_kind (subelf) == ELF_K_ELF) in handle_ar() 2259 result |= handle_elf (fd, subelf, new_prefix, arhdr->ar_name, 0, NULL); in handle_ar() 2260 else if (elf_kind (subelf) == ELF_K_AR) in handle_ar() 2261 result |= handle_ar (fd, subelf, new_prefix, arhdr->ar_name, NULL); in handle_ar() 2264 cmd = elf_next (subelf); in handle_ar() 2265 if (unlikely (elf_end (subelf) != 0)) in handle_ar()
|
D | ld.c | 1081 Elf *subelf; in try() local 1084 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in try() 1086 cmd = elf_next (subelf); in try() 1088 if (try (fd, subelf) != 0) in try()
|
D | elflint.c | 261 Elf *subelf; in process_file() local 281 while ((subelf = elf_begin (fd, cmd, elf)) != NULL) in process_file() 283 kind = elf_kind (subelf); in process_file() 288 Elf_Arhdr *arhdr = elf_getarhdr (subelf); in process_file() 291 process_file (fd, subelf, new_prefix, new_suffix, in process_file() 296 cmd = elf_next (subelf); in process_file() 297 if (elf_end (subelf) != 0) in process_file()
|
D | readelf.c | 9721 Elf *subelf = NULL; in dump_archive_index() local 9723 || unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf)) in dump_archive_index() 9732 const Elf_Arhdr *h = elf_getarhdr (subelf); in dump_archive_index() 9736 elf_end (subelf); in dump_archive_index()
|
/external/elfutils/libdwfl/ |
D | open.c | 141 Elf *subelf = elf_begin (-1, ELF_C_READ_MMAP_PRIVATE, elf); in __libdw_open_file() local 143 if (unlikely (subelf == NULL)) in __libdw_open_file() 147 subelf->parent = NULL; in __libdw_open_file() 148 subelf->flags |= elf->flags & (ELF_F_MMAPPED | ELF_F_MALLOCED); in __libdw_open_file() 151 elf = subelf; in __libdw_open_file()
|