forked from gdbinit/MachOView
-
Notifications
You must be signed in to change notification settings - Fork 0
/
DyldInfo.h
46 lines (34 loc) · 1.26 KB
/
DyldInfo.h
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
/*
* DyldInfo.h
* MachOView
*
* Created by psaghelyi on 21/09/2010.
*
*/
#import "MachOLayout.h"
@interface DyldHelper : NSObject
{
NSMutableDictionary * externalMap; // external symbol name --> symbols index (negative number)
}
+(DyldHelper *) dyldHelperWithSymbols:(NSDictionary *)symbolNames is64Bit:(bool)is64Bit;
@end
@interface MachOLayout (DyldInfo)
enum BindNodeType {NodeTypeBind, NodeTypeWeakBind, NodeTypeLazyBind};
- (MVNode *)createRebaseNode:(MVNode *)parent
caption:(NSString *)caption
location:(uint64_t)location
length:(uint64_t)length
baseAddress:(uint64_t)baseAddress;
- (MVNode *)createBindingNode:(MVNode *)parent
caption:(NSString *)caption
location:(uint64_t)location
length:(uint64_t)length
baseAddress:(uint64_t)baseAddress
nodeType:(BindNodeType)nodeType
dyldHelper:(DyldHelper *)helper;
- (MVNode *)createExportNode:(MVNode *)parent
caption:(NSString *)caption
location:(uint64_t)location
length:(uint64_t)length
baseAddress:(uint64_t)baseAddress;
@end