[cfe-dev] i386 -faddress-sanitizer
Carsten Mattner
carstenmattner at gmail.com
Wed Oct 17 13:43:39 PDT 2012
Is it expected that -faddress-sanitizer does not work on i386 and fails
to properly link resulting in errors like 'undefined symbol: __asan_init'
at runtime?
I have ./lib/clang/3.2/lib/linux/libclang_rt.asan-i386.a in llvm's installation,
but it doesn't look like it's linked automatically into the executable.
CFLAGS:
-faddress-sanitizer -O1 -fno-omit-frame-pointer -g $PROJECT_FLAGS
clang version 3.2
(http://llvm.org/git/clang.git 1802daf8539f3320c369e442d3c8471b10ffd3cb)
(http://llvm.org/git/llvm.git 324d96b9e265b0fd8bf63a28340910def64e2164)
Target: i386-pc-linux-gnu
Thread model: posix
More information about the cfe-dev
mailing list