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

Re: QEMU user mode for dynamically linked binaries



Hi Paul-Antoine!

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.

See, for example [1, 2], on how that works. You don't need to build qemu from
source though. Just create the chroot and throw in the qemu-static binary.

Adrian

> [1] https://wiki.debian.org/M68k/sbuildQEMU
> [2] https://wiki.debian.org/SH4/sbuildQEMU

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: