Rizin
unix-like reverse engineering framework and cli tools
mz.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: 2015 nodepad <nod3pad@gmail.com>
2 // SPDX-License-Identifier: LGPL-3.0-only
3 
4 #ifndef MZ_H
5 #define MZ_H
6 
7 #include <rz_types.h>
8 #include <rz_list.h>
9 #include <rz_util.h>
10 #include <rz_bin.h>
11 #include "mz_specs.h"
12 
17  int last;
18 };
19 
23  int last;
24 };
25 
28  const void *dos_extended_header;
30 
32 
33  int size;
34  int dos_file_size; /* Size of dos file from dos executable header */
35  int load_module_size; /* Size of load module: dos_file_size - header size */
36  const char *file;
38  Sdb *kv;
39 };
40 
44 void *rz_bin_mz_free(struct rz_bin_mz_obj_t *bin);
45 struct rz_bin_mz_obj_t *rz_bin_mz_new(const char *file);
48 
49 #endif
voidpf void * buf
Definition: ioapi.h:138
RzList * rz_bin_mz_get_segments(const struct rz_bin_mz_obj_t *bin)
Definition: mz.c:62
struct rz_bin_mz_obj_t * rz_bin_mz_new(const char *file)
Definition: mz.c:293
RzBinAddr * rz_bin_mz_get_entrypoint(const struct rz_bin_mz_obj_t *bin)
Definition: mz.c:16
struct rz_bin_mz_obj_t * rz_bin_mz_new_buf(RzBuffer *buf)
Definition: mz.c:317
void * rz_bin_mz_free(struct rz_bin_mz_obj_t *bin)
Definition: mz.c:188
RzBinAddr * rz_bin_mz_get_main_vaddr(struct rz_bin_mz_obj_t *bin)
Definition: mz.c:330
struct rz_bin_mz_reloc_t * rz_bin_mz_get_relocs(const struct rz_bin_mz_obj_t *bin)
Definition: mz.c:163
Definition: mz_specs.h:21
Definition: malloc.c:26
Definition: gzappend.c:170
int dos_extended_header_size
Definition: mz.h:31
const void * dos_extended_header
Definition: mz.h:28
Sdb * kv
Definition: mz.h:38
int dos_file_size
Definition: mz.h:34
RzBuffer * b
Definition: mz.h:37
int size
Definition: mz.h:33
MZ_image_relocation_entry * relocation_entries
Definition: mz.h:29
int load_module_size
Definition: mz.h:35
const MZ_image_dos_header * dos_header
Definition: mz.h:27
const char * file
Definition: mz.h:36
int last
Definition: mz.h:23
ut64 vaddr
Definition: mz.h:22
ut64 paddr
Definition: mz.h:21
ut64 paddr
Definition: mz.h:14
ut64 vaddr
Definition: mz.h:15
Definition: sdb.h:63
ut64(WINAPI *w32_GetEnabledXStateFeatures)()