Lines Matching +full:x86_64 +full:- +full:linux +full:- +full:gnu

7 ---------
13 -----------------------------------
15 Install `clang`, which [ships with `libfuzzer`](http://llvm.org/docs/LibFuzzer.html#fuzzer-usage)
18 sudo apt-get install clang
23 `/usr/lib/llvm-7/lib/clang/7.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a`.
25 CC=clang ./config enable-fuzz-libfuzzer \
26 --with-fuzzer-lib=$PATH_TO_LIBFUZZER \
27 -DPEDANTIC enable-asan enable-ubsan no-shared \
28 -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION \
29 -fsanitize=fuzzer-no-link \
30 enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment \
31 enable-weak-ssl-ciphers enable-rc5 enable-md2 \
32 enable-ssl3 enable-ssl3-method enable-nextprotoneg \
33 --debug
38 $ clang --verbose
39 Ubuntu clang version 14.0.0-1ubuntu1.1
40 Target: x86_64-pc-linux-gnu
43 Found candidate GCC installation: /usr/bin/../lib/gcc/i686-linux-gnu/12
44 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/10
45 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/11
46 Found candidate GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
47 Selected GCC installation: /usr/bin/../lib/gcc/x86_64-linux-gnu/12
54 $ ls /usr/lib/gcc/x86_64-linux-gnu/12 | grep stdc++
59 On Ubuntu for gcc-12 this requires the libstdc++-12-dev package installed.
61 $ sudo apt-get install libstdc++-12-dev
65 sudo apt-get install make
67 LDCMD=clang++ make -j4
77 `fuzz/corpora/$FUZZER-crash/`.
79 With `clang` from source/pre-built binaries
80 -------------------------------------------
82 You may also wish to use a pre-built binary from the [LLVM Download
87 a `--with-fuzzer-include` option, which should be the parent directory of the
90 CC=clang ./config enable-fuzz-libfuzzer \
91 --with-fuzzer-include=$PATH_TO_LIBFUZZER_DIR \
92 --with-fuzzer-lib=$PATH_TO_LIBFUZZER \
93 -DPEDANTIC enable-asan enable-ubsan no-shared \
94 -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION \
95 -fsanitize=fuzzer-no-link \
96 enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment \
97 enable-weak-ssl-ciphers enable-rc5 enable-md2 \
98 enable-ssl3 enable-ssl3-method enable-nextprotoneg \
99 --debug
102 ---
108 sudo apt-get install afl-clang
109 CC=afl-clang-fast ./config enable-fuzz-afl no-shared no-module \
110 -DPEDANTIC enable-tls1_3 enable-weak-ssl-ciphers enable-rc5 \
111 enable-md2 enable-ssl3 enable-ssl3-method enable-nextprotoneg \
112 enable-ec_nistp_64_gcc_128 -fno-sanitize=alignment \
113 --debug
117 The following options can also be enabled: enable-asan, enable-ubsan, enable-msan
121 afl-fuzz -i fuzz/corpora/$FUZZER -o fuzz/corpora/$FUZZER/out fuzz/$FUZZER
126 ------------------
129 the fuzz/*-test binaries and the file generated by the fuzzer. They binaries
131 config with enable-fuzz-* or -fsanitize-coverage, but some of the other options
132 above might be needed. For instance the enable-asan or enable-ubsan option might
134 it might be needed to use -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION to
139 fuzz/$FUZZER-test $file
143 fuzz/asn1-test fuzz/corpora/asn1
156 --------------
175 ----------------
182 -------------------
186 - The options as documented above
187 - Without enable-ec_nistp_64_gcc_128 and without --debug
188 - With no-asm
189 - Using 32 bit
190 - A default config, plus options needed to generate the fuzzer.
196 ---------------------
203 fuzz/$FUZZER -merge=1 fuzz/corpora/NEWDIR fuzz/corpora/DIR