Rizin
unix-like reverse engineering framework and cli tools
zimg.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2009-2015 ninjahacker <wardjm@gmail.com>
2
// SPDX-License-Identifier: LGPL-3.0-only
3
4
#ifndef ZIMG_H
5
#define ZIMG_H
6
7
#include <
rz_types.h
>
8
#include <
rz_util.h
>
9
#include <
rz_lib.h
>
10
#include <
rz_bin.h
>
11
12
#define RZ_BIN_ZIMG_MAXSTR 256
13
14
struct
zimg_header_t
{
15
ut8
magic
[8];
16
ut32
filler
[6];
17
ut8
arm_magic
[4];
18
ut32
kernel_start
;
19
ut32
kernel_end
;
20
};
21
22
typedef
struct
rz_bin_zimg_obj_t
{
23
int
size
;
24
const
char
*
file
;
25
RzBuffer
*
b
;
26
struct
zimg_header_t
header
;
27
ut32
*
strings
;
28
RzList
*
methods_list
;
29
RzList
*
imports_list
;
30
ut64
code_from
;
31
ut64
code_to
;
32
Sdb
*
kv
;
33
}
RzBinZimgObj
;
34
35
struct
rz_bin_zimg_str_t
{
36
char
str
[
RZ_BIN_ZIMG_MAXSTR
];
37
ut64
offset
;
38
ut64
ordinal
;
39
int
size
;
40
int
last
;
41
};
42
43
struct
rz_bin_zimg_obj_t
*
rz_bin_zimg_new_buf
(
RzBuffer
*
buf
);
44
struct
rz_bin_zimg_str_t
*
rz_bin_zimg_get_strings
(
struct
rz_bin_zimg_obj_t
*
bin
);
45
46
#endif
ut32
uint32_t ut32
Definition:
demangler_util.h:31
buf
voidpf void * buf
Definition:
ioapi.h:138
ut8
uint8_t ut8
Definition:
lh5801.h:11
rz_bin.h
rz_lib.h
rz_types.h
rz_util.h
bin
Definition:
malloc.c:26
rz_bin_zimg_obj_t
Definition:
zimg.h:22
rz_bin_zimg_obj_t::kv
Sdb * kv
Definition:
zimg.h:32
rz_bin_zimg_obj_t::code_from
ut64 code_from
Definition:
zimg.h:30
rz_bin_zimg_obj_t::code_to
ut64 code_to
Definition:
zimg.h:31
rz_bin_zimg_obj_t::methods_list
RzList * methods_list
Definition:
zimg.h:28
rz_bin_zimg_obj_t::size
int size
Definition:
zimg.h:23
rz_bin_zimg_obj_t::header
struct zimg_header_t header
Definition:
zimg.h:26
rz_bin_zimg_obj_t::b
RzBuffer * b
Definition:
zimg.h:25
rz_bin_zimg_obj_t::strings
ut32 * strings
Definition:
zimg.h:27
rz_bin_zimg_obj_t::imports_list
RzList * imports_list
Definition:
zimg.h:29
rz_bin_zimg_obj_t::file
const char * file
Definition:
zimg.h:24
rz_bin_zimg_str_t
Definition:
zimg.h:35
rz_bin_zimg_str_t::ordinal
ut64 ordinal
Definition:
zimg.h:38
rz_bin_zimg_str_t::size
int size
Definition:
zimg.h:39
rz_bin_zimg_str_t::str
char str[RZ_BIN_ZIMG_MAXSTR]
Definition:
zimg.h:36
rz_bin_zimg_str_t::offset
ut64 offset
Definition:
zimg.h:37
rz_bin_zimg_str_t::last
int last
Definition:
zimg.h:40
rz_buf_t
Definition:
rz_buf.h:43
rz_list_t
Definition:
rz_list.h:18
sdb_t
Definition:
sdb.h:63
zimg_header_t
Definition:
zimg.h:14
zimg_header_t::kernel_start
ut32 kernel_start
Definition:
zimg.h:18
zimg_header_t::filler
ut32 filler[6]
Definition:
zimg.h:16
zimg_header_t::arm_magic
ut8 arm_magic[4]
Definition:
zimg.h:17
zimg_header_t::kernel_end
ut32 kernel_end
Definition:
zimg.h:19
zimg_header_t::magic
ut8 magic[8]
Definition:
zimg.h:15
ut64
ut64(WINAPI *w32_GetEnabledXStateFeatures)()
RzBinZimgObj
struct rz_bin_zimg_obj_t RzBinZimgObj
RZ_BIN_ZIMG_MAXSTR
#define RZ_BIN_ZIMG_MAXSTR
Definition:
zimg.h:12
rz_bin_zimg_new_buf
struct rz_bin_zimg_obj_t * rz_bin_zimg_new_buf(RzBuffer *buf)
Definition:
zimg.c:8
rz_bin_zimg_get_strings
struct rz_bin_zimg_str_t * rz_bin_zimg_get_strings(struct rz_bin_zimg_obj_t *bin)
librz
bin
format
zimg
zimg.h
Generated by
1.9.1