Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix mscordac exports #97210

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/coreclr/dlls/mscordac/mscordac_unixexports.src
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ IID_ICLRDataTarget
IID_ICorDebugDataTarget4
IID_ICLRDataEnumMemoryRegionsCallback
nativeStringResourceTable_mscorrc
minipal_get_length_utf16_to_utf8
minipal_convert_utf16_to_utf8

; All the # exports are prefixed with DAC_
#PAL_CatchHardwareExceptionHolderEnter
Expand Down
6 changes: 6 additions & 0 deletions src/native/minipal/utf8.c
Original file line number Diff line number Diff line change
Expand Up @@ -2074,6 +2074,9 @@ size_t minipal_get_length_utf8_to_utf16(const char* source, size_t sourceLength,
return GetCharCount(&enc, (unsigned char*)source, sourceLength);
}

#ifdef HOST_UNIX
__attribute__ ((visibility ("default")))
#endif
size_t minipal_get_length_utf16_to_utf8(const CHAR16_T* source, size_t sourceLength, unsigned int flags)
{
errno = 0;
Expand Down Expand Up @@ -2121,6 +2124,9 @@ size_t minipal_convert_utf8_to_utf16(const char* source, size_t sourceLength, CH
return ret;
}

#ifdef HOST_UNIX
__attribute__ ((visibility ("default")))
#endif
size_t minipal_convert_utf16_to_utf8(const CHAR16_T* source, size_t sourceLength, char* destination, size_t destinationLength, unsigned int flags)
{
size_t ret;
Expand Down
Loading