osquery / osquery-toolchain

A LLVM-based toolchain for Linux designed to build a portable osquery
Other
38 stars 22 forks source link

Investigate why libFuzzer cannot be used with PIE #20

Closed Smjert closed 3 years ago

Smjert commented 4 years ago
ld.lld: error: can't create dynamic relocation R_X86_64_32 against local symbol in readonly segment; recompile object files with -fPIC or pass '-Wl,-z,notext' to allow text relocations in the output
>>> defined in /usr/local/osquery-toolchain/usr/lib/clang/9.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a(fuzzer.o)
>>> referenced by cxa_noexception.cpp
>>>               fuzzer.o:(std::Fuzzer::__rs_default::__rs_default()) in archive /usr/local/osquery-toolchain/usr/lib/clang/9.0.1/lib/linux/libclang_rt.fuzzer-x86_64.a