[LLD] [Mingw] Don't export symbols from profile generate
authorPeiyuan Song <squallatf@gmail.com>
Thu, 30 Jul 2020 20:32:37 +0000 (23:32 +0300)
committerMartin Storsjö <martin@martin.st>
Thu, 30 Jul 2020 20:33:20 +0000 (23:33 +0300)
Differential Revision: https://reviews.llvm.org/D84756

lld/COFF/MinGW.cpp

index bded985f04d0f60b6db8aea88f7acda606d29086..e24cdca6ee34c8da3ec46fb1543ed0b35760d01b 100644 (file)
@@ -34,6 +34,11 @@ AutoExporter::AutoExporter() {
       "libclang_rt.builtins-arm",
       "libclang_rt.builtins-i386",
       "libclang_rt.builtins-x86_64",
+      "libclang_rt.profile",
+      "libclang_rt.profile-aarch64",
+      "libclang_rt.profile-arm",
+      "libclang_rt.profile-i386",
+      "libclang_rt.profile-x86_64",
       "libc++",
       "libc++abi",
       "libunwind",
@@ -57,6 +62,10 @@ AutoExporter::AutoExporter() {
       "__builtin_",
       // Artificial symbols such as .refptr
       ".",
+      // profile generate symbols
+      "__profc_",
+      "__profd_",
+      "__profvp_",
   };
 
   excludeSymbolSuffixes = {