/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...] |
/build/tools/soslim/ |
soslim.c | 38 size_t shnum; /* number of sections in the original file */ local 97 FAILIF_LIBELF(elf_getshnum (elf, &shnum) < 0, elf_getshnum); 98 INFO("Original ELF file has %zd sections.\n", shnum); 108 shnum*sizeof (shdr_info_t)); 109 shdr_info_len = rebuild_shstrtab ? shnum + 1 : shnum; 208 for (cnt = 1; cnt < shnum; ++cnt) { 265 for (cnt = 1; cnt < shnum; ++cnt) { 331 scnidx >= shnum || 412 } /* for (cnt = 1; cnt < shnum; ++cnt) * [all...] |
main.c | 266 size_t shnum; local 267 FAILIF_LIBELF(elf_getshnum (elf, &shnum) < 0, elf_getshnum); 320 sym->st_shndx < shnum) {
|
/build/tools/apriori/ |
source.h | 68 int shnum; /* number of sections */ member in struct:source_t
|
/build/tools/lsd/ |
lsd.c | 43 int shnum; /* number of sections */ member in struct:source_t 168 FAILIF_LIBELF(elf_getshnum (source->elf, &source->shnum) < 0, elf_getshnum); 174 INFO("Locating %d sections in %s...\n", source->shnum, full_path); 175 for (scnidx = 1; scnidx < source->shnum; scnidx++) { 330 if (sym->st_shndx < source->shnum) {
|
/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/elfcopy/ |
elfcopy.c | 117 size_t shnum, 172 shdridx = shnum; 291 has a section number equal to shnum--hence the ASSERT(). 293 ASSERT(!rebuild_shstrtab || shdr_info[cnt].data || cnt < shnum); 434 sym->st_shndx == SHN_UNDEF || sym->st_shndx >= shnum || 443 sym->st_shndx >= shnum) 2232 size_t shnum; local [all...] |