-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
55 lines (24 loc) · 1.62 KB
/
README
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
Mach-O Tool (MTool)
===================
About.
This is a project for analysing Mach-O images, used on Apple's Operating System family, stemming from the Mach kernel.
Most of this is focused on modern binaries used in Apple's systems.
Additionally, we want to be able to handle ex. dyld shared caches, fat binaries, etc.
Building.
First time:
Clone this repository.
From the root of this repository, run `sh ref/clone.sh`. This will checkout various open source components of Apple's OS family into the `ref/` directory.
Open the mtool.xcodeproj project in Xcode.
Build the `extract_external_headers` target. This will process and copy various public and private headers out of the open source code from Apple.
Subsequently:
Simply build whichever target you wish. The LibObjC framework is a utility framework used by both the MTool framework and the command line tool.
The source for the MTool framework is compiled as a static library which is linked with the mtool command frontend and then linked with the version into to build the dynamic library.
The dynamic framework exists only to export headers and allow integration into other projects.
The command line tool is for end user access to the interfaces provided therein.
Testing.
The `test` directory contains a Makefile and source code for various tools useful in testing the mtool command.
It responds to `make all` and `make clean` as per standard. It builds into the `test/bin` directory.
Licensing.
I license all code contained explicitly in this repo under GPLv3.
Some of the scripts download code covered under the APSLv2.
The GPL code may require APSL code to build.