HomeSort by relevance Sort by last modified time
    Searched defs:shnum (Results 1 - 8 of 8) sorted by null

  /external/elfutils/0.153/libelf/
elf_update.c 64 write_file (Elf *elf, off_t size, int change_bo, size_t shnum)
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/0.153/libdwfl/
dwfl_module_getdwarf.c 368 uint_fast16_t shnum; local
375 shnum = ehdr.e32.e_shnum;
383 shnum = ehdr.e64.e_shnum;
388 if (unlikely (shnum >= SHN_LORESERVE)
391 + (shnum - 1) * shentsize)))
461 src.d_size = gelf_fsize (mod->main.elf, ELF_T_SHDR, shnum - 1, EV_CURRENT);
465 Elf32_Shdr s32[shnum - 1];
466 Elf64_Shdr s64[shnum - 1];
525 for (size_t i = 0; i < shnum - 1; ++i)
529 for (size_t i = 0; i < shnum - 1; ++i
    [all...]
  /external/elfutils/0.153/src/
nm.c 751 size_t shnum; local
752 if (elf_getshdrnum (ebl->elf, &shnum) < 0)
755 bool scnnames_malloced = shnum * sizeof (const char *) > 128 * 1024;
758 scnnames = (const char **) xmalloc (sizeof (const char *) * shnum);
760 scnnames = (const char **) alloca (sizeof (const char *) * shnum);
876 shnum));
    [all...]
strip.c 567 size_t shnum; local
568 if (unlikely (elf_getshdrnum (elf, &shnum) < 0))
579 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC)
580 shdr_info = (struct shdr_info *) xcalloc (shnum + 2,
584 shdr_info = (struct shdr_info *) alloca ((shnum + 2)
586 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info));
690 for (cnt = 1; cnt < shnum; ++cnt)
736 for (cnt = 1; cnt < shnum; ++cnt)
818 if (scnidx == SHN_UNDEF || scnidx >= shnum
908 for (cnt = 1; cnt < shnum; ++cnt
    [all...]
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;
553 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum)
555 const size_t added = shnum - old_shnum;
591 for (size_t i = old_shnum; i < shnum; ++i)
632 size_t shnum, size_t shstrndx,
640 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum);
979 uint_fast16_t shnum;
983 shnum = ehdr.e32.e_shnum
977 uint_fast16_t shnum; local
    [all...]
elflint.c 348 static unsigned int shnum; variable
427 shnum = ehdr->e_shnum;
452 shnum = shdr->sh_size;
462 if (shdr != NULL && shdr->sh_link < shnum)
465 else if (shstrndx >= shnum)
507 else if (ehdr->e_shoff + shnum * ehdr->e_shentsize > size)
541 for (cnt = idx + 1; cnt < shnum; ++cnt)
568 if (cnt == shnum)
612 for (size_t cnt = 1; cnt < shnum; ++cnt)
716 || (sym->st_shndx >= shnum
    [all...]
ldgeneric.c 655 size_t shnum; local
657 if (elf_getshdrnum (fileinfo->elf, &shnum) < 0)
663 if (shndx < SHN_LORESERVE || (shndx > SHN_HIRESERVE && shndx < shnum))
670 NULL, shnum);
694 buf, sizeof (buf), NULL, shnum);
1619 size_t shnum; local
    [all...]
readelf.c 216 static size_t shnum; variable
640 if (unlikely (elf_getshdrnum (ebl->elf, &shnum) < 0))
907 for (cnt = 0; cnt < shnum; ++cnt)
1060 for (size_t inner = 1; inner < shnum; ++inner)
    [all...]

Completed in 618 milliseconds