Using a delay import library with functions which are declared in their header files as __declspec(dllimport) (e.g. ws2_32 functions) fails.
This will cause a run-time failure when any such function is called, by jumping to the address '6'.
This is a bug in binutils.
A detailed test case can be found at:
- linking the individual object files from the delay import lib
- not using __declspec(dllimport) on such functions
- (untested) referencing the function(s) in question at least once without using the dllimport attribute
This has been tested with RosBE's binutils (22.214.171.12491222). Tests with later versions to come...