[PATCH] D83594: Corrected __libfuzzer_is_present symbol inclusion for MSVC x86 32-bit

Vitaly Buka via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 17 18:30:30 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGc12f11184682: Corrected __libfuzzer_is_present symbol inclusion for MSVC x86 32-bit (authored by vitalybuka).

Changed prior to commit:
  https://reviews.llvm.org/D83594?vs=277156&id=278955#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D83594/new/

https://reviews.llvm.org/D83594

Files:
  compiler-rt/lib/fuzzer/FuzzerDriver.cpp


Index: compiler-rt/lib/fuzzer/FuzzerDriver.cpp
===================================================================
--- compiler-rt/lib/fuzzer/FuzzerDriver.cpp
+++ compiler-rt/lib/fuzzer/FuzzerDriver.cpp
@@ -33,7 +33,11 @@
 // binary can test for its existence.
 #if LIBFUZZER_MSVC
 extern "C" void __libfuzzer_is_present() {}
+#if defined(_M_IX86) || defined(__i386__)
+#pragma comment(linker, "/include:___libfuzzer_is_present")
+#else
 #pragma comment(linker, "/include:__libfuzzer_is_present")
+#endif
 #else
 extern "C" __attribute__((used)) void __libfuzzer_is_present() {}
 #endif  // LIBFUZZER_MSVC


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83594.278955.patch
Type: text/x-patch
Size: 606 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200718/a72f3ea3/attachment.bin>


More information about the llvm-commits mailing list