This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Strip 2.13 corrupts exe file
- From: Richard van den Berg <richard at trust-factory dot com>
- To: binutils at sources dot redhat dot com
- Date: Mon, 10 Mar 2003 16:01:21 +0100
- Subject: Strip 2.13 corrupts exe file
- Organization: Trust Factory
I have this bizarre problem with strip version 2.13. It seems to corrupt
an exe file we develop. I am a Linux user myself, but this dmt.exe is a
Lotus Notes tool, so it needs to run under Windows. I have 3 versions of
strip:
/usr/bin/strip on my Debian system (binutils-multiarch version
2.13.90.0.18-1)
/usr/bin/strip.exe on a Win-NT cygwin system (binutils version 20030307-1)
c:\mingw\bin\strip.exe on a WinMe system (MinGW version 2.0.0-3 includes
binutils-2.13-20020903-1)
The first 2 corrupt the exe in a way that it does not work anymore: the
dos prompt is simply returned without any output. Only the MinGW version
gets it right (the exe still works). Here is "strip -V" of the above (in
the same order):
GNU strip 2.13.90.0.18 20030121 Debian GNU/Linux
GNU strip 2.13.90 20030308
GNU strip 2.13
Some details about the files:
$ ls -la *.exe
77824 Mar 10 14:45 dmt-org.exe
74240 Mar 10 15:24 dmt-stripped-with-cygwin.exe
74240 Mar 10 15:42 dmt-stripped-with-linux.exe
74240 Mar 10 14:53 dmt-stripped-with-mingw.exe
$ cmp -lb dmt-stripped-with-linux.exe dmt-stripped-with-cygwin.exe
137 145 e 21 ^Q
138 244 € 240
217 374 ü 250 š
218 67 7 63 3
$ cmp -lb dmt-stripped-with-linux.exe dmt-stripped-with-mingw.exe
137 145 e 354 ì
138 244 € 230 M-^X
217 374 ü 340 à
218 67 7 363 ó
257 0 ^@ 224 M-^T
258 0 ^@ 345 å
261 0 ^@ 120 P
346 0 ^@ 340 à
349 0 ^@ 170 x
350 0 ^@ 1 ^A
It looks like strip NULLs a few more bytes than it should.
I'm willing to supply the exe files for testing, etc. Just let me know
where to send them. Please Cc me in replies, as I am not on this list.
Sincerely,
--
Richard van den Berg, CISSP
Trust Factory B.V. | http://www.trust-factory.com/
Bazarstraat 44a | Phone: +31 70 3620684
NL-2518AK The Hague | Fax : +31 70 3603009
The Netherlands |