[EMAIL PROTECTED] (Eric W. Biederman) writes:

> I have just gotten a general ELF compressor, and self decompressor
> going on x86 & alpha.  And in the doing of it I found a bug in
> the linux ELF code.  It doesn't seem to like the idea of multiple
> bss segments..
> 
> Anyway I should have it cleaned up in a day or two so I can share...

Ah my famous last works....  Well after being called off on other things,
I finally have this working on alpha for real!

The cleanup is almost done but it will be next week before I can put
my code out. 

My two biggest problems were:
1) I was loading the compressed data for onto the linuxBIOS stack.
   Works beautifully :) crc error!!!
2) I didn't have code in elfboot.c to handle elf sections which had a
   filesz of 0,  (Useful for uncompressing the data too).
   It made for an interesting infinite loop while booting processing
   the same empty segment again, and again, and again, and again, and....

I have now fixed elfboot.c so it will not allow you to load an image
on top of linuxBIOS, and it will now handle segments with a filesz of
0.  This code is now checked in.

I'll probably check out UPX later, as it's compressor is better but I
did't see code in their to relocate the decompressor, giving an
arbtrary limit.

Eric

Reply via email to