[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/12633] Crash with dlltool geneated import *.libs in MSVC++
From: |
ceztko at gmail dot com |
Subject: |
[Bug binutils/12633] Crash with dlltool geneated import *.libs in MSVC++ Release target (Debug OK) |
Date: |
Wed, 6 Apr 2011 13:36:52 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12633
--- Comment #1 from Francesco Pretto <ceztko at gmail dot com> 2011-04-06
13:36:46 UTC ---
Adding the /OPT:NOREF option to the Release target sorts the problem. The
option can be found in project Properties -> Configuration Properties -> Linker
-> Optimization -> References -> Keep Unreferenced Data (/OPT:NOREF). It
appears that /OPT:NOREF is the default in the Debug target. This would explain
why the dlltool generated libs work in Debug target with default options. In
Release target the default is /OPT:REF .
It still seems a dlltool problem because lib.exe (from the Visual Studio tools)
is indeed able to produce *.libs that work correctly in both Debug and Release
with (with Eliminate Unreferenced Data /OPT:REF enabled).
--
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.