These symbols are global read/write variables and therefore must be
declared with DATA keyword, even when they are just aliases to other
symbols. Otherwise GNU dlltool generates for each of those symbols also
function thunk code.
---
 mingw-w64-crt/def-include/msvcrt-common.def.in | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mingw-w64-crt/def-include/msvcrt-common.def.in 
b/mingw-w64-crt/def-include/msvcrt-common.def.in
index 8294a8880f91..b68964db0dca 100644
--- a/mingw-w64-crt/def-include/msvcrt-common.def.in
+++ b/mingw-w64-crt/def-include/msvcrt-common.def.in
@@ -144,9 +144,9 @@ ADD_UNDERSCORE(hypot)
 ADD_UNDERSCORE(nextafter)
 
 #ifndef UCRTBASE
-ADD_UNDERSCORE(daylight)
-ADD_UNDERSCORE(timezone)
-ADD_UNDERSCORE(tzname)
+daylight DATA == _daylight
+timezone DATA == _timezone
+tzname DATA == _tzname
 
 ADD_UNDERSCORE(vsnprintf_s)
 #endif
-- 
2.20.1



_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to