/build/tools/soslim/ |
D | main.c | 91 FAILIF_LIBELF(elf == NULL, elf_begin); in main() 104 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), gelf_getehdr); in main() 115 FAILIF_LIBELF(elf_end(elf), elf_end); in main() 135 FAILIF_LIBELF(elf == NULL, elf_begin); in main() 150 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), gelf_getehdr); in main() 215 FAILIF_LIBELF(elf_end (newelf) != 0, elf_end); in main() 221 FAILIF_LIBELF(elf_end(elf), elf_end); in main() 245 FAILIF_LIBELF(0 == gelf_getehdr(elf, &ehdr), gelf_getehdr); in print_dynamic_symbols() 247 FAILIF_LIBELF(NULL == gelf_getshdr(scn, &shdr), gelf_getshdr); in print_dynamic_symbols() 255 FAILIF_LIBELF(elf_getshstrndx(elf, &shstrndx) < 0, in print_dynamic_symbols() [all …]
|
D | soslim.c | 59 FAILIF_LIBELF(NULL == ehdr, gelf_getehdr); in clone_elf() 84 FAILIF_LIBELF(NULL == gelf_getphdr(elf, cnt, phdr_info + cnt), in clone_elf() 94 FAILIF_LIBELF(elf_getshstrndx(elf, &shstrndx) < 0, elf_getshstrndx); in clone_elf() 97 FAILIF_LIBELF(elf_getshnum (elf, &shnum) < 0, elf_getshnum); in clone_elf() 122 FAILIF_LIBELF(NULL == gelf_getshdr(scn, &shdr_info[cnt].shdr), in clone_elf() 186 FAILIF_LIBELF(NULL == ebl, ebl_openbackend); in clone_elf() 187 FAILIF_LIBELF(0 != arm_init(elf, ehdr->e_machine, ebl, sizeof(Ebl)), in clone_elf() 300 FAILIF_LIBELF(NULL == symdata, elf_getdata); in clone_elf() 325 FAILIF_LIBELF(sym == NULL, gelf_getsymshndx); in clone_elf() 427 FAILIF_LIBELF((shst = ebl_strtabinit (1 /* null-terminated */)) == NULL, in clone_elf() [all …]
|
D | debug.h | 42 #define FAILIF_LIBELF(cond, function) \ macro
|
D | symfilter.c | 162 FAILIF_LIBELF(NULL == sym, gelf_getsymshndx); in build_symfilter()
|
/build/tools/isprelinked/ |
D | isprelinked.c | 66 FAILIF_LIBELF(elf == NULL, elf_begin); in main() 68 FAILIF_LIBELF(0 == gelf_getehdr(elf, &elf_hdr), in main() 83 FAILIF_LIBELF(elf_end(elf), elf_end); in main()
|
D | debug.h | 42 #define FAILIF_LIBELF(cond, function) \ macro
|
/build/tools/lsd/ |
D | lsd.c | 143 FAILIF_LIBELF(source->elf == NULL, elf_begin); in init_source() 155 FAILIF_LIBELF(0 == gelf_getehdr(source->elf, &source->elf_hdr), gelf_getehdr); in init_source() 165 FAILIF_LIBELF(elf_getshstrndx (source->elf, &source->shstrndx) < 0, in init_source() 168 FAILIF_LIBELF(elf_getshnum (source->elf, &source->shnum) < 0, elf_getshnum); in init_source() 177 FAILIF_LIBELF(NULL == scn, elf_getscn); in init_source() 179 FAILIF_LIBELF(NULL == shdr, gelf_getshdr); in init_source() 184 FAILIF_LIBELF(NULL == source->symtab.data, elf_getdata); in init_source() 191 FAILIF_LIBELF(NULL == source->strtab.scn, elf_getscn); in init_source() 192 FAILIF_LIBELF(NULL == gelf_getshdr(scn, &source->strtab.shdr), in init_source() 195 FAILIF_LIBELF(NULL == source->strtab.data, elf_getdata); in init_source() [all …]
|
D | debug.h | 42 #define FAILIF_LIBELF(cond, function) \ macro
|
/build/tools/apriori/ |
D | source.c | 15 FAILIF_LIBELF(NULL == gelf_getshdr(*scn, shdr), gelf_getshdr); in find_section() 17 FAILIF_LIBELF(NULL == *data, elf_getdata); in find_section()
|
D | apriori.c | 164 FAILIF_LIBELF(NULL == scn, elf_newscn); in create_elf_sections() 167 FAILIF_LIBELF(NULL == oldshdr, gelf_getshdr); in create_elf_sections() 174 FAILIF_LIBELF(NULL == olddata, elf_getdata); in create_elf_sections() 177 FAILIF_LIBELF(NULL == data, elf_newdata); in create_elf_sections() 259 FAILIF_LIBELF(NULL == in setup_shdr_info() 336 FAILIF_LIBELF(elf == NULL, elf_begin); in init_elf() 339 FAILIF_LIBELF(elf == NULL, elf_clone); in init_elf() 343 FAILIF_LIBELF(NULL == oldehdr, gelf_getehdr); in init_elf() 347 FAILIF_LIBELF(gelf_newehdr (elf, gelf_getclass (source->oldelf)) == 0, in init_elf() 349 FAILIF_LIBELF(oldehdr->e_type != ET_REL in init_elf() [all …]
|
D | debug.h | 42 #define FAILIF_LIBELF(cond, function) \ macro
|
/build/tools/iself/ |
D | debug.h | 44 #define FAILIF_LIBELF(cond, function) \ macro
|