You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I am having some headaches with a project on OSS-Fuzz which imports Ring. I wondered if there are specific flags to pass in CXXFLAGS required to correctly link with libFuzzer?
I noticed that there is a placeholder for Ring in OSS-Fuzz: google/oss-fuzz#1930, so I thought maybe someone tried to build in that environment /cc @briansmith
Small snippet of the error generated by the linker:
= note: ld.lld: error: undefined symbol: __sanitizer_cov_8bit_counters_init
>>> referenced by aes_nohw.c
>>> aes_nohw.o:(sancov.module_ctor_8bit_counters) in archive /src/aptos-core/testsuite/fuzzer/target/release/deps/libring-63
c758c7847ddbd8.rlib
ld.lld: error: undefined symbol: __sanitizer_cov_pcs_init
>>> referenced by aes_nohw.c
>>> aes_nohw.o:(sancov.module_ctor_8bit_counters) in archive /src/aptos-core/testsuite/fuzzer/target/release/deps/libring-63
c758c7847ddbd8.rlib
ld.lld: error: undefined symbol: __asan_init
>>> referenced by aes_nohw.c
>>> aes_nohw.o:(asan.module_ctor) in archive /src/aptos-core/testsuite/fuzzer/target/release/deps/libring-63c758c7847ddbd8.r
lib
>>> referenced by montgomery.c
>>> montgomery.o:(asan.module_ctor) in archive /src/aptos-core/testsuite/fuzzer/target/release/deps/libring-63c758c7847ddbd8
.rlib
>>> referenced by montgomery_inv.c
>>> montgomery_inv.o:(asan.module_ctor) in archive /src/aptos-core/testsuite/fuzzer/target/release/deps/libring-63c758c7847d
dbd8.rlib
>>> referenced 11 more times
Clearing out OSS-Fuzz 'CXXFLAGS' and 'CFLAGS' so that all C/CPP code isn't instrumented is a workaround, but it's dirty, and I find other fixes to build other dependencies. So I'm hoping to make this work in a more elegant way too.
The text was updated successfully, but these errors were encountered:
Hi, I am having some headaches with a project on OSS-Fuzz which imports Ring. I wondered if there are specific flags to pass in
CXXFLAGS
required to correctly link with libFuzzer?I noticed that there is a placeholder for Ring in OSS-Fuzz: google/oss-fuzz#1930, so I thought maybe someone tried to build in that environment /cc @briansmith
Small snippet of the error generated by the linker:
Clearing out OSS-Fuzz 'CXXFLAGS' and 'CFLAGS' so that all C/CPP code isn't instrumented is a workaround, but it's dirty, and I find other fixes to build other dependencies. So I'm hoping to make this work in a more elegant way too.
The text was updated successfully, but these errors were encountered: