delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2008/03/28/17:45:12

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Rugxulo <rugxulo AT gmail DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: /beta/bnu217b.zip won't work in pure DOS (UPX bug??)
Date: Fri, 28 Mar 2008 15:33:37 -0700 (PDT)
Organization: http://groups.google.com
Lines: 36
Message-ID: <f4e381b5-ab61-4521-a6c7-2bdcf1c2ac5d@59g2000hsb.googlegroups.com>
References: <399e419e-7325-4a50-91c1-09d15037dc7b AT a22g2000hsc DOT googlegroups DOT com>
<47ecaff9$0$4851$9b4e6d93 AT newsspool4 DOT arcor-online DOT net>
NNTP-Posting-Host: 65.13.115.246
Mime-Version: 1.0
X-Trace: posting.google.com 1206743618 19748 127.0.0.1 (28 Mar 2008 22:33:38 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Fri, 28 Mar 2008 22:33:38 +0000 (UTC)
Complaints-To: groups-abuse AT google DOT com
Injection-Info: 59g2000hsb.googlegroups.com; posting-host=65.13.115.246;
posting-account=p5rsXQoAAAB8KPnVlgg9E_vlm2dvVhfO
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13)
Gecko/20080311 Firefox/2.0.0.13,gzip(gfe),gzip(gfe)
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi,

On Mar 28, 3:44 am, Robert Riebisch <Robert DOT Riebi DOT  DOT  DOT  AT arcor DOT de> wrote:
>
> Ah, thanks! :-) Can you reproduce the problem, when you pack your
> recompiled binaries with UPX 3.01?

If I try running the broken binary under DOSBox with latest HDPMI32,
it gives me the following:

   [EIP]=0F 45 C1 66 A3 18 32 0A 00 0F B6 5D

... which, run through HIEW, says this:

00000000: 0F45C1                       cmovne
ax,cx

And that is clearly not supported on my 486, P166 (no MMX), nor in
DOSBox (486DX). Maybe Gordon (who did the /beta/ port, right?) has a
P2 and wanted the extra runtime speed from "-march" optimizations?? I
dunno, only guessing.

For the AS-NEW.EXE that I rebuilt yesterday, I tried a lot of
compression options for both UPX 3.01 and 3.02 (DOS version), and no
problems running under DOSBox 0.72. (No compression differences b/w
UPX 3.01 for DJGPP stuff and 3.02, only an internal version variable
difference:

[ WinXP ] Fri 03/28/2008>fc ultbrute.ex ultbrute.exe /b   | more
Comparing files ultbrute.ex and ULTBRUTE.EXE
00000905: 31 32

I also did a quick grep in UPX 3.01's sources and found no mentions of
CMOV, so it must be a DJGPP port issue (although UPX was strangely
able to unpack all of these 2.04 .EXEs, so who knows). So, this issue
is probably not a direct UPX bug, AFAICT.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019