[PATCH] D20741: [LibFuzzer] Fix weak linking issues building tests under OSX.

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Fri May 27 13:44:16 PDT 2016

mehdi_amini added a subscriber: mehdi_amini.
mehdi_amini added a comment.

Weak linking is not supported on Darwin AFAIK. Or rather: the symbol has to be present during the static link, but don't have to be present in the dylib when loading the program.
On OS X for instance, when following the Fuzzer doc, I couldn't link with only `LLVMFuzzerTestOneInput` in my test, I had to implement  `LLVMFuzzerCustomMutator` and `LLVMFuzzerInitialize` as well, I planned to update the doc on this aspect.


More information about the llvm-commits mailing list