bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/12633] Crash with dlltool geneated import *.libs in MSVC++


From: martin at martin dot st
Subject: [Bug binutils/12633] Crash with dlltool geneated import *.libs in MSVC++ Release target (Debug OK)
Date: Mon, 2 May 2011 11:27:04 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=12633

--- Comment #2 from Martin Storsjö <martin at martin dot st> 2011-05-02 
11:26:59 UTC ---
Created attachment 5700
  --> http://sourceware.org/bugzilla/attachment.cgi?id=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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]