rizin/libr/bin/format/mz/mz_specs.h
Oleksii Kuchma 0c57a435fc Rewrite MZ bin plugin
* Add const modifiers, fix function call style
* Add checking and using dos_file_size
* Fix number of arguments in load_bytes.
* Add check for NE, LE and LX executables.
* Fix function declaration for btree_traverse.
2015-06-08 22:18:21 +02:00

23 lines
453 B
C

/* radare - LGPL - Copyright 2015 nodepad */
typedef struct {
ut16 signature; /* == 'MZ' or 'ZM' */
ut16 bytes_in_last_block;
ut16 blocks_in_file;
ut16 num_relocs;
ut16 header_paragraphs;
ut16 min_extra_paragraphs;
ut16 max_extra_paragraphs;
ut16 ss;
ut16 sp;
ut16 checksum;
ut16 ip;
ut16 cs;
ut16 reloc_table_offset;
ut16 overlay_number;
} MZ_image_dos_header;
typedef struct {
ut16 offset;
ut16 segment;
} MZ_image_relocation_entry;