This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: How to redirect the loader to another directory ?
- From: Goswin von Brederlow <goswin-v-b at web dot de>
- To: robert song <robertsong dot japan at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Thu, 13 May 2010 15:46:00 +0200
- Subject: Re: How to redirect the loader to another directory ?
- References: <AANLkTikn7d9YS5rpvf20DpHaQ8Stw0jwXpm2A-2hbjry@mail.gmail.com>
robert song <robertsong.japan@gmail.com> writes:
> Hi, everyone.
> Now I use qemu-arm to execute the target command on host.
> But it should be executed as follows:
> $ qemu-arm -E LD_LIBRARY_PATH=/target/usr/lib:/target/lib
> /target/lib/ld-linux.so.3 /target/usr/bin/ls
> Here /target/lib/ld-linux.so.3 should be specified, or else the host
> one will be searched.
>
> $ readelf -l /target/usr/bin/ls
> (snip)
> [Requesting program interpreter: /lib/ld-linux.so.3]
> (snip)
>
> Is there any method to redirect the loader to the directory I
> specified (for exmaple, the root dir should be /target) without the
> method above ?
>
> Best Regards,
> robert
chroot
MfG
Goswin