bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/16807] Bad behavior with resources of Windows applications with


From: cgf at sourceware dot org
Subject: [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64
Date: Fri, 30 May 2014 17:26:54 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=16807

Christopher G. Faylor <cgf at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |cgf at sourceware dot org

--- Comment #17 from Christopher G. Faylor <cgf at sourceware dot org> ---
(In reply to Ken Brown from comment #12)
> There are still problems with merged resources.  Namely, the resulting
> executable after being stripped won't run, at least in some circumstances. 
> Here's a simple test case on 64-bit Cygwin with the just-released binutils-
> 2.24.51-3.  It uses the attachments test.c, emacs.rc, and
> default-manifest.rc.
> 
> 1. Compile the three source files:
> 
>   $ gcc -c test.c
>   $ windres -o emacs.o emacs.rc
>   $ windres -o default-manifest.o default-manifest.rc
> 
> 2. Link them:
> 
>   $ gcc -o test test.o emacs.o default-manifest.o
> 
> 3. Strip the resulting executable:
> 
>   $ strip test.exe
> 
> 4. Try to run it:
> 
>   $ ./test.exe
>   -bash: ./test.exe: cannot execute binary file

I see the above behavior even without stripping.

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