about summary refs log tree commit diff
path: root/GNUmakefile.llvm
AgeCommit message (Collapse)Author
2024-11-11Unsetting AFL_LLVM_ALLOWLIST and AFL_LLVM_DENYLIST environment variablesAbhinav Garg
2024-11-09enhance backward compatibility and portabilityhexcoder-
2024-10-15nitsvanhauser-thc
2024-10-02Update macOS linker flags in GNUmakefile.llvmCarlo Cabrera
`-flat_namespace` is effectively deprecated and doesn't really work as expected these days. Omitting the `-flat_namespace` means that binaries are built with a two-level namespace, which don't support `-undefined suppress`. The idiomatic way of telling the linker to look up undefined symbols at runtime is using `-undefined dynamic_lookup`, which is supported by a two-level namespace. See also: ocaml/ocaml#10723 mono/mono#21257
2024-08-06Fix "/bin/sh:" errors when building without LLVMThomas Hebb
In GNUmakefile.llvm, several variables are unconditionally populated by expanding $(LLVMVER) and $(LLVM_CONFIG) inside shell commands. However, when LLVM is not present, both those variables are empty, meaning that the shell commands end up malformed and emit harmless, but noisy, errors like this one: /bin/sh: --: invalid option Usage: /bin/sh [GNU long option] [option] ... /bin/sh [GNU long option] [option] script-file ... GNU long options: --debug --debugger --dump-po-strings --dump-strings --help --init-file --login --noediting --noprofile --norc --posix --pretty-print --rcfile --rpm-requires --restricted --verbose --version Shell options: -ilrsD or -c command or -O shopt_option (invocation only) -abefhkmnptuvxBCHP or -o option /bin/sh: line 1: test: -gt: unary operator expected /bin/sh: line 1: test: -lt: unary operator expected /bin/sh: line 1: test: -ge: unary operator expected /bin/sh: line 1: test: -ge: unary operator expected Fix the problem by only populating the "downstream" variables if the upstream ones have values.
2024-07-23Fix LLVM mode build on MacOSDominik Maier
2024-07-13Fixing change from PR#2152, misspelled variable namesOliver Schneider
2024-07-10Some fixups to the GNUmakefile.llvmOliver Schneider
* rely less on the shell and more on GNU make to parse the versions * fixed retrieval of minor version (for 18.1.8 it gave 8 instead of 1!) * auto-detection of llvm-config within the supported version range * replaced backticks by `$(...)` syntax * tested against `busybox static-sh`, `bash`, `dash` and `csh`
2024-05-14consider llvm 18 stablevanhauser-thc
2024-03-12fix rc minor version parsing=
2024-03-11support parsing of llvm rc minor version=
2024-02-01final touches for skipdetvanhauser-thc
2024-01-09lto llvm 12+vanhauser-thc
2023-12-27initial simple injection detection supportvanhauser-thc
2023-10-03nitsvanhauser-thc
2023-08-05disable exceptions on LLVM/GCC plugins, decreasing further the libraries's ↵David Carlier
binaries size in the process.
2023-07-31Use CPPFLAGS for C++ too.Jesse Schwartzentruber
2023-07-23temp cmplog fixesvanhauser-thc
2023-07-05update llvm recommendationsvanhauser-thc
2023-06-06build: adjust LLVM development version checkfanquake
Adjust version check to only warn for LLVM 17.x and newer, which are the development versions. Otherwise we'll get: ```bash make LLVM_CONFIG=llvm-config-15 CC=clang-15 CXX=clang++-15 <snip> GNUmakefile.llvm:69: you are using an in-development llvm version - this might break llvm_mode! ``` for versions that are supported, and not in development.
2023-06-01rewrote PCGUARDvanhauser-thc
2023-04-28Source Code Coverage support for Nyx (Part 1) (#1720)Christian Holler (:decoder)
* Additional source code reformatting in afl-compiler-rt * Add source code coverage support to afl-compiler-rt (for use with Nyx)
2023-04-27afl++ -> AFL++vanhauser-thc
2023-04-15wasm supportvanhauser-thc
2023-01-20LLVM plugin 16+ support proposal.David Carlier
- Lifting the standard to C++17. - Beyond the cosmetic changes, it boils down to BasicBlock::getInstList being no longer available (and reading the header it is no accident).
2022-12-07Silent more deprecation warning for clang 15 and onwardsDavid Carlier
2022-11-17nitsvanhauser-thc
2022-11-10llvm debugvanhauser-thc
2022-10-19nitsvanhauser-thc
2022-10-08Support building LTO on Gentooquinox
2022-09-14Allow building LTO component with LLVM 15Nikita Popov
2022-09-05egrep -> grep -evanhauser-thc
2022-05-23disable LTO for llvm 15 :-(vanhauser-thc
2022-05-16Fix missing dependencyHexRabbit
add `instrumentation/afl-llvm-common.o` to `SanitizerCoverageLTO.so`'s dependency list
2022-03-31GNUmakefile.llvm: Avoid creating circular linksRichard W.M. Jones
Building into a DESTDIR gives circular links such as: lrwxrwxrwx. 1 rjones rjones 17 Mar 31 18:09 /home/rjones/rpmbuild/BUILDROOT/american-fuzzy-lop-4.00c-3.git285a5cb3.fc37.x86_64/usr/lib64/afl/afl-compiler-rt.o -> afl-compiler-rt.o I have to admit I've no idea what the original link command is trying to achieve, but it's clearly wrong and deleting it fixes the problem. Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
2022-03-18fix LTO with cmplog and lafvanhauser-thc
2022-03-17make LTO pass work too plus some fixesvanhauser-thc
2021-12-09make llvm 14-dev working. again.vanhauser-thc
2021-11-23further fixes for new pass managervanhauser-thc
2021-11-06http->httpsvanhauser-thc
2021-08-25announce llvm 13 supportvanhauser-thc
2021-07-22MacOS nitsvanhauser-thc
2021-06-28Inline cmplog (#996)van Hauser
* inline cmplog check * better switch support * add cmplog-switches-pass.cc
2021-06-08reenable LLVM 3.8 ( Ubuntu 16.04 )hexcoder-
2021-06-05give hint how to set env var for path to llvm-config toolhexcoder
2021-04-19drop support for llvm < 6.0vanhauser-thc
2021-04-04cleanupvanhauser-thc
2021-03-25remove InsTrimvanhauser-thc
2021-03-20add missing links for afl-clang-fast*.8 man pageshexcoder-
2021-02-13fixaflpp