From 51adc07b0063af52dbac077f33f4ca3d23a02356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Strehovsk=C3=BD?= Date: Fri, 21 Jul 2023 16:21:49 +0900 Subject: [PATCH] Delete NativeAOT_StaticInitialization Undoes workaround from dotnet/runtimelab#270. Since bootstrapper no longer ships as a static library (it's an object file instead), we should no longer need this hack to force linker into looking at the archive. --- src/coreclr/nativeaot/Bootstrap/main.cpp | 7 ------- .../BuildIntegration/Microsoft.NETCore.Native.Unix.targets | 1 - .../Microsoft.NETCore.Native.Windows.targets | 1 - 3 files changed, 9 deletions(-) diff --git a/src/coreclr/nativeaot/Bootstrap/main.cpp b/src/coreclr/nativeaot/Bootstrap/main.cpp index aaf3d55352b900..cc78cf8d6710a9 100644 --- a/src/coreclr/nativeaot/Bootstrap/main.cpp +++ b/src/coreclr/nativeaot/Bootstrap/main.cpp @@ -236,11 +236,4 @@ static struct InitializeRuntimePointerHelper RhSetRuntimeInitializationCallback(&InitializeRuntime); } } initializeRuntimePointerHelper; - -extern "C" void* NativeAOT_StaticInitialization(); - -void* NativeAOT_StaticInitialization() -{ - return &initializeRuntimePointerHelper; -} #endif // NATIVEAOT_DLL diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets index e0c506bd012680..31d772b4f07c63 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets @@ -143,7 +143,6 @@ The .NET Foundation licenses this file to you under the MIT license. - diff --git a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets index 5c6dd32cb6a4be..1b89aaf335022c 100644 --- a/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets +++ b/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Windows.targets @@ -89,7 +89,6 @@ The .NET Foundation licenses this file to you under the MIT license. -