Mail Archives: djgpp-workers/2003/02/10/02:00:09
On Fri, Feb 07, 2003 at 12:45:23PM -0600, Charles Sandmann wrote:
> > UPX 1.9<something>, which is a testing release, purportedly fixes the problems
> > with later versions of binutils. So it seems likely that problem with binutils
> > & UPX will go away soon.
> But I'm still unhappy that something was changed in our COFF file formats
> without us needing to change it or know why it's been changed.
OK, here is the official :-) description of the problem. Older UPX
versions contain some code which tries to remove an unneeded chunk of
zero bytes from the COFF image which is produced by some versions of
binutils. IIRC this can be seen in action by producing an executable
with stabs debugging info, stripping it, then compressing &
decompressing it. The uncompressed size should be smaller than the size
before compression.
This worked fine until the latest binutils version. Unfortunately my
hack is incompatible with this new version, because the original COFF
header disappears from the compressed executable. Which would be
neccessary during uncompression... So I removed this "feature". Now the
zero bytes are added back after uncompression.
UPX 1.91 should be fine.
Laszlo
- Raw text -