From f8ba689c096302e3946db1c35c2a8e5dd8907390 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 20 Jun 2023 14:08:35 -0400 Subject: build: Turn off ASLR for all sanitizers on FreeBSD Newer LLVM versions will reject every sanitizer runtime if ASLR is enabled. Link: https://reviews.llvm.org/D66582 Link: https://reviews.freebsd.org/D33933 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 8fc68fd..fb28e29 100644 --- a/Makefile +++ b/Makefile @@ -197,7 +197,7 @@ all: bfs tests $(BIN)/%: @$(MKDIR) $(@D) +$(CC) $(ALL_LDFLAGS) $^ $(ALL_LDLIBS) -o $@ -ifeq ($(OS) $(TSAN),FreeBSD tsan) +ifeq ($(OS) $(SANITIZE),FreeBSD y) elfctl -e +noaslr $@ endif -- cgit v1.2.3