Searched refs:shnum (Results 1 - 21 of 21) sorted by relevance

/external/elfutils/libelf/
H A Delf_update.c44 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 Delf32_getshdr.c62 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 Delf32_updatenull.c52 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 Delf32_updatefile.c129 __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 DlibelfP.h494 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 Delfshphehdr.c75 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 Deblsectionname.c40 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 Dlibebl.h124 const char *scnnames[], size_t shnum);
/external/vixl/examples/aarch32/
H A Ddisasm-a32.cc110 for (int shnum = 1; shnum < nsections_; shnum++) {
111 if ((shdr_[shnum].sh_type == type) &&
112 std::string(shstrtab_ + shdr_[shnum].sh_name) == section_name) {
113 return &shdr_[shnum];
/external/syslinux/gpxe/src/util/
H A Diccfix.c38 unsigned int shnum = ehdr->e_shnum; local
43 for ( ; shnum-- ; shdr = ( ( ( void * ) shdr ) + shentsize ) ) {
/external/elfutils/src/
H A Dstrip.c586 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 Delfcompress.c279 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 Dunstrip.c373 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 Dnm.c746 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 Delflint.c127 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 Dldgeneric.c647 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 Dreadelf.c239 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 Ddwfl_module_getdwarf.c331 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/toybox/toys/posix/
H A Dfile.c53 int phentsize, phnum, shsize, shnum; local
102 shnum = elf_int(toybuf+48+12*bits, 2);
137 for (i = 0; i<shnum; i++) {
/external/valgrind/perf/
H A Dtinycc.c19219 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 Dsqlite-jdbc-3.7.2.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META-INF/maven/org. ...

Completed in 526 milliseconds