Lines Matching refs:num_sections
98 int num_sections;
133 section_map = xmalloc ((pe_chdr->num_sections + 1) * sizeof (int));
136 for (i = 0; i < pe_chdr->num_sections; i++, pe_shdr++)
202 if (num_sections >= MAX_SECTIONS)
207 shdr[num_sections].sh_name = insert_string (relname);
208 shdr[num_sections].sh_link = i;
209 shdr[num_sections].sh_info = idx;
211 shdr[idx].sh_name = shdr[num_sections].sh_name + 4;
213 num_sections++;
231 for (i = REL_SECTION; i < num_sections; i++)
340 if ((pe_symtab->section > pe_chdr->num_sections) ||
445 ehdr.e_shnum = num_sections;
446 grub_util_write_image_at (&shdr, sizeof (Elf32_Shdr) * num_sections,
470 num_sections = REL_SECTION;