Merge branch 'asan' of https://github.com/zachriggle/unicorn into zachriggle-asan

This commit is contained in:
Nguyen Anh Quynh
2016-04-27 16:30:42 +08:00
4 changed files with 32 additions and 4 deletions

View File

@@ -4,6 +4,13 @@ CFLAGS += -L ../../
CFLAGS += -lcmocka -lunicorn
CFLAGS += -I ../../include
ifeq ($(UNICORN_ASAN),yes)
CC = clang -fsanitize=address -fno-omit-frame-pointer
CXX = clang++ -fsanitize=address -fno-omit-frame-pointer
AR = llvm-ar
LDFLAGS := -fsanitize=address ${LDFLAGS}
endif
ALL_TESTS = test_sanity test_x86 test_mem_map test_mem_high test_mem_map_ptr \
test_tb_x86 test_multihook test_pc_change test_x86_soft_paging \
test_hookcounts