For some reason the DLL I've created with g++ is not loaded properly.
All of the referenced DLLs are opened fine in OllyDbg. It's also
confirmed by ProcessMonitor. While the DLL created by g++ says "Unable
to load DLL". PEExplorer displays a warning "Warning! Section </4> (3)
extends beyond the raw file offset of section <.bss> (4)." The same
situation reproduces for both 4.5.2 and 4.6.1
As a result - attempt of Python to call LoadModuleA fails with the
absolutely the same "Unable to load DLL" problem.
Build script, input and output script can be found at:
Thank you for help.