Skip to content

Commit 910b9f3

Browse files
committed
O2 instead of O3 for .o target files
1 parent 4fd2cb2 commit 910b9f3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

examples/aflpp_driver/GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ifneq "" "$(LLVM_BINDIR)"
77
LLVM_BINDIR := $(LLVM_BINDIR)/
88
endif
99

10-
FLAGS=-O3 -funroll-loops
10+
FLAGS=-O2 -g
1111

1212
all: libAFLDriver.a libAFLQemuDriver.a aflpp_qemu_driver_hook.so
1313

llvm_mode/GNUmakefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,15 @@ document:
376376
@$(CLANG_BIN) -D_AFL_DOCUMENT_MUTATIONS $(CFLAGS_SAFE) -O3 -Wno-unused-result -m64 -fPIC -c afl-llvm-rt.o.c -o ../afl-llvm-rt-64.o 2>/dev/null; if [ "$$?" = "0" ]; then echo "success!"; else echo "failed (that's fine)"; fi
377377

378378
../afl-llvm-rt.o: afl-llvm-rt.o.c | test_deps
379-
$(CLANG_BIN) $(CFLAGS_SAFE) -O3 -Wno-unused-result -fPIC -c $< -o $@
379+
$(CLANG_BIN) $(CFLAGS_SAFE) -O2 -Wno-unused-result -fPIC -c $< -o $@
380380

381381
../afl-llvm-rt-32.o: afl-llvm-rt.o.c | test_deps
382382
@printf "[*] Building 32-bit variant of the runtime (-m32)... "
383-
@$(CLANG_BIN) $(CFLAGS_SAFE) -O3 -Wno-unused-result -m32 -fPIC -c $< -o $@ 2>/dev/null; if [ "$$?" = "0" ]; then echo "success!"; else echo "failed (that's fine)"; fi
383+
@$(CLANG_BIN) $(CFLAGS_SAFE) -O2 -Wno-unused-result -m32 -fPIC -c $< -o $@ 2>/dev/null; if [ "$$?" = "0" ]; then echo "success!"; else echo "failed (that's fine)"; fi
384384

385385
../afl-llvm-rt-64.o: afl-llvm-rt.o.c | test_deps
386386
@printf "[*] Building 64-bit variant of the runtime (-m64)... "
387-
@$(CLANG_BIN) $(CFLAGS_SAFE) -O3 -Wno-unused-result -m64 -fPIC -c $< -o $@ 2>/dev/null; if [ "$$?" = "0" ]; then echo "success!"; else echo "failed (that's fine)"; fi
387+
@$(CLANG_BIN) $(CFLAGS_SAFE) -O2 -Wno-unused-result -m64 -fPIC -c $< -o $@ 2>/dev/null; if [ "$$?" = "0" ]; then echo "success!"; else echo "failed (that's fine)"; fi
388388

389389
test_build: $(PROGS)
390390
@echo "[*] Testing the CC wrapper and instrumentation output..."

0 commit comments

Comments
 (0)