/external/elfutils/libelf/ |
H A D | elf_update.c | 64 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) argument 107 ? __elf32_updatemmap (elf, change_bo, shnum) 108 : __elf64_updatemmap (elf, change_bo, shnum)) != 0) 116 ? __elf32_updatefile (elf, change_bo, shnum) 117 : __elf64_updatefile (elf, change_bo, shnum)) != 0) 156 size_t shnum; local 188 shnum = (elf->state.elf.scns_last->cnt == 0 196 ? __elf32_updatenull_wrlock (elf, &change_bo, shnum) 197 : __elf64_updatenull_wrlock (elf, &change_bo, shnum)); 217 size = write_file (elf, size, change_bo, shnum); [all...] |
H A D | elf32_updatenull.c | 73 size_t shnum, int *change_bop) 115 if (unlikely (shnum >= SHN_LORESERVE)) 121 update_if_changed (ehdr->e_shnum, shnum, 136 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) 145 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) 186 if (shnum > 0) 193 if (shnum >= SHN_LORESERVE) 200 shnum, scn0->shdr_flags); 408 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum)))); 426 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum); [all...] |
H A D | elf32_getshdr.c | 83 size_t shnum; 84 if (__elf_getshnum_rdlock (elf, &shnum) != 0) 86 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); 135 for (size_t cnt = 0; cnt < shnum; ++cnt) 153 && shdr[cnt].sh_link < shnum) 181 for (size_t cnt = 0; cnt < shnum; ++cnt) 210 for (size_t cnt = 0; cnt < shnum; ++cnt)
|
H A D | elf32_updatefile.c | 127 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) 213 if (shnum > 0) 216 Elf_Scn **scns = (Elf_Scn **) alloca (shnum * sizeof (Elf_Scn *)); 234 for (size_t cnt = 0; cnt < shnum; ++cnt) 283 for (size_t cnt = 0; cnt < shnum; ++cnt) 382 for (size_t cnt = 0; cnt < shnum; ++cnt) 417 + ehdr->e_shentsize * shnum); 469 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum) 593 if (shnum > 0) 606 alloca (shnum * sizeo [all...] |
H A D | libelfP.h | 504 size_t shnum) internal_function; 506 size_t shnum) internal_function; 508 extern int __elf32_updatemmap (Elf *elf, int change_bo, size_t shnum) 510 extern int __elf64_updatemmap (Elf *elf, int change_bo, size_t shnum) 512 extern int __elf32_updatefile (Elf *elf, int change_bo, size_t shnum) 514 extern int __elf64_updatefile (Elf *elf, int change_bo, size_t shnum)
|
/external/elfutils/libebl/ |
H A D | eblsectionname.c | 60 ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum) 67 size_t shnum; 85 && (size_t) section < shnum)
|
H A D | libebl.h | 132 const char *scnnames[], size_t shnum);
|
/external/valgrind/main/VEX/switchback/ |
H A D | linker.c | 514 Elf_Shdr* shdr, int shnum, 520 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); 521 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); 522 int target_shndx = shdr[shnum].sh_info; 523 int symtab_shndx = shdr[shnum].sh_link; 640 Elf_Shdr* shdr, int shnum, 646 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset); 647 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela); 648 int target_shndx = shdr[shnum].sh_info; 649 int symtab_shndx = shdr[shnum] [all...] |
/external/valgrind/main/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 | 539 size_t shnum; local 540 if (unlikely (elf_getshnum (elf, &shnum) < 0)) 551 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) 552 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, 556 shdr_info = (struct shdr_info *) alloca ((shnum + 2) 558 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); 662 for (cnt = 1; cnt < shnum; ++cnt) 707 for (cnt = 1; cnt < shnum; ++cnt) 773 if (scnidx == SHN_UNDEF || scnidx >= shnum 862 for (cnt = 1; cnt < shnum; [all...] |
H A D | unstrip.c | 339 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum, 345 for (size_t i = 1; i < shnum; ++i) 369 return shnum; 548 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) 550 const size_t added = shnum - old_shnum; 588 for (size_t i = old_shnum; i < shnum; ++i) 629 size_t shnum, size_t shstrndx, 637 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum); 976 uint_fast16_t shnum; 980 shnum 338 symtab_count_leading_section_symbols(Elf *elf, Elf_Scn *scn, size_t shnum, Elf_Data *newsymdata) argument 546 add_new_section_symbols(Elf_Scn *old_symscn, size_t old_shnum, Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) argument 627 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 974 uint_fast16_t shnum; local [all...] |
H A D | nm.c | 726 size_t shnum; local 727 if (elf_getshnum (ebl->elf, &shnum) < 0) 730 bool scnnames_malloced = shnum * sizeof (const char *) > 128 * 1024; 733 scnnames = (const char **) xmalloc (sizeof (const char *) * shnum); 735 scnnames = (const char **) alloca (sizeof (const char *) * shnum); 820 shnum));
|
H A D | elflint.c | 349 static unsigned int shnum; variable 426 shnum = ehdr->e_shnum; 451 shnum = shdr->sh_size; 461 if (shdr != NULL && shdr->sh_link < shnum) 464 else if (shstrndx >= shnum) 522 for (cnt = idx + 1; cnt < shnum; ++cnt) 549 if (cnt == shnum) 593 for (size_t cnt = 1; cnt < shnum; ++cnt) 696 || (sym->st_shndx >= shnum 731 else if (xndx > 0 && xndx < shnum) [all...] |
H A D | readelf.c | 200 static size_t shnum; variable 593 if (unlikely (elf_getshnum (ebl->elf, &shnum) < 0)) 843 for (cnt = 0; cnt < shnum; ++cnt) 992 for (size_t inner = 1; inner < shnum; ++inner) 1864 sizeof (scnbuf), NULL, shnum), 6153 if (shnum != 0)
|
H A D | ldgeneric.c | 657 size_t shnum; local 659 if (elf_getshnum (fileinfo->elf, &shnum) < 0) 665 if (shndx < SHN_LORESERVE || (shndx > SHN_HIRESERVE && shndx < shnum)) 672 NULL, shnum); 696 buf, sizeof (buf), NULL, shnum); 1621 size_t shnum; local 1622 assert (elf_getshnum (fileinfo->elf, &shnum) == 0); 1623 assert (shndx < shnum);
|
/external/valgrind/main/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
|