Searched defs:shnum (Results 1 - 15 of 15) sorted by relevance

/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
/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...]
/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/syslinux/gpxe/src/util/
H A Diccfix.c38 unsigned int shnum = ehdr->e_shnum; local
43 for ( ; shnum-- ; shdr = ( ( ( void * ) shdr ) + shentsize ) ) {
/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/elfutils/src/
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 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 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 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 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/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 1237 milliseconds