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

/external/elfutils/libelf/
H A Delf_update.c64 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...]
/external/elfutils/src/
H A Dstrip.c539 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 Dnm.c726 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 Dunstrip.c339 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 Delflint.c349 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 Dldgeneric.c657 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);
H A Dreadelf.c200 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)
/external/valgrind/main/VEX/unused/
H A Dlinker.c420 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/valgrind/main/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/lib/main/
H A Dsqlite-jdbc-3.7.2.jarMETA-INF/ META-INF/MANIFEST.MF META-INF/maven/ META-INF/maven/org. ...

Completed in 784 milliseconds