Summary: | MinGW32 DLL causes MSVC application initialization failure during runtime | ||
---|---|---|---|
Product: | binutils | Reporter: | Ioan <all_my_junk_e-mail> |
Component: | ld | Assignee: | unassigned |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | bug-binutils |
Priority: | P2 | ||
Version: | 2.17 | ||
Target Milestone: | --- | ||
Host: | Target: | ||
Build: | Last reconfirmed: | ||
Attachments: |
Test case mentioned in original post.
Compiled DLLs and executable test case. |
Description
Ioan
2007-06-07 17:16:21 UTC
Created attachment 1881 [details]
Test case mentioned in original post.
Created attachment 1882 [details]
Compiled DLLs and executable test case.
I've found the following workaround: Ensure the source file containing the entry point function is the first one in the list when linking the final target. For this particular test case, add the following line: SRCS := src/entrx.c $(filter-out src/entrx.c,$(SRCS)) after this line (line 10): SRCS = $(wildcard $(SRCDIR)/*.c) The "entrx.c" file may now be named anything (as long as the makefile is updated) because the new line ensures it comes first in the list of files (the source file list is also used for the object files, but with a different extension). Not a bug. |