518 Commits

Author SHA1 Message Date
van Hauser
e4de4e3500 update gitignore 2020-08-31 18:32:01 +02:00
hexcoder-
909262f6c5 fix non portable option -T for 'install' 2020-08-31 16:44:18 +02:00
hexcoder-
18ea9a8447 omit linker option '--dynamic-list' for MacOS 2020-08-31 16:19:09 +02:00
Raphaël Hertzog
811ef13b20 Fix manpages generated by llvm_mode/GNUMakefile
* Use a build date derived from SOURCE_DATE_EPOCH like in the main
  Makefile
* Fix the path to the binary
2020-08-31 14:56:02 +02:00
van Hauser
d2c9e4baa7 fix warnings and weird code insert 2020-08-31 13:12:59 +02:00
van Hauser
bbf00204ea
Merge pull request #531 from rhertzog/extend-cflags-safe
Add -fdebug-prefix-map to CFLAGS_SAFE
2020-08-31 11:38:09 +02:00
van Hauser
a42b74b624
Merge pull request #530 from rhertzog/add-cppflags
Pass CPPFLAGS to all calls of the C compiler
2020-08-31 11:33:34 +02:00
van Hauser
7ee255cbcf
Merge pull request #529 from rhertzog/manpages
Manual pages related changes
2020-08-31 11:21:52 +02:00
van Hauser
961ddfd7f8
Merge pull request #528 from rhertzog/fix-symlinks
Fix the /usr/bin/afl-clang and afl-clang++ symlinks
2020-08-31 11:19:16 +02:00
van Hauser
4566bcf122 code-format 2020-08-31 10:57:01 +02:00
Raphaël Hertzog
41bb359428
Fix various spelling errors (#532)
All those spelling errors have been caught by lintian's built-in
spellchecker:
https://lintian.debian.org/tags/spelling-error-in-binary.html
2020-08-28 23:04:25 +02:00
Raphaël Hertzog
146ede0f29 Add -fdebug-prefix-map to CFLAGS_SAFE
In Debian, we override CFLAGS to include -fdebug-prefix-map to avoid
hardcoding the build path in any generated debug information. This is
to help with getting the package to build reproducibly.

However you seem to voluntarily not honor CFLAGS but only CFLAGS_SAFE
for a limited number of source files. This resulted in a lintian warning
on Debian's side (https://lintian.debian.org/tags/file-references-package-build-path.html)
pointing to /usr/lib/afl/afl-llvm-rt-64.o and /usr/lib/afl/afl-llvm-rt.o.

With this commit, I'm manually adding -fdebug-prefix-map as a safe
build flag to CFLAGS_SAFE.
2020-08-28 22:16:08 +02:00
Raphaël Hertzog
c0fd7ba6d1 Pass CPPFLAGS to all calls of the C compiler
This variable is a standard way to inject options for the C
preprocessor. It's respected by the implicit rules of make
and autoconf/automake.

Debian sets this variable during package build to inject
`-D_FORTIFY_SOURCE=2` and we would like afl++ to respect it.

Note that this commit also adds $(CFLAGS) in the build of
afl-performance.o where it was missing. It might have been
on purpose but we want to keep CFLAGS everywhere as well
since Debian injects various options through that variable
(for hardening and reproducibility).
2020-08-28 21:55:52 +02:00
Raphaël Hertzog
b0b2a15891 Improve the generated manual page to be compatible with whatis
And generate the manual page for afl-g++ too.
2020-08-28 21:34:36 +02:00
Raphaël Hertzog
ff3c9cbd73 Fix installation path of manual pages
Manual pages are stored in /usr/share/man/.
2020-08-28 21:34:08 +02:00
Raphaël Hertzog
6e839f0f6a Fix the /usr/bin/afl-clang and afl-clang++ symlinks
Right now they are created pointing to '../afl-clang-fast' instead
of 'afl-clang-fast. Given that all the binaries are in the same directory,
the symlinks are effectively broken.
2020-08-28 21:26:32 +02:00
van Hauser
3e8beaafc8 fixing wrong fatal ... 2020-08-26 21:22:24 +02:00
Dominik Maier
33e58c1d4e some warnings fixes 2020-08-26 14:45:59 +02:00
van Hauser
c4f71ab201 enable autodict for cmplog compile, it is ensure not be used in the forkserver 2020-08-22 10:01:45 +02:00
van Hauser
4d2694c114 fix semicolon 2020-08-21 15:26:43 +02:00
van Hauser
017c8a6940 fix global id documentation for LTO pcguard 2020-08-21 14:39:47 +02:00
van Hauser
b0a783e86f code format 2020-08-21 11:18:18 +02:00
aflpp
714e4d2b46 fixed for LTO llvm 11 2020-08-21 11:17:03 +02:00
van Hauser
85a4c5e724 only compile SanitizerCoverage for LTO 2020-08-21 10:50:06 +02:00
van Hauser
182b8b3e14 remove doc reference for SKIPSINGLEBLOCK 2020-08-20 19:00:15 +02:00
van Hauser
4ce5ed370a LTO: sancov made default, deprecated SKIPSINGLEBLOCK, deactivate LTO autodict for cmplog binaries 2020-08-20 18:57:05 +02:00
van Hauser
f7bac482e9
Merge pull request #518 from AFLplusplus/ltopcguard
sancov ported to LTO
2020-08-20 18:33:53 +02:00
van Hauser
bd074e9150 add missing features for sancov lto 2020-08-20 18:32:22 +02:00
van Hauser
d52ea44c27 fix wrong var 2020-08-20 18:27:22 +02:00
van Hauser
631d3f274a move afl_loop check 2020-08-20 13:49:11 +02:00
van Hauser
3cdaf4dcf2 sancov enhancement 2020-08-20 13:37:34 +02:00
van Hauser
779d8f6b7e support current llvm12 changes 2020-08-20 10:56:51 +02:00
van Hauser
f92607cff1 pcguard for lto 2020-08-17 22:56:48 +02:00
van Hauser
9532499ef5 install libafldrivers 2020-08-16 14:14:24 +02:00
van Hauser
1d56de6c1d fix lto autodict for long strings 2020-08-16 13:29:24 +02:00
van Hauser
266b51a842 final afl-llvm-rt.o.c that takes care of all eventualities 2020-08-16 10:53:38 +02:00
van Hauser
cc1fe2f2d2 skip instrumenting blocks following __afl_loop to improve stability in LTO. not in afl-llvm-pass and instrim because they are outdated, sancov cant be fixed 2020-08-15 22:59:49 +02:00
van Hauser
73a629d6f2 important bugfix for large covmaps 2020-08-15 18:14:44 +02:00
van Hauser
0a251f93e0 increase initial memory sized 2020-08-15 13:34:51 +02:00
van Hauser
15e799f7ae fix for llvm 11 2020-08-14 12:42:45 +02:00
van Hauser
5f0a9c90c8 fixes lots of llvm warnings 2020-08-14 12:06:00 +02:00
van Hauser
9ff9ff2ad2 more secure way to work with a dynamic map 2020-08-14 11:40:26 +02:00
van Hauser
d86b13384f remove unnecessary code, increase init map size 2020-08-14 11:25:13 +02:00
van Hauser
17a4e9fadf remove debug 2020-08-14 10:11:04 +02:00
van Hauser
ce513c4f3e fix llvm12 -fuseld warning 2020-08-14 10:10:23 +02:00
van Hauser
ce92adcb9b formatting 2020-08-14 08:33:36 +02:00
van Hauser
32fe047894 fix AFL_LLVM_MAP_DYNAMIC 2020-08-14 06:46:22 +02:00
van Hauser
b5d1a021ef fix llvm and afl-showmap 2020-08-13 22:34:11 +02:00
van Hauser
e9fb5f4cbc fix for llvm < 11 2020-08-13 21:46:27 +02:00
van Hauser
212bb990b7 LTO: apply laf-intel+redqueen/cmplog at link time 2020-08-13 21:27:11 +02:00