/external/elfutils/libelf/ |
elf32_getshdr.c | 60 size_t shnum; local 72 if (INTUSE (elf_getshnum) (elf, &shnum) != 0) 74 size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); 114 for (cnt = 0; cnt < shnum; ++cnt) 143 for (cnt = 0; cnt < shnum; ++cnt) 172 for (cnt = 0; cnt < shnum; ++cnt)
|
elf_update.c | 30 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) 60 ? __elf32_updatemmap (elf, change_bo, shnum) 61 : __elf64_updatemmap (elf, change_bo, shnum)) != 0) 69 ? __elf32_updatefile (elf, change_bo, shnum) 70 : __elf64_updatefile (elf, change_bo, shnum)) != 0) 97 size_t shnum; local 129 shnum = (elf->state.elf.scns_last->cnt == 0 137 ? __elf32_updatenull (elf, &change_bo, shnum) 138 : __elf64_updatenull (elf, &change_bo, shnum)); 165 size = write_file (elf, size, change_bo, shnum); [all...] |
/external/elfutils/src/ |
nm.c | 728 size_t shnum; local 729 if (elf_getshnum (ebl->elf, &shnum) < 0) 732 bool scnnames_malloced = shnum * sizeof (const char *) > 128 * 1024; 735 scnnames = (const char **) xmalloc (sizeof (const char *) * shnum); 737 scnnames = (const char **) alloca (sizeof (const char *) * shnum); 814 shnum)); [all...] |
strip.c | 375 size_t shnum; local 528 if (unlikely (elf_getshnum (elf, &shnum) < 0)) 539 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) 540 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, 544 shdr_info = (struct shdr_info *) alloca ((shnum + 2) 546 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); 652 for (cnt = 1; cnt < shnum; ++cnt) 698 for (cnt = 1; cnt < shnum; ++cnt) 766 if (scnidx == SHN_UNDEF || scnidx >= shnum 826 for (cnt = 1; cnt < shnum; ++cnt [all...] |
elflint.c | 350 static unsigned int shnum; variable 427 shnum = ehdr->e_shnum; 454 shnum = shdr->sh_size; 469 if (shdr->sh_link >= shnum) 475 else if (shstrndx >= shnum) 533 for (cnt = idx + 1; cnt < shnum; ++cnt) 565 if (cnt == shnum) 611 for (cnt = 1; cnt < shnum; ++cnt) 626 if (cnt == shnum) 710 || (sym->st_shndx >= shnum [all...] |
ldgeneric.c | 588 size_t shnum; local 590 if (elf_getshnum (fileinfo->elf, &shnum) < 0) 597 && sym->st_shndx < shnum) 604 buf, sizeof (buf), NULL, shnum); 635 sizeof (buf), NULL, shnum); 1450 size_t shnum; local [all...] |
readelf.c | 150 static size_t shnum; variable 488 if (elf_getshnum (ebl->elf, &shnum) < 0) 700 for (cnt = 0; cnt < shnum; ++cnt) 854 for (inner = 1; inner < shnum; ++inner) [all...] |
/external/valgrind/main/perf/ |
tinycc.c | 19216 int shnum, i, phnum, file_offset, offset, size, j, tmp, sh_order_index, k; local [all...] |