Skip to content

Instantly share code, notes, and snippets.

@sovietw0rm
Created July 12, 2018 18:24
Show Gist options
  • Save sovietw0rm/110f49065942987c1d52b6caa5425917 to your computer and use it in GitHub Desktop.
Save sovietw0rm/110f49065942987c1d52b6caa5425917 to your computer and use it in GitHub Desktop.
dsc_extractor
+++ 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
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