https://bugs.winehq.org/show_bug.cgi?id=50257
--- Comment #23 from Alexandre Julliard julliard@winehq.org --- (In reply to Piotr Caban from comment #21)
(In reply to Alexandre Julliard from comment #20)
If this means that libc symbols are resolved to ucrtbase.dll.so, that sounds like a bug in the dynamic linker. We load dlls without RTLD_GLOBAL so their symbols should not be available for global resolution.
There seems to be something wrong with the Linux without-mingw build too. I've tested changing the "pow" function to "MSVCRT_pow" and it affects how often the function is called while running: wine nonexisting.exe
When the function was called pow it was called 2048. It was called 0 times after changing the name to MSVCRT_pow. It was also not called in mingw builds no mater how function was named.
Are you sure? pow() is called from the gdi32 font initialization, and it will be imported from ucrtbase also in non-mingw builds, so it should be called in all builds (unless the compiler inlines it). It shouldn't go through ELF linking at all.