Lines Matching defs:image
1 /* grub-pe2elf.c - tool to convert pe image to elf. */
52 Tool to convert pe image to elf.\n\
124 write_section_data (FILE* fp, char *image,
130 char *pe_strtab = (image + pe_chdr->symtab_offset
192 grub_util_write_image_at (image + pe_shdr->raw_data_offset,
223 write_reloc_section (FILE* fp, char *image,
239 pe_rel = (struct grub_pe32_reloc *) (image + pe_sec->relocations_offset);
261 addr = (grub_uint32_t *)(image + pe_sec->raw_data_offset + ofs);
266 code = image[pe_sec->raw_data_offset + ofs - 1];
294 grub_util_write_image_at (image + pe_sec->raw_data_offset,
313 write_symbol_table (FILE* fp, char *image,
324 pe_symtab = (struct grub_pe32_symbol *) (image + pe_chdr->symtab_offset);
393 write_reloc_section (fp, image, pe_chdr, pe_shdr, symtab, symtab_map);
453 convert_pe (FILE* fp, char *image)
459 pe_chdr = (struct grub_pe32_coff_header *) image;
461 grub_util_error ("invalid coff image");
472 section_map = write_section_data (fp, image, pe_chdr, pe_shdr);
474 write_symbol_table (fp, image, pe_chdr, pe_shdr, section_map);
485 char *image;
525 image = grub_util_read_image (argv[optind]);
534 convert_pe (fp, image);