On Friday 10 July 2009 08:45:26 Mahavir Jain wrote:
> Hi, Tito,
> 
> On Wed, Jul 8, 2009 at 1:15 AM, Tito <[email protected]> wrote:
> 
> > Hi,
> > I'm experiencing a strange behaviour of busybox.
> > I'm trying to use upx on an android g1 phone.
> > So far I was able to cross-compile a statically linked
> > and working copy of upx
> > upx compresses the executables on the phone just fine,
> > only busybox seems not to work as expected.
> > upx compresses it but when the compressed
> > busybox is launched it runs the command as
> > expected but never returns to the shell unless it is killed.
> > The only suspect log i can see after killing it is:
> >
> > <3>[ 3261.966003] init: untracked pid 5064 exited
> > <3>[ 3290.064056] init: untracked pid 5066 exited
> > <3>[ 3339.908325] init: untracked pid 5069 exited
> >
> > Any hints about what is going wrong here?
> >
> > BTW: busybox packed with upx on x86 works.
> >
> > /system/sd # ./upx busybox
> >                       Ultimate Packer for eXecutables
> >                          Copyright (C) 1996 - 2009
> > UPX 3.04        Markus Oberhumer, Laszlo Molnar & John Reiser   Apr 27th
> > 2009
> >
> >        File size         Ratio      Format      Name
> >   --------------------   ------   -----------   -----------
> >    690276 ->    381428   55.26%   linux/armel   busybox
> >
> > Packed 1 file.
> 
> 
> Does upx support packaging of dynamically linked executables..? I am getting
> following error while packaging busybox for ARM...
> 
> UnknownExecutableFormatException
> 
> $ file busybox
> ELF 32-bit LSB executable, ARM, version 1 (SYSV), statically linked,
> stripped
> 
> 
> -max
> 

Hi,
I asked John Reiser about this and he told me:

> format UPX_F_MACH_ARMEL, class PackMachARMEL: iPhone
> was added on 2008-11-15, about 8 months ago.
>
> The current source
>    $ hg pull
>    pulling from https://www.pysol.org:4443/hg/upx.hg
> compresses for me, although I don't have an Android phone to test the
> results: -----
> $ ./upx.out -f -o foo /tmp/toolbox.android
>                        Ultimate Packer for eXecutables
>                           Copyright (C) 1996 - 2009
> UPX 3.04        Markus Oberhumer, Laszlo Molnar & John Reiser   Apr 27th
> 2009
>
>         File size         Ratio      Format      Name
>    --------------------   ------   -----------   -----------
>      72604 ->     48168   66.34%   linux/armel   foo

So download and compile the latest source.

Ciao,
Tito
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to