Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Operating System: ReactOS
Platform: x86 Hardware
URL: https://home.tfaber.net/~thfabba/pub/delaylib/
Description
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:
https://home.tfaber.net/~thfabba/pub/delaylib/
Workarounds include:
- 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 (2.20.51.20091222). Tests with later versions to come...
Attachments
Issue Links
- blocks
-
CORE-6500 wininet: winhttp: incorrect Winsock initialization handling
- Resolved
-
CORE-10957 GCC: Delay import libraries do not have a IMAGE_DIRECTORY_ENTRY_DELAY_IMPORT section
- Untriaged
-
CORE-13602 kernel32_vista delay loading
- Untriaged
- relates to
-
CORE-10935 sdk:Improve delayload support
- Resolved
- links to