Menu

#50 Relocation bug in DLLs created with MinGW32

open
nobody
None
2013-02-16
2013-02-16
Neurobit
No

Orwell Dev-C++ 5.3.0.4 with MinGW32 (similarly as the original Dev-C++ 4.9.9.2) uses dllwrap tool to create DLLs. It generates errornous relocation info in DLL files, with doubled entries:
http://lists.gnu.org/archive/html/bug-binutils/2011-06/msg00156.html

As a result, library loading fails (due to access violation) whenever system has to relocate library code. A solution would be to generate libraries in Dev-C++ with "gcc -shared" instead of dllwrap:
http://www.postgresql.org/message-id/flat/ih36n7$1n7d$1@news.hub.org#ih36n7$1n7d$1@news.hub.org

The version using TDM-GCCx64 is not a solution here, because it actually is not able to create 32-bit DLLs: there is a linking error regarding DllMainCRTStartup and a connected host of unresolved references.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.