/external/elfutils/libelf/ |
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...] |
elf32_updatenull.c | 40 size_t shnum, int *change_bop) 82 if (unlikely (shnum >= SHN_LORESERVE)) 88 update_if_changed (ehdr->e_shnum, shnum, 103 __elfw2(LIBELFBITS,updatenull) (Elf *elf, int *change_bop, size_t shnum) 111 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) 146 if (shnum > 0) 153 if (shnum >= SHN_LORESERVE) 158 = shnum; 345 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum)))); 363 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum); [all...] |
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)
|
libelfP.h | 427 extern off_t __elf32_updatenull (Elf *elf, int *change_bop, size_t shnum) 429 extern off_t __elf64_updatenull (Elf *elf, int *change_bop, size_t shnum) 432 extern int __elf32_updatemmap (Elf *elf, int change_bo, size_t shnum) 434 extern int __elf64_updatemmap (Elf *elf, int change_bo, size_t shnum) 436 extern int __elf32_updatefile (Elf *elf, int change_bo, size_t shnum) 438 extern int __elf64_updatefile (Elf *elf, int change_bo, size_t shnum)
|
elf32_updatefile.c | 84 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) 169 if (shnum > 0) 173 Elf_Scn **scns = (Elf_Scn **) alloca (shnum * sizeof (Elf_Scn *)); 193 for (cnt = 0; cnt < shnum; ++cnt) 351 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum) 475 if (shnum > 0) 480 Elf_Scn **scns = (Elf_Scn **) alloca (shnum * sizeof (Elf_Scn *)); 494 alloca (shnum * sizeof (ElfW2(LIBELFBITS,Shdr))); 502 for (cnt = 0; cnt < shnum; ++cnt) 611 * shnum, shdr_offset [all...] |
/external/elfutils/libebl/ |
eblsectionname.c | 24 ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum) 31 size_t shnum; 49 && (size_t) section < shnum)
|
libebl.h | 154 const char *scnnames[], size_t shnum);
|
/external/elfcopy/ |
elfcopy.h | 83 size_t shnum,
|
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...] |
/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
|
apriori.c | 91 for (i = 0; i < source->shnum; i++) { 230 source->shnum * sizeof (shdr_info_t)); 232 source->shdr_info = (shdr_info_t *)CALLOC(source->shnum, 401 for (cnt = 0; cnt < source->shnum; cnt++) { 427 for (scnidx = 1; scnidx < (size_t)source->shnum; scnidx++) { 433 we remove sections. Since we do not update source->shnum 686 FAILIF_LIBELF(elf_getshnum (source->oldelf, (size_t *)&source->shnum) < 0, [all...] |
/external/elfutils/src/ |
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...] |
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...] |
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...] |
/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) {
|