[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/16807] Bad behavior with resources of Windows applications with
From: |
angelo.graziosi at alice dot it |
Subject: |
[Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64 |
Date: |
Fri, 30 May 2014 09:47:20 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16807
--- Comment #15 from Angelo Graziosi <angelo.graziosi at alice dot it> ---
Ciao Ken,
(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
when I try this I get :(
windres: impossibile aprire file "emacs-x64.manifest": No such file or
directory
i.e. "cannot open emacs-x64.manifest> No such file..."
indeed
$ head emacs.rc
1 24 "emacs-x64.manifest"
#ifndef VS_VERSION_INFO
#define VS_VERSION_INFO 1
#endif
VS_VERSION_INFO VERSIONINFO
FILEVERSION 24,3,50,0
PRODUCTVERSION 24,3,50,0
FILEFLAGSMASK 0x3FL
Ciao,
Angelo.
> $ 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
>
> 5. Observe that the resource section of the stripped executable is messed up:
>
> $ objdump -j .rsrc -s test.exe
>
> test.exe: file format pei-x86-64
>
> Contents of section .rsrc:
> objdump: Reading section failed
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64, kbrown at cornell dot edu, 2014/05/29
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64, kbrown at cornell dot edu, 2014/05/29
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64, kbrown at cornell dot edu, 2014/05/29
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64, kbrown at cornell dot edu, 2014/05/29
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64,
angelo.graziosi at alice dot it <=
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64, kbrown at cornell dot edu, 2014/05/30
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64, cgf at sourceware dot org, 2014/05/30
- [Bug ld/16807] Bad behavior with resources of Windows applications with recent binutils upgrade on Cygwin64, angelo.graziosi at alice dot it, 2014/05/31