diff options
author | Adeel Mujahid <adeelbm@outlook.com> | 2019-02-09 03:24:59 +0200 |
---|---|---|
committer | Jan Vorlicek <janvorli@microsoft.com> | 2019-02-09 02:24:59 +0100 |
commit | 5bb7eb68035e98e356aba68115e28ed22d3d34aa (patch) | |
tree | 6a2ce545da5c8c32591910ffcb2fe86186894c22 /src/dlls/mscoree | |
parent | 8e79024b436f348ea9f96487a6d54067e750f596 (diff) | |
download | coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.gz coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.tar.bz2 coreclr-5bb7eb68035e98e356aba68115e28ed22d3d34aa.zip |
Set visibility option to hidden (#21924)
Diffstat (limited to 'src/dlls/mscoree')
-rw-r--r-- | src/dlls/mscoree/coreclr/CMakeLists.txt | 7 | ||||
-rw-r--r-- | src/dlls/mscoree/mscoree.cpp | 14 | ||||
-rw-r--r-- | src/dlls/mscoree/unixinterface.cpp | 5 |
3 files changed, 18 insertions, 8 deletions
diff --git a/src/dlls/mscoree/coreclr/CMakeLists.txt b/src/dlls/mscoree/coreclr/CMakeLists.txt index 2619cba6cc..072965250a 100644 --- a/src/dlls/mscoree/coreclr/CMakeLists.txt +++ b/src/dlls/mscoree/coreclr/CMakeLists.txt @@ -120,13 +120,18 @@ else() list(APPEND CORECLR_LIBRARIES ${START_WHOLE_ARCHIVE} # force all PAL objects to be included so all exports are available coreclrpal - tracepointprovider ${END_WHOLE_ARCHIVE} mscorrc_debug palrt ) endif(WIN32) +if(CMAKE_SYSTEM_NAME STREQUAL Linux) + list(APPEND CORECLR_LIBRARIES + tracepointprovider + ) +endif(CMAKE_SYSTEM_NAME STREQUAL Linux) + if(FEATURE_PERFTRACING) list(APPEND CORECLR_LIBRARIES eventpipe diff --git a/src/dlls/mscoree/mscoree.cpp b/src/dlls/mscoree/mscoree.cpp index 40cc04f098..7701035fb4 100644 --- a/src/dlls/mscoree/mscoree.cpp +++ b/src/dlls/mscoree/mscoree.cpp @@ -56,13 +56,13 @@ extern "C" IExecutionEngine* IEE(); extern "C" BOOL WINAPI _CRT_INIT(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved); #endif -extern "C" BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved); +extern "C" DLLEXPORT BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved); // For the CoreClr, this is the real DLL entrypoint. We make ourselves the first entrypoint as // we need to capture coreclr's hInstance before the C runtime initializes. This function // will capture hInstance, let the C runtime initialize and then invoke the "classic" // DllMain that initializes everything else. -extern "C" BOOL WINAPI CoreDllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved) +extern "C" DLLEXPORT BOOL WINAPI CoreDllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved) { STATIC_CONTRACT_NOTHROW; @@ -116,7 +116,7 @@ extern "C" BOOL WINAPI CoreDllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpRe } extern "C" -BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved) +DLLEXPORT BOOL WINAPI DllMain(HANDLE hInstance, DWORD dwReason, LPVOID lpReserved) { STATIC_CONTRACT_NOTHROW; @@ -221,7 +221,7 @@ HINSTANCE GetModuleInst() // %%Function: MetaDataGetDispenser // This function gets the Dispenser interface given the CLSID and REFIID. // --------------------------------------------------------------------------- -STDAPI MetaDataGetDispenser( // Return HRESULT +DLLEXPORT STDAPI MetaDataGetDispenser( // Return HRESULT REFCLSID rclsid, // The class to desired. REFIID riid, // Interface wanted on class factory. LPVOID FAR *ppv) // Return interface pointer here. @@ -251,7 +251,7 @@ ErrExit: // %%Function: GetMetaDataInternalInterface // This function gets the IMDInternalImport given the metadata on memory. // --------------------------------------------------------------------------- -STDAPI GetMetaDataInternalInterface( +DLLEXPORT STDAPI GetMetaDataInternalInterface( LPVOID pData, // [IN] in memory metadata section ULONG cbData, // [IN] size of the metadata section DWORD flags, // [IN] MDInternal_OpenForRead or MDInternal_OpenForENC @@ -280,7 +280,7 @@ STDAPI GetMetaDataInternalInterface( // This function gets the internal scopeless interface given the public // scopeless interface. // --------------------------------------------------------------------------- -STDAPI GetMetaDataInternalInterfaceFromPublic( +DLLEXPORT STDAPI GetMetaDataInternalInterfaceFromPublic( IUnknown *pv, // [IN] Given interface. REFIID riid, // [IN] desired interface void **ppv) // [OUT] returned interface @@ -307,7 +307,7 @@ STDAPI GetMetaDataInternalInterfaceFromPublic( // This function gets the public scopeless interface given the internal // scopeless interface. // --------------------------------------------------------------------------- -STDAPI GetMetaDataPublicInterfaceFromInternal( +DLLEXPORT STDAPI GetMetaDataPublicInterfaceFromInternal( void *pv, // [IN] Given interface. REFIID riid, // [IN] desired interface. void **ppv) // [OUT] returned interface diff --git a/src/dlls/mscoree/unixinterface.cpp b/src/dlls/mscoree/unixinterface.cpp index cf9bbc5c72..0769ea464c 100644 --- a/src/dlls/mscoree/unixinterface.cpp +++ b/src/dlls/mscoree/unixinterface.cpp @@ -161,6 +161,7 @@ extern "C" int coreclr_create_delegate(void*, unsigned int, const char*, const c // HRESULT indicating status of the operation. S_OK if the assembly was successfully executed // extern "C" +DLLEXPORT int coreclr_initialize( const char* exePath, const char* appDomainFriendlyName, @@ -280,6 +281,7 @@ int coreclr_initialize( // HRESULT indicating status of the operation. S_OK if the assembly was successfully executed // extern "C" +DLLEXPORT int coreclr_shutdown( void* hostHandle, unsigned int domainId) @@ -310,6 +312,7 @@ int coreclr_shutdown( // HRESULT indicating status of the operation. S_OK if the assembly was successfully executed // extern "C" +DLLEXPORT int coreclr_shutdown_2( void* hostHandle, unsigned int domainId, @@ -344,6 +347,7 @@ int coreclr_shutdown_2( // HRESULT indicating status of the operation. S_OK if the assembly was successfully executed // extern "C" +DLLEXPORT int coreclr_create_delegate( void* hostHandle, unsigned int domainId, @@ -383,6 +387,7 @@ int coreclr_create_delegate( // HRESULT indicating status of the operation. S_OK if the assembly was successfully executed // extern "C" +DLLEXPORT int coreclr_execute_assembly( void* hostHandle, unsigned int domainId, |