Searched refs:shnum (Results 1 – 7 of 7) sorted by relevance
42 static unsigned long shnum; variable146 shnum = ehdr.e_shnum; in read_ehdr()171 if (shnum == SHN_UNDEF) in read_ehdr()172 shnum = elf_xword_to_cpu(shdr.sh_size); in read_ehdr()178 if (shstrndx >= shnum) in read_ehdr()187 secs = calloc(shnum, sizeof(struct section)); in read_shdrs()194 for (i = 0; i < shnum; i++) { in read_shdrs()199 i, shnum, strerror(errno)); in read_shdrs()213 if (sec->shdr.sh_link < shnum) in read_shdrs()223 for (i = 0; i < shnum; i++) { in read_relocs()[all …]
15 static unsigned long shnum; variable267 if (shndx < shnum) in sec_name()374 shnum = ehdr.e_shnum; in read_ehdr()400 if (shnum == SHN_UNDEF) in read_ehdr()407 if (shstrndx >= shnum) in read_ehdr()423 for (i = 0; i < shnum; i++) { in read_shdrs()449 for (i = 0; i < shnum; i++) { in read_strtabs()471 for (i = 0; i < shnum; i++) { in read_symtabs()525 for (i = 0; i < shnum; i++) { in read_relocs()567 for (i = 0; i < shnum; i++) { in print_absolute_symbols()[all …]
151 EHDR_HALF(shnum) in EHDR_HALF()697 unsigned int shnum; in fill_relocs() local705 shnum = ehdr_shnum(ehdr); in fill_relocs()706 if (shnum == SHN_UNDEF) in fill_relocs()754 unsigned int shnum; in replace_relocs() local760 shnum = ehdr_shnum(ehdr); in replace_relocs()761 if (shnum == SHN_UNDEF) in replace_relocs()949 unsigned int shnum; in do_sort() local969 shnum = ehdr_shnum(ehdr); in do_sort()970 if (shnum == SHN_UNDEF) in do_sort()[all …]
356 int shnum; in rproc_coredump_using_sections() local376 shnum = 2; in rproc_coredump_using_sections()386 shnum++; in rproc_coredump_using_sections()407 elf_hdr_set_e_shnum(class, ehdr, shnum); in rproc_coredump_using_sections()
258 u16 shnum = elf_hdr_get_e_shnum(class, ehdr); local270 for (i = 0; i < shnum; i++, shdr += elf_shdr_get_size) {
876 u16 shnum = ehdr->e_shnum; in pru_rproc_find_interrupt_map() local887 for (i = 0; i < shnum; i++, shdr++) { in pru_rproc_find_interrupt_map()
79 unsigned int shnum, unsigned int pcpundx) in is_core_symbol() argument85 src->st_shndx >= shnum || in is_core_symbol()