- Load libcoreclr.so with the RTLD_GLOBAL flag set in unixxorerun s.t.
its exports are available for subsequently loaded libraries.
- Demangle PAL_TryExcept
- Replace a non-portable path separator character with the corresponding
portable definition from the PAL.
std::string tpaList;
AddFilesFromDirectoryToTpaList(clrFilesAbsolutePath, tpaList);
- void* coreclrLib = dlopen(coreClrDllPath.c_str(), RTLD_NOW);
+ void* coreclrLib = dlopen(coreClrDllPath.c_str(), RTLD_NOW | RTLD_GLOBAL);
if (coreclrLib != nullptr)
{
ExecuteAssemblyFunction executeAssembly = (ExecuteAssemblyFunction)dlsym(coreclrLib, "ExecuteAssembly");
_ASSERT(FALSE);
}
+extern "C"
+PALAPI
struct _Unwind_Exception *PAL_TryExcept(
PFN_PAL_BODY pfnBody,
PFN_PAL_EXCEPTION_FILTER pfnFilter,
extern HINSTANCE g_hThisInst;
if (WszGetModuleFileName(g_hThisInst, CoreClrFolder, MAX_PATH))
{
- WCHAR *filePtr = wcsrchr(CoreClrFolder, W('\\'));
+ WCHAR *filePtr = wcsrchr(CoreClrFolder, DIRECTORY_SEPARATOR_CHAR_W);
if (filePtr)
{
filePtr[1] = W('\0');