This repository has been archived by the owner on Jul 1, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Zhang
committed
May 1, 2019
1 parent
32ea7bb
commit eec3842
Showing
5 changed files
with
27 additions
and
67 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
cmake_minimum_required(VERSION "3.13.0") | ||
add_library(LLVMHanabiDeps SHARED #This is for linking a minimum subset of LLVM needed which serves as the escape plan | ||
${CMAKE_CURRENT_LIST_DIR}/Dummy.cpp | ||
) | ||
add_dependencies(LLVMHanabiDeps | ||
LLVMCore | ||
LLVMSupport | ||
) | ||
add_library(LLVMHanabi SHARED | ||
${CMAKE_CURRENT_LIST_DIR}/Loader.cpp | ||
) | ||
add_dependencies(LLVMHanabi | ||
LLVMHanabiDeps | ||
LLVMObfuscation | ||
LLVMSupport | ||
) | ||
target_link_libraries(LLVMHanabi PRIVATE LLVMObfuscation LLVMSupport ${CMAKE_CURRENT_LIST_DIR}/libsubstitute.dylib) | ||
target_link_options(LLVMHanabi PRIVATE -undefined PRIVATE dynamic_lookup) | ||
target_compile_options(LLVMHanabi PRIVATE -Wno-dollar-in-identifier-extension PRIVATE -Wno-variadic-macros) | ||
target_link_libraries(LLVMHanabi PRIVATE LLVMObfuscation ${CMAKE_CURRENT_LIST_DIR}/libsubstitute.dylib) | ||
target_link_options(LLVMHanabi PRIVATE -undefined PRIVATE dynamic_lookup PRIVATE -flat_namespace) | ||
target_compile_options(LLVMHanabi PRIVATE -Wno-dollar-in-identifier-extension PRIVATE -Wno-variadic-macros PRIVATE) | ||
|
||
target_link_libraries(LLVMHanabiDeps PRIVATE LLVMCore LLVMSupport ${CMAKE_CURRENT_LIST_DIR}/libsubstitute.dylib) | ||
target_link_options(LLVMHanabiDeps PRIVATE -undefined PRIVATE dynamic_lookup PRIVATE -all_load) |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
static int dummy=13; |
This file contains 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
This file contains 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