diff options
author | Debayan Ghosh <debayang.qdt@qualcommdatacenter.com> | 2018-04-09 21:33:07 +0530 |
---|---|---|
committer | Tarek Mahmoud Sayed <tarekms@microsoft.com> | 2018-04-09 09:03:07 -0700 |
commit | 808a48c264cf33ff4939309db021f2a570f3fc1f (patch) | |
tree | a136760ea4ce604091330bcf367f405e44dcb773 /src/corefx | |
parent | 0f0320e58fd006a02cdecf7ae45426f54da333e5 (diff) | |
download | coreclr-808a48c264cf33ff4939309db021f2a570f3fc1f.tar.gz coreclr-808a48c264cf33ff4939309db021f2a570f3fc1f.tar.bz2 coreclr-808a48c264cf33ff4939309db021f2a570f3fc1f.zip |
Adding dlerr() diagnostics for libicu dlsym errors (#17454)
Diffstat (limited to 'src/corefx')
-rw-r--r-- | src/corefx/System.Globalization.Native/icushim.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corefx/System.Globalization.Native/icushim.cpp b/src/corefx/System.Globalization.Native/icushim.cpp index 42193ba4d9..b02bd49d63 100644 --- a/src/corefx/System.Globalization.Native/icushim.cpp +++ b/src/corefx/System.Globalization.Native/icushim.cpp @@ -254,7 +254,7 @@ extern "C" int32_t GlobalizationNative_LoadICU() static_assert((sizeof(#fn) + MaxICUVersionStringLength + 1) <= sizeof(symbolName), "The symbolName is too small for symbol " #fn); \ sprintf(symbolName, #fn "%s", symbolVersion); \ fn##_ptr = (decltype(fn)*)dlsym(lib, symbolName); \ - if (fn##_ptr == NULL) { fprintf(stderr, "Cannot get symbol %s from " #lib "\n", symbolName); abort(); } + if (fn##_ptr == NULL) { fprintf(stderr, "Cannot get symbol %s from " #lib "\nError: %s\n", symbolName, dlerror()); abort(); } FOR_ALL_ICU_FUNCTIONS #undef PER_FUNCTION_BLOCK |