Created
July 12, 2018 18:24
-
-
Save sovietw0rm/110f49065942987c1d52b6caa5425917 to your computer and use it in GitHub Desktop.
dsc_extractor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+++ dsc_extractor.cpp 2017-06-02 08:55:43.000000000 +0700 | |
@@ -37,7 +37,7 @@ | |
#include <mach-o/arch.h> | |
#include <mach-o/loader.h> | |
#include <Availability.h> | |
-#include <dlfcn.h> | |
+ | |
#define NO_ULEB | |
#include "Architectures.hpp" | |
#include "MachOFileAbstraction.hpp" | |
@@ -650,7 +650,7 @@ | |
} | |
-/* #if 0 */ | |
+#if 0 | |
// test program | |
#include <stdio.h> | |
#include <stddef.h> | |
@@ -686,7 +686,7 @@ | |
} | |
-/*#endif*/ | |
+#endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget http://opensource.apple.com/tarballs/dyld/dyld-519.2.2.tar.gz | |
tar -xvf dyld-519.2.2.tar.gz | |
cp dyld-519.2.2/launch-cache | |
patch < dsc_extractor.patch | |
clang++ -o dsc_extractor dsc_extractor.cpp dsc_iterator.cpp |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment