Lines Matching refs:e_shnum
97 if (shndx < ehdr.e_shnum) in sec_name()
112 for (i = 0; i < ehdr.e_shnum; i++) in sec_lookup()
235 ehdr.e_shnum = elf_half_to_cpu(ehdr.e_shnum); in read_ehdr()
256 if (ehdr.e_shstrndx >= ehdr.e_shnum) in read_ehdr()
265 secs = calloc(ehdr.e_shnum, sizeof(struct section)); in read_shdrs()
267 die("Unable to allocate %d section headers\n", ehdr.e_shnum); in read_shdrs()
272 for (i = 0; i < ehdr.e_shnum; i++) { in read_shdrs()
278 i, ehdr.e_shnum, strerror(errno)); in read_shdrs()
289 if (sec->shdr.sh_link < ehdr.e_shnum) in read_shdrs()
298 for (i = 0; i < ehdr.e_shnum; i++) { in read_strtabs()
323 for (i = 0; i < ehdr.e_shnum; i++) { in read_symtabs()
366 for (i = 0; i < ehdr.e_shnum; i++) { in read_relocs()
412 for (i = 0; i < ehdr.e_shnum; i++) { in remove_relocs()
424 i, ehdr.e_shnum, strerror(errno)); in remove_relocs()
438 i, ehdr.e_shnum, strerror(errno)); in remove_relocs()
473 for (i = 0; i < ehdr.e_shnum; i++) { in walk_relocs()