[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/12633] Crash with dlltool geneated import *.libs in MSVC++
martin at martin dot st
[Bug binutils/12633] Crash with dlltool geneated import *.libs in MSVC++ Release target (Debug OK)
Mon, 2 May 2011 11:27:04 +0000
--- Comment #2 from Martin Storsjö <martin at martin dot st> 2011-05-02
11:26:59 UTC ---
Created attachment 5700
Minimal test case
Here's an attached quite minimal testcase for this issue.
The makefile builds a tiny DLL using mingw/gcc, and generates an import
library, both using --out-implib with ld and using dlltool. Then the makefile
builds two test exes that links to the created import libraries - both exes run
just fine on windows.
The batch script msvc.bat builds the same test exes using the MSVC command line
tools, both with and without the /OPT:REF flag, against both of the created
import libraries. The ones built with /OPT:NOREF work fine, while the ones
built with /OPT:REF fail.
For comparison, it also creates an import library from the .def file using
lib.exe, and links against it. For the exes built against this import library,
both versions work.
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
|[Prev in Thread]
||[Next in Thread]|
- [Bug binutils/12633] Crash with dlltool geneated import *.libs in MSVC++ Release target (Debug OK),
martin at martin dot st <=