Skip to content

Commit dced5d0

Browse files
committed
Add thunk for PAL_{Unr,R}egisterModule
1 parent a95105f commit dced5d0

File tree

2 files changed

+15
-1
lines changed

2 files changed

+15
-1
lines changed

src/coreclr/dlls/mscordbi/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ elseif(CLR_CMAKE_HOST_UNIX)
106106

107107
if(CLR_CMAKE_HOST_LINUX)
108108
add_dependencies(mscordbi pal_redefines_file)
109-
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--undefined-version")
110109
endif(CLR_CMAKE_HOST_LINUX)
111110

112111
endif(CLR_CMAKE_HOST_WIN32)

src/coreclr/dlls/mscordbi/mscordbi.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ BOOL WINAPI DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
3232
// Defer to the main debugging code.
3333
return DbgDllMain(hInstance, dwReason, lpReserved);
3434
}
35+
36+
#if defined(HOST_LINUX) && defined(TARGET_LINUX)
37+
PALIMPORT HINSTANCE PALAPI DAC_PAL_RegisterModule(IN LPCSTR lpLibFileName);
38+
PALIMPORT VOID PALAPI DAC_PAL_UnregisterModule(IN HINSTANCE hInstance);
39+
40+
HINSTANCE PALAPI PAL_RegisterModule(IN LPCSTR lpLibFileName)
41+
{
42+
return DAC_PAL_RegisterModule(lpLibFileName);
43+
}
44+
45+
VOID PALAPI PAL_UnregisterModule(IN HINSTANCE hInstance)
46+
{
47+
DAC_PAL_UnregisterModule(hInstance);
48+
}
49+
#endif

0 commit comments

Comments
 (0)