bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/3732] New: strip breaks mixed msvc++ (with manifest) and g


From: ramiro86 at hotmail dot com
Subject: [Bug binutils/3732] New: strip breaks mixed msvc++ (with manifest) and gcc (with debug) generated pei-i386
Date: 15 Dec 2006 17:27:49 -0000

Hello,

I posted this bug as an e-mail to the list. Here it is a bug report.

Here's the scenario:
- A static library is built with MinGW gcc.exe *with* debug information.
- A C file which uses that static library is compiled with MSVC++'s cl.exe.
- Everything is linked using Microsoft's link.exe *with* manifest information.
(I don't know what that is, but MSVC++ does it by default now).
- The resulting executable runs fine.
- That executable is stripped using strip.exe.
- The resulting executable does not run anymore.

The system:
- gcc 3.4.6 built for MinGW. No other gccs tested.
- Microsoft Visual C++ 2005 Express Edition (the free one).
- binutils 2.17.50 and CVS.

It only happens if gcc.exe was run with debug (-g), and link.exe was run with
manifest files.

The testcase can be found at:
http://arrozcru.no-ip.org/testcase-src.tar.gz <- contains only the files to
reproduce the problem
http://arrozcru.no-ip.org/testcase-full.tar.gz <- also contains the files 
generated

It must be run from MSys with MSVC++'s bin folder in its PATH.
The problematic file is "gmsmain.exe".

-- more info from after the testcase was created --

Running all executables with wine, I get this error from "gmsmain.exe":
err:module:map_image Section .rsrc too large (11000+1000/10000)
err:module:map_image Section .rsrc too large (11000+1000/10000)
wine: could not load L"Z:\\export\\ramiro\\testcase\\gmsmain.exe": Bad EXE
format for

If I "strip -R .rsrc gmsmain.exe", it runs again.

Ramiro Polla

-- 
           Summary: strip breaks mixed msvc++ (with manifest) and gcc (with
                    debug) generated pei-i386
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: minor
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: ramiro86 at hotmail dot com
                CC: bug-binutils at gnu dot org


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

------- 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]