Hi, On Sat, 17 May 2025, Yang Kun wrote:
.CRT section is combined into .rdata which doesn't have shared attribute but read only. If we declare it with shared, it will causes LNK4254 warning.
The patch in itself probably is right, but can you explain your usecase a bit more?
LNK4254 is a link.exe error; linking mingw object files or static libraries with link.exe is generally not supported. (That said, avoiding unnecessary divergence is of course good, but there are many fundamental issues you'll run into at various points if you do that.)
// Martin _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public