https://bugs.winehq.org/show_bug.cgi?id=49033
--- Comment #4 from Piotr Caban piotr.caban@gmail.com --- You might find https://sourceforge.net/p/mingw-w64/mailman/message/35595229/ interesting. It looks like dllwrap is broken/deprecated and should not be used (I didn't verify if this information is valid).
Something like: i686-w64-mingw32-dlltool -d win32/exconfig.def -e export.o i686-w64-mingw32-g++ -shared -o $@ $(FILE_OBJS) $(CONF_OBJS) exconfig_rc.o win32/exconfig.o export.o -static -lstdc++ should create a dll with valid relocation data.