How to redirect the loader to another directory ?

robert song
Thu May 13 11:35:00 GMT 2010

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/ /target/usr/bin/ls
Here /target/lib/ should be specified, or else the host
one will be searched.

$ readelf -l /target/usr/bin/ls
[Requesting program interpreter: /lib/]

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,

More information about the Binutils mailing list