On Tuesday 04 June 2024 09:54:20 LIU Hao wrote: > 在 2024-06-04 05:39, Pali Rohár 写道: > > Symbols @_calloc_crt@8, @_malloc_crt@4 and @_realloc_crt@8 are exported > > from msvcr80 DLL libraries with their @suffix decoration. This is not > > usual. > > > > Those decorated symbols refers to fastcall function calling convention. > > And those seem to be mere thunks to 'real' functions. Not only are fastcall > ones not exported from other MSVCR* DLLs, they are unlikely to be useful, as > functions can't be both cdecl and stdcall. > > I think we may just omit them for simplification.
In msvcr80.dll are those fastcall functions really just thunks around their cdecl variants, which are exported too. But in msvcr80d.dll there are only fastcall variants. There are no cdecl variants. These functions are not declared in mingw-w64 header files. But it does not mean that they cannot be used in application. Just specifying the declaration with correct calling convention is enough. This change is just fixing their definitions in def files as currently the import library provides wrong symbol names for them. _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public