Home
last modified time | relevance | path

Searched refs:shnum (Results 1 – 25 of 25) sorted by relevance

/external/elfutils/src/libelf/
Delf_update.c43 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) in write_file() argument
82 ? __elf32_updatemmap (elf, change_bo, shnum) in write_file()
83 : __elf64_updatemmap (elf, change_bo, shnum)) != 0) in write_file()
91 ? __elf32_updatefile (elf, change_bo, shnum) in write_file()
92 : __elf64_updatefile (elf, change_bo, shnum)) != 0) in write_file()
131 size_t shnum; local
163 shnum = (elf->state.elf.scns_last->cnt == 0
171 ? __elf32_updatenull_wrlock (elf, &change_bo, shnum)
172 : __elf64_updatenull_wrlock (elf, &change_bo, shnum));
192 size = write_file (elf, size, change_bo, shnum);
Delf32_updatenull.c52 size_t shnum, int *change_bop) in ELFW()
94 if (unlikely (shnum >= SHN_LORESERVE)) in ELFW()
100 update_if_changed (ehdr->e_shnum, shnum, in ELFW()
115 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) in __elfw2()
124 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) in __elfw2()
169 if (shnum > 0) in __elfw2()
176 if (shnum >= SHN_LORESERVE) in __elfw2()
183 shnum, scn0->shdr_flags); in __elfw2()
392 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum)))); in __elfw2()
410 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum); in __elfw2()
Delf32_getshdr.c62 size_t shnum; in ElfW2() local
63 if (__elf_getshdrnum_rdlock (elf, &shnum) != 0 in ElfW2()
64 || shnum > SIZE_MAX / sizeof (ElfW2(LIBELFBITS,Shdr))) in ElfW2()
66 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); in ElfW2()
128 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2()
146 && shdr[cnt].sh_link < shnum) in ElfW2()
174 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2()
203 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2()
Delf32_updatefile.c106 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) in __elfw2()
203 if (shnum > 0) in __elfw2()
205 if (unlikely (shnum > SIZE_MAX / sizeof (Elf_Scn *))) in __elfw2()
209 Elf_Scn **scns = (Elf_Scn **) alloca (shnum * sizeof (Elf_Scn *)); in __elfw2()
227 for (size_t cnt = 0; cnt < shnum; ++cnt) in __elfw2()
276 for (size_t cnt = 0; cnt < shnum; ++cnt) in __elfw2()
405 for (size_t cnt = 0; cnt < shnum; ++cnt) in __elfw2()
440 + ehdr->e_shentsize * shnum); in __elfw2()
492 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum) in __elfw2()
628 if (shnum > 0) in __elfw2()
[all …]
DlibelfP.h477 size_t shnum) internal_function;
479 size_t shnum) internal_function;
481 extern int __elf32_updatemmap (Elf *elf, int change_bo, size_t shnum)
483 extern int __elf64_updatemmap (Elf *elf, int change_bo, size_t shnum)
485 extern int __elf32_updatefile (Elf *elf, int change_bo, size_t shnum)
487 extern int __elf64_updatefile (Elf *elf, int change_bo, size_t shnum)
/external/elfutils/src/libebl/
Deblsectionname.c39 ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum) in ebl_section_name() argument
46 size_t shnum;
64 && (size_t) section < shnum)
Dlibebl.h111 const char *scnnames[], size_t shnum);
/external/valgrind/VEX/unused/
Dlinker.c420 Elf_Shdr* shdr, int shnum, in do_Elf_Rel_relocations() argument
426 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset); in do_Elf_Rel_relocations()
427 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel); in do_Elf_Rel_relocations()
428 int target_shndx = shdr[shnum].sh_info; in do_Elf_Rel_relocations()
429 int symtab_shndx = shdr[shnum].sh_link; in do_Elf_Rel_relocations()
546 Elf_Shdr* shdr, int shnum, in do_Elf_Rela_relocations() argument
552 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset); in do_Elf_Rela_relocations()
553 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela); in do_Elf_Rela_relocations()
554 int target_shndx = shdr[shnum].sh_info; in do_Elf_Rela_relocations()
555 int symtab_shndx = shdr[shnum].sh_link; in do_Elf_Rela_relocations()
[all …]
/external/valgrind/VEX/switchback/
Dlinker.c516 Elf_Shdr* shdr, int shnum,
522 Elf_Rel* rtab = (Elf_Rel*) (ehdrC + shdr[shnum].sh_offset);
523 int nent = shdr[shnum].sh_size / sizeof(Elf_Rel);
524 int target_shndx = shdr[shnum].sh_info;
525 int symtab_shndx = shdr[shnum].sh_link;
642 Elf_Shdr* shdr, int shnum,
648 Elf_Rela* rtab = (Elf_Rela*) (ehdrC + shdr[shnum].sh_offset);
649 int nent = shdr[shnum].sh_size / sizeof(Elf_Rela);
650 int target_shndx = shdr[shnum].sh_info;
651 int symtab_shndx = shdr[shnum].sh_link;
[all …]
/external/elfutils/src/src/
Dstrip.c565 size_t shnum; in handle_elf() local
566 if (unlikely (elf_getshdrnum (elf, &shnum) < 0)) in handle_elf()
573 if (shstrndx >= shnum) in handle_elf()
582 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()
583 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, in handle_elf()
587 shdr_info = (struct shdr_info *) alloca ((shnum + 2) in handle_elf()
589 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); in handle_elf()
622 if (shdr_info[cnt].old_sh_link >= shnum) in handle_elf()
654 if (grpref[inner] < shnum) in handle_elf()
701 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
[all …]
Dunstrip.c341 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum, in symtab_count_leading_section_symbols() argument
347 for (size_t i = 1; i < shnum; ++i) in symtab_count_leading_section_symbols()
371 return shnum; in symtab_count_leading_section_symbols()
555 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) in add_new_section_symbols() argument
557 const size_t added = shnum - old_shnum; in add_new_section_symbols()
593 for (size_t i = old_shnum; i < shnum; ++i) in add_new_section_symbols()
634 size_t shnum, size_t shstrndx, in check_symtab_section_symbols() argument
642 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum); in check_symtab_section_symbols()
980 uint_fast16_t shnum; in find_alloc_sections_prelink() local
984 shnum = ehdr.e32.e_shnum; in find_alloc_sections_prelink()
[all …]
Dnm.c743 size_t shnum; in show_symbols_sysv() local
744 if (elf_getshdrnum (ebl->elf, &shnum) < 0) in show_symbols_sysv()
747 bool scnnames_malloced = shnum * sizeof (const char *) > 128 * 1024; in show_symbols_sysv()
750 scnnames = (const char **) xmalloc (sizeof (const char *) * shnum); in show_symbols_sysv()
752 scnnames = (const char **) alloca (sizeof (const char *) * shnum); in show_symbols_sysv()
867 shnum)); in show_symbols_sysv()
Delflint.c127 static unsigned int shnum; variable
320 if ((unsigned int) idx > shnum) in section_name()
428 shnum = ehdr->e_shnum; in check_elf_header()
453 shnum = shdr->sh_size; in check_elf_header()
463 if (shdr != NULL && shdr->sh_link < shnum) in check_elf_header()
466 else if (shstrndx >= shnum) in check_elf_header()
508 else if (ehdr->e_shoff + shnum * ehdr->e_shentsize > size) in check_elf_header()
542 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group()
569 if (cnt == shnum) in check_scn_group()
613 for (size_t cnt = 1; cnt < shnum; ++cnt) in check_symtab()
[all …]
Dldgeneric.c647 size_t shnum; in check_definition() local
649 if (elf_getshdrnum (fileinfo->elf, &shnum) < 0) in check_definition()
655 if (shndx < SHN_LORESERVE || (shndx > SHN_HIRESERVE && shndx < shnum)) in check_definition()
662 NULL, shnum); in check_definition()
686 buf, sizeof (buf), NULL, shnum); in check_definition()
1611 size_t shnum; in add_relocatable_file() local
1612 assert (elf_getshdrnum (fileinfo->elf, &shnum) == 0); in add_relocatable_file()
1613 assert (shndx < shnum); in add_relocatable_file()
Dreadelf.c233 static size_t shnum; variable
827 if (unlikely (elf_getshdrnum (ebl->elf, &shnum) < 0)) in process_elf_file()
1094 for (cnt = 0; cnt < shnum; ++cnt) in print_shdr()
1264 for (size_t inner = 1; inner < shnum; ++inner) in print_phdr()
2263 sizeof (scnbuf), NULL, shnum), in handle_symtab()
9267 if (shnum != 0) in handle_notes()
/external/elfutils/src/libdwfl/
Ddwfl_module_getdwarf.c313 uint_fast16_t shnum; in find_prelink_address_sync() local
320 shnum = ehdr.e32.e_shnum; in find_prelink_address_sync()
328 shnum = ehdr.e64.e_shnum; in find_prelink_address_sync()
333 if (unlikely (shnum >= SHN_LORESERVE) in find_prelink_address_sync()
336 + (shnum - 1) * shentsize))) in find_prelink_address_sync()
406 src.d_size = gelf_fsize (mod->main.elf, ELF_T_SHDR, shnum - 1, EV_CURRENT); in find_prelink_address_sync()
410 Elf32_Shdr s32[shnum - 1]; in find_prelink_address_sync()
411 Elf64_Shdr s64[shnum - 1]; in find_prelink_address_sync()
470 for (size_t i = 0; i < shnum - 1; ++i) in find_prelink_address_sync()
474 for (size_t i = 0; i < shnum - 1; ++i) in find_prelink_address_sync()
/external/valgrind/perf/
Dtinycc.c19217 int shnum, i, phnum, file_offset, offset, size, j, tmp, sh_order_index, k; in tcc_output_file() local
19412 shnum = s1->nb_sections; in tcc_output_file()
19415 section_order = tcc_malloc(sizeof(int) * shnum); in tcc_output_file()
19783 ehdr.e_shnum = shnum; in tcc_output_file()
19784 ehdr.e_shstrndx = shnum - 1; in tcc_output_file()
/external/elfutils/src/po/
Duk.po2608 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2612 "ненульове значення shnum\n"
Den@boldquot.po2552 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2555 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Den@quot.po2543 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2546 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Dpl.po2595 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2599 "niezerową wartość shnum\n"
Des.po2627 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2631 "ELF tiene valor shnum nonzero\n"
Delfutils.pot2407 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Dde.po2432 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Dja.po2501 "zeroth section has nonzero size value while ELF header has nonzero shnum "