Skip to content

Commit

Permalink
bring back the mystery stub
Browse files Browse the repository at this point in the history
  • Loading branch information
domenukk committed Nov 16, 2023
1 parent 6ffee33 commit 05e3ce8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion fuzzers/libafl/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,9 @@ RUN cd /libafl && \
unset CFLAGS CXXFLAGS && \
export LIBAFL_EDGES_MAP_SIZE=2621440 && \
cd ./fuzzers/fuzzbench && \
PATH="/root/.cargo/bin/:$PATH" cargo build --profile release-fuzzbench
PATH="/root/.cargo/bin/:$PATH" cargo build --profile release-fuzzbench --features no_link_main

# Auxiliary weak references.
RUN cd /libafl/fuzzers/fuzzbench && \
clang -c stub_rt.c && \
ar r /stub_rt.a stub_rt.o
2 changes: 1 addition & 1 deletion fuzzers/libafl/fuzzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def build(): # pylint: disable=too-many-branches,too-many-statements
utils.append_flags('CXXFLAGS', cxxflags)
utils.append_flags('LDFLAGS', cflags)

os.environ['FUZZER_LIB'] = ''
os.environ['FUZZER_LIB'] = '/stub_rt.a'
utils.build_benchmark()


Expand Down

0 comments on commit 05e3ce8

Please sign in to comment.