/external/elfutils/libelf/ |
H A D | elf_update.c | 44 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) argument 104 ? __elf32_updatemmap (elf, change_bo, shnum) 105 : __elf64_updatemmap (elf, change_bo, shnum)) != 0) 113 ? __elf32_updatefile (elf, change_bo, shnum) 114 : __elf64_updatefile (elf, change_bo, shnum)) != 0) 152 size_t shnum; local 184 shnum = (elf->state.elf.scns_last->cnt == 0 192 ? __elf32_updatenull_wrlock (elf, &change_bo, shnum) 193 : __elf64_updatenull_wrlock (elf, &change_bo, shnum)); 213 size = write_file (elf, size, change_bo, shnum); [all...] |
H A D | elf32_getshdr.c | 62 size_t shnum; 63 if (__elf_getshdrnum_rdlock (elf, &shnum) != 0 64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) 66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); 138 for (size_t cnt = 0; cnt < shnum; ++cnt) 156 && shdr[cnt].sh_link < shnum) 187 for (size_t cnt = 0; cnt < shnum; ++cnt) 216 for (size_t cnt = 0; cnt < shnum; ++cnt)
|
H A D | elf32_updatenull.c | 52 size_t shnum, int *change_bop) 98 if (unlikely (shnum >= SHN_LORESERVE)) 104 update_if_changed (ehdr->e_shnum, shnum, 127 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) 136 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) 181 if (shnum > 0) 188 if (shnum >= SHN_LORESERVE) 195 shnum, scn0->shdr_flags); 425 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum)))); 440 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum); [all...] |
H A D | elf32_updatefile.c | 129 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) 226 if (shnum > 0) 228 if (unlikely (shnum > SIZE_MAX / sizeof (Elf_Scn *))) 232 Elf_Scn **scns = (Elf_Scn **) malloc (shnum * sizeof (Elf_Scn *)); 255 for (size_t cnt = 0; cnt < shnum; ++cnt) 309 for (size_t cnt = 0; cnt < shnum; ++cnt) 419 for (size_t cnt = 0; cnt < shnum; ++cnt) 459 + ehdr->e_shentsize * shnum); 511 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum) 647 if (shnum > [all...] |
H A D | libelfP.h | 494 size_t shnum) internal_function; 496 size_t shnum) internal_function; 498 extern int __elf32_updatemmap (Elf *elf, int change_bo, size_t shnum) 500 extern int __elf64_updatemmap (Elf *elf, int change_bo, size_t shnum) 502 extern int __elf32_updatefile (Elf *elf, int change_bo, size_t shnum) 504 extern int __elf64_updatefile (Elf *elf, int change_bo, size_t shnum)
|
/external/elfutils/tests/ |
H A D | elfshphehdr.c | 75 size_t shnum; local 76 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0); 77 check ("shnum == 0", shnum == 0); 102 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0); 103 check ("shnum == 0", shnum == 0); 126 check_elf ("elf_getshdrnum", elf_getshdrnum (elf, &shnum) == 0); 127 check ("shnum == 1", shnum [all...] |
/external/elfutils/libebl/ |
H A D | eblsectionname.c | 40 const char *scnnames[], size_t shnum) 58 && (size_t) section < shnum) 39 ebl_section_name(Ebl *ebl, int section, int xsection, char *buf, size_t len, const char *scnnames[], size_t shnum) argument
|
H A D | libebl.h | 124 const char *scnnames[], size_t shnum);
|
/external/valgrind/VEX/switchback/ |
H A D | linker.c | 516 Elf_Shdr* shdr, int shnum, 522 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); 523 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); 524 int target_shndx = shdr[shnum].sh_info; 525 int symtab_shndx = shdr[shnum].sh_link; 642 Elf_Shdr* shdr, int shnum, 648 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset); 649 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela); 650 int target_shndx = shdr[shnum].sh_info; 651 int symtab_shndx = shdr[shnum] [all...] |
/external/valgrind/VEX/unused/ |
H A D | linker.c | 420 Elf_Shdr* shdr, int shnum, 426 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); 427 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); 428 int target_shndx = shdr[shnum].sh_info; 429 int symtab_shndx = shdr[shnum].sh_link; 546 Elf_Shdr* shdr, int shnum, 552 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset); 553 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela); 554 int target_shndx = shdr[shnum].sh_info; 555 int symtab_shndx = shdr[shnum] 419 do_Elf_Rel_relocations( ObjectCode* oc, char* ehdrC, Elf_Shdr* shdr, int shnum, Elf_Sym* stab, char* strtab ) argument 545 do_Elf_Rela_relocations( ObjectCode* oc, char* ehdrC, Elf_Shdr* shdr, int shnum, Elf_Sym* stab, char* strtab ) argument 711 int shnum, ok; local [all...] |
/external/elfutils/src/ |
H A D | strip.c | 586 size_t shnum; local 587 if (unlikely (elf_getshdrnum (elf, &shnum) < 0)) 594 if (shstrndx >= shnum) 603 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) 604 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, 608 shdr_info = (struct shdr_info *) alloca ((shnum + 2) 610 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); 643 if (shdr_info[cnt].old_sh_link >= shnum) 679 if (grpref[inner] < shnum) 726 for (cnt = 1; cnt < shnum; [all...] |
H A D | elfcompress.c | 279 size_t shnum = 0; local 316 for (size_t n = 0; n < shnum; n++) 377 if (elf_getshdrnum (elf, &shnum) != 0) 384 if (shnum == 0) 390 sections = xcalloc (shnum / 8 + 1, sizeof (unsigned int)); 446 if (ndx > shnum) 449 ndx, shnum); 532 scnstrents = xmalloc (shnum 534 scnnames = xcalloc (shnum, sizeof (char *)); 649 assert (ndx < shnum); [all...] |
H A D | unstrip.c | 373 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum, 379 for (size_t i = 1; i < shnum; ++i) 403 return shnum; 589 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) 591 const size_t added = shnum - old_shnum; 628 for (size_t i = old_shnum; i < shnum; ++i) 669 size_t shnum, size_t shstrndx, 677 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum); 1032 uint_fast16_t shnum; 1036 shnum 372 symtab_count_leading_section_symbols(Elf *elf, Elf_Scn *scn, size_t shnum, Elf_Data *newsymdata) argument 587 add_new_section_symbols(Elf_Scn *old_symscn, size_t old_shnum, Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) argument 667 check_symtab_section_symbols(Elf *elf, bool rel, Elf_Scn *scn, size_t shnum, size_t shstrndx, Elf_Scn *oscn, size_t oshnum, size_t oshstrndx, size_t debuglink) argument 1030 uint_fast16_t shnum; local [all...] |
H A D | nm.c | 746 size_t shnum; local 747 if (elf_getshdrnum (ebl->elf, &shnum) < 0) 750 bool scnnames_malloced = shnum * sizeof (const char *) > 128 * 1024; 753 scnnames = (const char **) xmalloc (sizeof (const char *) * shnum); 755 scnnames = (const char **) alloca (sizeof (const char *) * shnum); 870 shnum));
|
H A D | elflint.c | 127 static unsigned int shnum; variable 320 if ((unsigned int) idx > shnum) 430 shnum = ehdr->e_shnum; 455 shnum = shdr->sh_size; 465 if (shdr != NULL && shdr->sh_link < shnum) 468 else if (shstrndx >= shnum) 510 else if (ehdr->e_shoff + shnum * ehdr->e_shentsize > size) 544 for (cnt = idx + 1; cnt < shnum; ++cnt) 572 if (cnt == shnum) 616 for (size_t cnt = 1; cnt < shnum; [all...] |
H A D | ldgeneric.c | 647 size_t shnum; local 649 if (elf_getshdrnum (fileinfo->elf, &shnum) < 0) 655 if (shndx < SHN_LORESERVE || (shndx > SHN_HIRESERVE && shndx < shnum)) 662 NULL, shnum); 686 buf, sizeof (buf), NULL, shnum); 1611 size_t shnum; local 1612 assert (elf_getshdrnum (fileinfo->elf, &shnum) == 0); 1613 assert (shndx < shnum);
|
H A D | readelf.c | 239 static size_t shnum; variable 850 if (unlikely (elf_getshdrnum (ebl->elf, &shnum) < 0)) 1140 for (cnt = 0; cnt < shnum; ++cnt) 1342 for (size_t inner = 1; inner < shnum; ++inner) 2361 sizeof (scnbuf), NULL, shnum), 9414 if (shnum != 0)
|
/external/elfutils/libdwfl/ |
H A D | dwfl_module_getdwarf.c | 331 uint_fast16_t shnum; local 338 shnum = ehdr.e32.e_shnum; 346 shnum = ehdr.e64.e_shnum; 351 if (unlikely (shnum >= SHN_LORESERVE) 354 + (shnum - 1) * shentsize))) 433 src.d_size = gelf_fsize (mod->main.elf, ELF_T_SHDR, shnum - 1, EV_CURRENT); 436 if (unlikely (shnum - 1 > SIZE_MAX / shdr_size)) 438 const size_t shdrs_bytes = (shnum - 1) * shdr_size; 490 Elf32_Shdr (*s32)[shnum - 1] = shdrs; 491 for (size_t i = 0; i < shnum [all...] |
/external/valgrind/perf/ |
H A D | tinycc.c | 19219 int shnum, i, phnum, file_offset, offset, size, j, tmp, sh_order_index, k; 19414 shnum = s1->nb_sections; 19417 section_order = tcc_malloc(sizeof(int) * shnum); 19785 ehdr.e_shnum = shnum; 19786 ehdr.e_shstrndx = shnum - 1; 19217 int shnum, i, phnum, file_offset, offset, size, j, tmp, sh_order_index, k; local
|
/external/robolectric/v1/lib/main/ |
H A D | sqlite-jdbc-3.7.2.jar | META-INF/ META-INF/MANIFEST.MF META-INF/maven/ META-INF/maven/org. ... |