Bug#785365: clang-3.5: undefined reference to `__stack_chk_guard'

Daniel Stender debian at danielstender.com
Thu Dec 3 13:45:38 UTC 2015


The problem remains also with clang-3.6. I've test build afl 1.95b
against powerpc in a Sbuild chroot, clang-3.6/1:3.6.2-3 (pulled as
default):

<cut>
clang -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DVERSION=\"1.95b\" afl-clang-fast.c -o ../afl-clang-fast -Wl,-z,relro
ln -sf afl-clang-fast ../afl-clang-fast++
clang++ `llvm-config --cxxflags` -fno-rtti -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DVERSION=\"1.95b\" -shared afl-llvm-pass.so.cc -o ../afl-llvm-pass.so `llvm-config --ldflags` -Wl,-z,relro
clang -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DVERSION=\"1.95b\" -fPIC -c afl-llvm-rt.o.c -o ../afl-llvm-rt.o
[*] Testing the CC wrapper and instrumentation output...
unset AFL_USE_ASAN AFL_USE_MSAN; AFL_QUIET=1 AFL_INST_RATIO=100 AFL_PATH=. AFL_CC=clang ../afl-clang-fast -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -DAFL_PATH=\"/usr/lib/afl\" -DBIN_PATH=\"/usr/bin\" -DVERSION=\"1.95b\" ../test-instr.c -o test-instr -Wl,-z,relro
error: unable to load plugin '../afl-llvm-pass.so': '../afl-llvm-pass.so: undefined symbol: __stack_chk_guard'
</cut>

DS

-- 
4096R/DF5182C8
46CB 1CA8 9EA3 B743 7676 1DB9 15E0 9AF4 DF51 82C8
LPI certified Linux admin (LPI000329859 64mz6f7kt4)
http://www.danielstender.com/blog/



More information about the Pkg-llvm-team mailing list