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