Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Build #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion BUILD_TARGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ cd workdir
wget http://ftpmirror.gnu.org/binutils/binutils-2.34.tar.xz
# or curl -O http://ftpmirror.gnu.org/binutils/binutils-2.34.tar.xz
tar xf binutils-2.34.tar.xz
mkdir build # Create a build dir
```

## 3) Build bitcode file using gclang
```bash
cd binutils-2.34
sudo apt install texinfo
CC=gclang CXX=gclang++ CFLAGS="-fPIC" ./configure --with-pic
make -j$(nprocs) # Build in parallel
cd binutils/
Expand Down
4 changes: 2 additions & 2 deletions build/install_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
set -euxo pipefail

#wllvm and gllvm
pip3 install --upgrade pip==9.0.3
pip3 install wllvm
pip3 install --upgrade pip==9.0.3 --user
pip3 install wllvm --user
mkdir ${HOME}/go
go get github.com/SRI-CSL/gllvm/cmd/...

Expand Down
2 changes: 1 addition & 1 deletion tests/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ fi


envs="BUILD_TYPE=${BUILD_TYPE} LOG_TYPE=${LOG_TYPE}"
fuzzer="../angora_fuzzer"
fuzzer="../bin/fuzzer"
input="./input"
output="./output"

Expand Down
4 changes: 2 additions & 2 deletions tools/compile_bc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
import sys
import os
from pathlib import Path
Expand Down Expand Up @@ -43,7 +43,7 @@ def build_pipeline(bc_file, target_flags="@@", profiling_input_dir="in", is_cpp=
run_cmd(f"opt -load {ID_ASSIGNER_PATH} -idassign -idassign-emit-cfg \
-idassign-cfg-file cfg.dat {name}.fast.ll")
#8) Prune targets
run_cmd(f"python {PRUNE_SCRIPT_PATH} {targets_file} {name}.diff cmp.map {profiling_input_dir} ./{name}.track {target_flags} > targets.pruned.json")
run_cmd(f"python3.8 {PRUNE_SCRIPT_PATH} {targets_file} {name}.diff cmp.map {profiling_input_dir} ./{name}.track {target_flags} > targets.pruned.json")

# Print fuzzing command
print("You can now run your target application (with SanOpt enabled) using:")
Expand Down