import-trace: introduce InstructionImporter
The InstructionImporter does disassemble the binary and generate read traces for every instruction byte executed. Change-Id: I6b8697c711c009e106ed733c74c6ff8f9bbf8ac5
This commit is contained in:
@ -3,6 +3,32 @@ set(SRCS
|
||||
MemoryImporter.cc
|
||||
)
|
||||
|
||||
if (BUILD_LLVM_DISASSEMBLER)
|
||||
set(SRCS ${SRCS}
|
||||
InstructionImporter.cc
|
||||
)
|
||||
|
||||
include(FindLLVM)
|
||||
|
||||
# llvm-config does add -fno-exception to the command line. But this
|
||||
# breaks some boost libraries.
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${LLVM_CXX_FLAGS} -fexceptions")
|
||||
endif(BUILD_LLVM_DISASSEMBLER)
|
||||
|
||||
|
||||
|
||||
add_executable(import-trace main.cc ${SRCS})
|
||||
target_link_libraries(import-trace ${PROTOBUF_LIBRARY} -lmysqlclient fail-util fail-sal fail-comm)
|
||||
|
||||
target_link_libraries(import-trace
|
||||
${PROTOBUF_LIBRARY}
|
||||
-lmysqlclient
|
||||
fail-util
|
||||
fail-comm
|
||||
fail-sal)
|
||||
|
||||
if (BUILD_LLVM_DISASSEMBLER)
|
||||
target_link_libraries(import-trace fail-llvmdisassembler fail-sal ${LLVM_LIBS} ${LLVM_LDFLAGS})
|
||||
endif (BUILD_LLVM_DISASSEMBLER)
|
||||
|
||||
|
||||
install(TARGETS import-trace RUNTIME DESTINATION bin)
|
||||
|
||||
Reference in New Issue
Block a user