bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/6758] New: Import library produced by --out-implib doesn't work


From: msw at stjernholm dot org
Subject: [Bug ld/6758] New: Import library produced by --out-implib doesn't work with MSVC
Date: 21 Jul 2008 21:10:49 -0000

When using an import library produced by --out-implib with MSVC, the Microsoft
linker reports this warning:

pcre.lib(d000004.o) : warning LNK4078: multiple '.text' sections found with
different attributes (E0000020)

The resulting executable crashes immediately when a function in the library is
called.

Workaround: If I instead produce a .def file with --output-def, I can use
Microsoft's lib.exe to create an import library that works correctly - no link
warning and no problems using the dll from the MSVC compiled application.

Specifics: Windows Vista x64, MSVC 9.0, 32 bit build environment, ld.exe version
2.17.50 20060824, gcc 3.4.5 (mingw-vista special r3), compiling PCRE 7.7.

-- 
           Summary: Import library produced by --out-implib doesn't work
                    with MSVC
           Product: binutils
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: msw at stjernholm dot org
                CC: bug-binutils at gnu dot org
 GCC build triplet: i686-pc-mingw32
  GCC host triplet: i686-pc-mingw32
GCC target triplet: i686-pc-mingw32


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

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