[arch-general] Executing a command of a chroot outside of the chroot

Rodrigo Rivas rodrigorivascosta at gmail.com
Fri Dec 7 04:06:40 EST 2012

On Fri, Dec 7, 2012 at 7:03 AM, Δημήτρης Ζέρβας <01ttouch at gmail.com> wrote:

> the main system is android and the chroot is Arch linux, so I have no ldd
> nor readelf...

But the dynamic loader must exist... you can invoke it manually if only you
know the name.

You can get the name of the interpreter with "objdump -j .interp -s
program". Or you can try and guess. For example, in my Arch box it is
"/lib/ld-linux.so.2" (a link to "/lib/ld-2.16.so"), so it is likely that it
is names something similar.

So run:

# /data/workbench/mnt/lib/ld-linux.so.2 /data/workbench/mnt/bin/bash

and see what happens.


More information about the arch-general mailing list