This is an archive of the discontinued LLVM Phabricator instance.

[libFuzzer] Add preprocessor flag to explicitly enable weak symbols on Mac.
Needs ReviewPublic

Authored by Dor1s on Dec 6 2017, 3:16 PM.

Details

Reviewers
kcc
Summary

Default implementation for Mac (i.e. FuzzerExtFunctionsDlsym.cpp) does
not work when LLVMFuzzer* interface functions are defined in different
translation units and compiled with "-fvisibility=hidden" flag, as the linker
removes those as a dead code.

That is an alternative solution if we cannot adjust Chromium build config:
https://chromium-review.googlesource.com/c/chromium/src/+/812108

Event Timeline

Dor1s created this revision.Dec 6 2017, 3:16 PM
Herald added subscribers: Restricted Project, llvm-commits. ยท View Herald TranscriptDec 6 2017, 3:16 PM