This bug is following the conversation here: http://permalink.gmane.org/gmane.comp.gnu.mingw.w64.general/4902 .
When using dlltool after extracting definitions from a Windows DLL:
- if --output-lib is specified, then everything looks good.
- if --output-delaylib is specified, then the addresses are set to 0x6, which makes the loader binary crash.
If you require me to provide anything related to this bug, please ask.