* [x86/Linux] Fix inconsistency in GetCLRFunction definitions
GetCLRFunction is treated as pfnGetCLRFunction_t which has __stdcall
convention, but is implemented without __stdcall.
This inconsistency causes segmentaion fault while initializing CoreCLR
for x86/Linux.
This commit fixes such inconsistency via adding __stdcall to
GetCLRFunction implementation.
In addition, this commit declares GetCLRFuntion in 'utilcode.h' and
and revises .cpp files to include 'utilcode.h' instead of declaring
'GetCLRFunction'.
* Remove unnecessary includes
* Remove another unnecessay include
Commit migrated from https://github.com/dotnet/coreclr/commit/
6665345c5a6e6e7fcc5b2fcb36c0f536e773648e
#include <process.h> // for __security_init_cookie()
-void* __stdcall GetCLRFunction(LPCSTR FunctionName);
-
extern "C" IExecutionEngine* __stdcall IEE();
#ifdef NO_CRT_INIT
// ======================================================================================
+void* __stdcall GetCLRFunction(LPCSTR FunctionName);
+
#endif // __UtilCode_h__
#if !defined(FEATURE_CORECLR) && !defined(CROSSGEN_COMPILE)
-void* __stdcall GetCLRFunction(LPCSTR FunctionName);
// Pointer to the activated CLR interface provided by the shim.
ICLRRuntimeInfo *g_pCLRRuntime = NULL;
extern void ShutdownRuntimeWithoutExiting(int exitCode);
extern BOOL IsRuntimeStarted(DWORD *pdwStartupFlags);
-void * GetCLRFunction(LPCSTR FunctionName)
+void * __stdcall GetCLRFunction(LPCSTR FunctionName)
{
void* func = NULL;