This is an archive of the discontinued LLVM Phabricator instance.

Corrected __libfuzzer_is_present symbol inclusion for MSVC x86 32-bit
ClosedPublic

Authored by jagunter on Jul 10 2020, 4:02 PM.

Details

Summary

The incorrect symbol will cause linking failures for 32-bit targets:

clang_rt.fuzzer-i386.lib(FuzzerDriver.obj) : error LNK2001: unresolved external symbol __libfuzzer_is_present

Verified no longer fails to link with this change for 32-bit and still succeeds for 64-bit MSVC.

Diff Detail

Event Timeline

jagunter created this revision.Jul 10 2020, 4:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2020, 4:02 PM
Herald added a subscriber: Restricted Project. · View Herald Transcript
jagunter edited the summary of this revision. (Show Details)Jul 10 2020, 4:32 PM

This change LGTM.
I'll let @vitalybuka decide if he wants to accept.

vitalybuka accepted this revision.Jul 14 2020, 1:07 AM
This revision is now accepted and ready to land.Jul 14 2020, 1:07 AM

Ah sorry should've mentioned earlier I don't have commit access, so if someone can commit on my behalf that'd be great.

This revision was automatically updated to reflect the committed changes.