Lines Matching defs:pe_chdr
125 struct grub_pe32_coff_header *pe_chdr,
130 char *pe_strtab = (image + pe_chdr->symtab_offset
131 + pe_chdr->num_symbols * sizeof (struct grub_pe32_symbol));
133 section_map = xmalloc ((pe_chdr->num_sections + 1) * sizeof (int));
136 for (i = 0; i < pe_chdr->num_sections; i++, pe_shdr++)
224 struct grub_pe32_coff_header *pe_chdr,
249 if ((pe_rel->symtab_index >= pe_chdr->num_symbols) ||
314 struct grub_pe32_coff_header *pe_chdr,
324 pe_symtab = (struct grub_pe32_symbol *) (image + pe_chdr->symtab_offset);
325 pe_strtab = (char *) (pe_symtab + pe_chdr->num_symbols);
327 symtab = (Elf32_Sym *) xmalloc ((pe_chdr->num_symbols + 1) *
329 memset (symtab, 0, (pe_chdr->num_symbols + 1) * sizeof (Elf32_Sym));
332 symtab_map = (int *) xmalloc (pe_chdr->num_symbols * sizeof (int));
334 for (i = 0; i < (int) pe_chdr->num_symbols;
340 if ((pe_symtab->section > pe_chdr->num_sections) ||
393 write_reloc_section (fp, image, pe_chdr, pe_shdr, symtab, symtab_map);
455 struct grub_pe32_coff_header *pe_chdr;
459 pe_chdr = (struct grub_pe32_coff_header *) image;
460 if (grub_le_to_cpu16 (pe_chdr->machine) != GRUB_PE32_MACHINE_I386)
469 pe_shdr = (struct grub_pe32_section_table *) (pe_chdr + 1);
472 section_map = write_section_data (fp, image, pe_chdr, pe_shdr);
474 write_symbol_table (fp, image, pe_chdr, pe_shdr, section_map);