Re: gzipped executables

From: Padraig Brady (
Date: Tue Feb 13 2001 - 08:08:17 EST

You might consider UPX (
Very cool. The beta version supports compressing the kernel
and "direct-to-memory" compression. I think it still
has the disadvantage of not sharing segments between many
instances of the same program. Is there any way of fixing
this? (probably would have to hack a bit with the loader?)

For a general solution I would look @ changing the filesystem
so that particular files (not just executables) can be compressed/
decompressed transparently. (I.E. for ext2 implement `chattr +c`).


Ingo Oeser wrote:

> On Tue, Feb 13, 2001 at 08:40:31AM -0000, wrote:
>> On Mon, 12 Feb 2001 23:09:39 -0600 (CST) Matt Stegman <> wrote:
>>> Is there any kernel patch that would allow Linux to properly recognize,
>>> and execute gzipped executables?
>> Perhaps you could put it in the filesystem. Look at the
>> "chattr" manpage, which shows how this is meant to work with
>> ext2. It seems not to have been implemented yet. This way you
>> could also compress any files, not just executables.
> A nice way already implemented in 2.4.x is cramfs. Many embedded
> people (like me) use it to fill up their flash disks.
> Look at linux/Documentation/filesystems/cramfs.txt for more info.
> Regards
> Ingo Oeser

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Thu Feb 15 2001 - 21:00:21 EST