[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: QEMU user mode for dynamically linked binaries

Hi Adrian,

Thanks for the quick reply!

On 12/06/2019 20:49, John Paul Adrian Glaubitz wrote:
On 6/12/19 7:38 PM, Paul-Antoine Arras wrote:
For instance, for a classic hello world, I get:

     $ qemu-riscv64 a.out
     a.out: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory

I followed the guidelines in the wiki [1] to have ld.so properly configured.

You need to create a complete changeroot, of course, which contains the shared
libraries you need.

Indeed, it works with chroot.

However, after reading the wiki page on QEMU user emulation [1], it seemed to me that it should be possible to run dynamically-linked binaries without chroot, simply by installing the target libc6 with multiarch.

Am I mistaken?


[1] https://wiki.debian.org/QemuUserEmulation

Paul-Antoine Arras

Reply to: