summaryrefslogtreecommitdiffhomepage
path: root/include/mdso/mdso_structs.h
blob: 133825e16c73983751f98b77336016b9232825e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
#ifndef MDSO_STRUCTS_H
#define MDSO_STRUCTS_H

#ifdef __cplusplus
extern "C" {
#endif

struct mdso_raw_arg_m32 {
	unsigned char	marg_utf8	[0x04];		/* 0x00 */
	unsigned char	marg_utf16	[0x04];		/* 0x04 */
};

struct mdso_raw_arg_m64 {
	unsigned char	marg_utf8	[0x08];		/* 0x00 */
	unsigned char	marg_utf16	[0x08];		/* 0x08 */
};

union mdso_raw_arg {
	struct mdso_raw_arg_m32		marg_m32;
	struct mdso_raw_arg_m64		marg_m64;
};


struct mdso_raw_sym_entry_m32 {
	unsigned char	msym_string	[0x04];		/* 0x00 */
	unsigned char	msym_meta	[0x04];		/* 0x04 */
};

struct mdso_raw_sym_entry_m64 {
	unsigned char	msym_string	[0x08];		/* 0x00 */
	unsigned char	msym_meta	[0x08];		/* 0x08 */
};

union mdso_raw_sym_entry {
	struct mdso_raw_sym_entry_m32	msym_m32;
	struct mdso_raw_sym_entry_m64	msym_m64;
};


struct mdso_raw_meta_record_m32 {
	unsigned char	mrec_base	[0x04];		/* 0x00 */
	unsigned char	mrec_name	[0x04];		/* 0x04 */
	unsigned char	mrec_flags	[0x04];		/* 0x08 */
	unsigned char	mrec_priority	[0x04];		/* 0x0c */
	unsigned char	mrec_nsyms	[0x04];		/* 0x10 */
	unsigned char	mrec_padding	[0x04];		/* 0x14 */
	unsigned char	mrec_hashtbl	[0x04];		/* 0x18 */
	unsigned char	mrec_symtbl	[0x04];		/* 0x1c */
	unsigned char	mrec_fncarg	[0x04];		/* 0x20 */
	unsigned char	mrec_fncargarr	[0x04];		/* 0x24 */
	unsigned char	mrec_fnr1	[0x04];		/* 0x28 */
	unsigned char	mrec_fnr2	[0x04];		/* 0x2c */
};

struct mdso_raw_meta_record_m64 {
	unsigned char	mrec_base	[0x08];		/* 0x00 */
	unsigned char	mrec_name	[0x08];		/* 0x08 */
	unsigned char	mrec_flags	[0x04];		/* 0x10 */
	unsigned char	mrec_priority	[0x04];		/* 0x14 */
	unsigned char	mrec_nsyms	[0x04];		/* 0x18 */
	unsigned char	mrec_padding	[0x04];		/* 0x1c */
	unsigned char	mrec_hashtbl	[0x08];		/* 0x20 */
	unsigned char	mrec_symtbl	[0x08];		/* 0x28 */
	unsigned char	mrec_fncarg	[0x08];		/* 0x30 */
	unsigned char	mrec_fncargarr	[0x08];		/* 0x38 */
	unsigned char	mrec_fnr1	[0x08];		/* 0x40 */
	unsigned char	mrec_fnr2	[0x08];		/* 0x48 */
};

union mdso_raw_meta_record {
	struct mdso_raw_meta_record_m32	mrec_m32;
	struct mdso_raw_meta_record_m64	mrec_m64;
};


#ifdef __cplusplus
}
#endif

#endif