Projects / UPX

UPX

UPX is a portable, extendable, high-performance executable packer for several different executable formats. It achieves an excellent compression ratio and offers very fast decompression. Your executables suffer no memory overhead or other drawbacks. UPX supports vmlinuz/386, linux/elf386, linux/386, win32/pe, dos/exe, djgpp2/coff, and many more.

Tags
Licenses
Operating Systems
Implementation

Recent releases

  •  08 Nov 2010 15:04

    Release Notes: A newly introduced bug with TLS callbacks in the win32/pe format has been fixed.

    •  10 Oct 2006 14:32

      Release Notes: This release adds support for FreeBSD, NetBSD, and OpenBSD and introduces optional LZMA compression.

      •  11 Apr 2006 17:58

        Release Notes: Support for compressing ARM executables running on WinCE has been added.

        •  14 Mar 2006 05:41

          Release Notes: This release adds support for several new executable formats, including Linux ELF/AMD64, Linux ELF/PPC32 and Apple Mach/PPC32.

          •  20 Jul 2004 03:15

            Release Notes: A new executable format "vmlinux/386", which directly supports ELF kernels, was added.

            Recent comments

            09 Jan 2004 10:13 jaf

            PowerPC support?
            This program would be just the ticket for getting more mileage
            out of my embedded PowerPC linux card's flash ram storage...
            but it appears that PowerPC executables are not supported. Any
            chance of support for PowerPC executables being added soon?
            (my project uses the 2.4 kernel, fwiw)

            13 Nov 2002 08:02 slarty2

            Kernel packing rocks
            The unstable version 1.90 supports kernel packing - this is excellent for single-disc distributions where every k counts.

            My kernel decreased in size 20% after upx, and bear in mind that bzImage kernels are in fact compressed with gzip *already* - so it actually beat the existing compression by quite a big margin.

            The kernel still boots fine, in fact quicker than it did before.

            13 May 1999 12:48 jayunbound

            magic file patch
            here's a patch for your magic file (usually /usr/share/magic) to allow file(1) to do simple recognition of UPX compressed executables.

            with this patch, running file on a UPX compressed executable you get the following (example) output:

            $ file ./gimp
            ./gimp: ELF 32-bit LSB executable, UPX compressed, Intel 80386, version 1, statically linked, stripped


            # upx.magic.patch
            #
            # apply this patch to /usr/share/magic to allow file(1) to have simple
            # recognition of UPX (http://wildsau.idv.uni-linz.ac.at/mfx/upx.html)
            # compressed executables
            # do (with permissions to write to magic [eg. as root]):
            # cp upx.magic.patch /usr/share && cd /usr/share && patch < upx.magic.patch
            *** magic.old Sat May 8 04:49:47 1999
            --- magic Thu May 13 18:02:18 1999
            ***************
            *** 1351,1356 ****
            --- 1351,1358 ----
            # What're the correct byte orders for the nCUBE and the Fujitsu VPP500?
            #
            # updated by Daniel Quinlan (quinlan@yggdrasil.com)
            + # UPX (http://wildsau.idv.uni-linz.ac.at/mfx/upx.html) support added
            + # by Jay Johnston (jajohnst@cs.vassar.edu)
            0 string \177ELF ELF
            >4 byte 0 invalid class
            >4 byte 1 32-bit
            ***************
            *** 1360,1365 ****
            --- 1362,1368 ----
            >>16 leshort 0 no file type,
            >>16 leshort 1 relocatable,
            >>16 leshort 2 executable,
            + >>>154 string UPX UPX compressed,
            >>16 leshort 3 shared object,
            # Core handling from Peter Tobias
            # corrections by Christian 'Dr. Disk' Hechelmann

            13 May 1999 12:21 jayunbound

            whoa there...

            To quote your description of UPX on Freshmeat (see the top of this page) and at the top of your documentation for UPX:


            "Your executables [when compressed with UPX] suffer no memory overhead or other drawbacks"


            While UPX excels at its function, it does create drawbacks for the executables it compresses. I was just clarifying that for those looking at the freshmeat description of UPX (using the comments section for what it's there for).


            Furthermore, UPX is a closed-source program, so the only way one in the Linux community can help others in regards to UPX's drawbacks is to spread the knowledge of those drawbacks (as opposed to helping to solve them as one would do if the program was Open Source and gpl'd).

            13 May 1999 05:28 mfx

            Re: damn smooth, but some does have some problems...
            To quote the documentation:

            Drawbacks:

            - `ldd' and `size' won't show anything useful because all they
            see is the statically linked stub.

            ...

            Screenshot

            Project Spotlight

            OpenStack4j

            A Fluent OpenStack client API for Java.

            Screenshot

            Project Spotlight

            TurnKey TWiki Appliance

            A TWiki appliance that is easy to use and lightweight.