image: Unconditionally parse PE/COFF data

Rather than requiring an explicit image_pecoff_parse, do it
unconditionally in image_load. We don't have any instances where we need
to do this separately.

Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com>
This commit is contained in:
Jeremy Kerr 2012-06-13 17:39:34 +08:00
parent 186f1d59d9
commit 376974e386
5 changed files with 51 additions and 52 deletions

View file

@ -77,7 +77,6 @@ struct cert_table_header {
struct image *image_load(const char *filename);
int image_pecoff_parse(struct image *image);
int image_find_regions(struct image *image);
int image_hash_sha256(struct image *image, uint8_t digest[]);
int image_write(struct image *image, const char *filename);