Home
last modified time | relevance | path

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

/external/elfutils/0.153/libelf/
Delf_update.c64 write_file (Elf *elf, off_t size, int change_bo, size_t shnum) in write_file() argument
107 ? __elf32_updatemmap (elf, change_bo, shnum) in write_file()
108 : __elf64_updatemmap (elf, change_bo, shnum)) != 0) in write_file()
116 ? __elf32_updatefile (elf, change_bo, shnum) in write_file()
117 : __elf64_updatefile (elf, change_bo, shnum)) != 0) in write_file()
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);
Delf32_updatenull.c73 size_t shnum, int *change_bop) in ELFW()
115 if (unlikely (shnum >= SHN_LORESERVE)) in ELFW()
121 update_if_changed (ehdr->e_shnum, shnum, in ELFW()
136 __elfw2(LIBELFBITS,updatenull_wrlock) (Elf *elf, int *change_bop, size_t shnum) in __elfw2()
145 if (ELFW(default_ehdr,LIBELFBITS) (elf, ehdr, shnum, change_bop) != 0) in __elfw2()
190 if (shnum > 0) in __elfw2()
197 if (shnum >= SHN_LORESERVE) in __elfw2()
204 shnum, scn0->shdr_flags); in __elfw2()
413 + (elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum)))); in __elfw2()
431 size += elf_typesize (LIBELFBITS, ELF_T_SHDR, shnum); in __elfw2()
Delf32_getshdr.c83 size_t shnum; in ElfW2() local
84 if (__elf_getshdrnum_rdlock (elf, &shnum) != 0) in ElfW2()
86 size_t size = shnum * sizeof (ElfW2(LIBELFBITS,Shdr)); in ElfW2()
135 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2()
153 && shdr[cnt].sh_link < shnum) in ElfW2()
181 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2()
210 for (size_t cnt = 0; cnt < shnum; ++cnt) in ElfW2()
Delf32_updatefile.c127 __elfw2(LIBELFBITS,updatemmap) (Elf *elf, int change_bo, size_t shnum) in __elfw2()
224 if (shnum > 0) in __elfw2()
227 Elf_Scn **scns = (Elf_Scn **) alloca (shnum * sizeof (Elf_Scn *)); in __elfw2()
245 for (size_t cnt = 0; cnt < shnum; ++cnt) in __elfw2()
294 for (size_t cnt = 0; cnt < shnum; ++cnt) in __elfw2()
423 for (size_t cnt = 0; cnt < shnum; ++cnt) in __elfw2()
458 + ehdr->e_shentsize * shnum); in __elfw2()
510 __elfw2(LIBELFBITS,updatefile) (Elf *elf, int change_bo, size_t shnum) in __elfw2()
646 if (shnum > 0) in __elfw2()
659 alloca (shnum * sizeof (ElfW2(LIBELFBITS,Shdr))); in __elfw2()
[all …]
DlibelfP.h498 size_t shnum) internal_function;
500 size_t shnum) internal_function;
502 extern int __elf32_updatemmap (Elf *elf, int change_bo, size_t shnum)
504 extern int __elf64_updatemmap (Elf *elf, int change_bo, size_t shnum)
506 extern int __elf32_updatefile (Elf *elf, int change_bo, size_t shnum)
508 extern int __elf64_updatefile (Elf *elf, int change_bo, size_t shnum)
/external/elfutils/0.153/libebl/
Deblsectionname.c60 ebl_section_name (ebl, section, xsection, buf, len, scnnames, shnum) in ebl_section_name() argument
67 size_t shnum;
85 && (size_t) section < shnum)
Dlibebl.h132 const char *scnnames[], size_t shnum);
/external/valgrind/main/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/main/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/0.153/libdwfl/
Ddwfl_module_getdwarf.c368 uint_fast16_t shnum; in find_prelink_address_sync() local
375 shnum = ehdr.e32.e_shnum; in find_prelink_address_sync()
383 shnum = ehdr.e64.e_shnum; in find_prelink_address_sync()
388 if (unlikely (shnum >= SHN_LORESERVE) in find_prelink_address_sync()
391 + (shnum - 1) * shentsize))) in find_prelink_address_sync()
461 src.d_size = gelf_fsize (mod->main.elf, ELF_T_SHDR, shnum - 1, EV_CURRENT); in find_prelink_address_sync()
465 Elf32_Shdr s32[shnum - 1]; in find_prelink_address_sync()
466 Elf64_Shdr s64[shnum - 1]; in find_prelink_address_sync()
525 for (size_t i = 0; i < shnum - 1; ++i) in find_prelink_address_sync()
529 for (size_t i = 0; i < shnum - 1; ++i) in find_prelink_address_sync()
/external/elfutils/0.153/src/
Dstrip.c567 size_t shnum; in handle_elf() local
568 if (unlikely (elf_getshdrnum (elf, &shnum) < 0)) in handle_elf()
579 if ((shnum + 2) * sizeof (struct shdr_info) > MAX_STACK_ALLOC) in handle_elf()
580 shdr_info = (struct shdr_info *) xcalloc (shnum + 2, in handle_elf()
584 shdr_info = (struct shdr_info *) alloca ((shnum + 2) in handle_elf()
586 memset (shdr_info, '\0', (shnum + 2) * sizeof (struct shdr_info)); in handle_elf()
690 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
736 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
818 if (scnidx == SHN_UNDEF || scnidx >= shnum in handle_elf()
908 for (cnt = 1; cnt < shnum; ++cnt) in handle_elf()
[all …]
Dunstrip.c338 symtab_count_leading_section_symbols (Elf *elf, Elf_Scn *scn, size_t shnum, in symtab_count_leading_section_symbols() argument
344 for (size_t i = 1; i < shnum; ++i) in symtab_count_leading_section_symbols()
368 return shnum; in symtab_count_leading_section_symbols()
552 Elf *elf, bool rel, Elf_Scn *symscn, size_t shnum) in add_new_section_symbols() argument
554 const size_t added = shnum - old_shnum; in add_new_section_symbols()
590 for (size_t i = old_shnum; i < shnum; ++i) in add_new_section_symbols()
631 size_t shnum, size_t shstrndx, in check_symtab_section_symbols() argument
639 return add_new_section_symbols (oscn, n, elf, rel, scn, shnum); in check_symtab_section_symbols()
977 uint_fast16_t shnum; in find_alloc_sections_prelink() local
981 shnum = ehdr.e32.e_shnum; in find_alloc_sections_prelink()
[all …]
Dnm.c751 size_t shnum; in show_symbols_sysv() local
752 if (elf_getshdrnum (ebl->elf, &shnum) < 0) in show_symbols_sysv()
755 bool scnnames_malloced = shnum * sizeof (const char *) > 128 * 1024; in show_symbols_sysv()
758 scnnames = (const char **) xmalloc (sizeof (const char *) * shnum); in show_symbols_sysv()
760 scnnames = (const char **) alloca (sizeof (const char *) * shnum); in show_symbols_sysv()
876 shnum)); in show_symbols_sysv()
Delflint.c348 static unsigned int shnum; variable
427 shnum = ehdr->e_shnum; in check_elf_header()
452 shnum = shdr->sh_size; in check_elf_header()
462 if (shdr != NULL && shdr->sh_link < shnum) in check_elf_header()
465 else if (shstrndx >= shnum) in check_elf_header()
507 else if (ehdr->e_shoff + shnum * ehdr->e_shentsize > size) in check_elf_header()
541 for (cnt = idx + 1; cnt < shnum; ++cnt) in check_scn_group()
568 if (cnt == shnum) in check_scn_group()
612 for (size_t cnt = 1; cnt < shnum; ++cnt) in check_symtab()
716 || (sym->st_shndx >= shnum in check_symtab()
[all …]
Dldgeneric.c655 size_t shnum; in check_definition() local
657 if (elf_getshdrnum (fileinfo->elf, &shnum) < 0) in check_definition()
663 if (shndx < SHN_LORESERVE || (shndx > SHN_HIRESERVE && shndx < shnum)) in check_definition()
670 NULL, shnum); in check_definition()
694 buf, sizeof (buf), NULL, shnum); in check_definition()
1619 size_t shnum; in add_relocatable_file() local
1620 assert (elf_getshdrnum (fileinfo->elf, &shnum) == 0); in add_relocatable_file()
1621 assert (shndx < shnum); in add_relocatable_file()
Dreadelf.c216 static size_t shnum; variable
640 if (unlikely (elf_getshdrnum (ebl->elf, &shnum) < 0)) in process_elf_file()
907 for (cnt = 0; cnt < shnum; ++cnt) in print_shdr()
1060 for (size_t inner = 1; inner < shnum; ++inner) in print_phdr()
2024 sizeof (scnbuf), NULL, shnum), in handle_symtab()
8206 if (shnum != 0) in handle_notes()
/external/valgrind/main/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/0.153/po/
Duk.po2524 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2528 "ненульове значення shnum\n"
Den@boldquot.po2476 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2479 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Den@quot.po2467 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2470 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Dpl.po2515 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2519 "niezerową wartość shnum\n"
Des.po2547 "zeroth section has nonzero size value while ELF header has nonzero shnum "
2551 "ELF tiene valor shnum nonzero\n"
Delfutils.pot2333 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Dja.po2422 "zeroth section has nonzero size value while ELF header has nonzero shnum "
Dde.po2353 "zeroth section has nonzero size value while ELF header has nonzero shnum "