Re: [Qemu-discuss] How to run cross-compiled binaries using Qemu user space emulation?

2019-09-03 Thread Peter Maydell
On Mon, 2 Sep 2019 at 11:34, Libo Zhou wrote: > > I am trying to run C programs compiled for MIPS32 big-endian architecture on > an x86_64 host. And I am using Ubuntu 18.04 LTS. > Then I got a segmentation fault, and here is the strace log: > > > 10255 brk(NULL) = 0x00412000 > 10255 mmap2(NULL,81

Re: [Qemu-discuss] How to run cross-compiled binaries using Qemu user space emulation

2019-09-02 Thread Libo Zhou
The solution is: $ cd /usr/mips-linux-gnu $ sudo mkdir etc $ sudo ldconfig -C etc/ld.so.cache -r . (Credit: Aleksandar Markovic at Qemu-devel) -- Original -- From: "Libo Zhou";; Send time: Monday, Sep 2, 2019 6:21 PM To: "qemu-discuss"; Subject: How to run

[Qemu-discuss] How to run cross-compiled binaries using Qemu user space emulation?

2019-09-02 Thread Libo Zhou
I am trying to run C programs compiled for MIPS32 big-endian architecture on an x86_64 host. And I am using Ubuntu 18.04 LTS. I installed the prebuilt cross compiler using the following command: $ sudo apt install gcc-mips-linux-gnu Then, I built Qemu from source with the commands below: $

[Qemu-discuss] How to run cross-compiled binaries using Qemu user space emulation

2019-09-02 Thread Libo Zhou
I am trying to run C programs compiled for MIPS32 big-endian architecture on an x86_64 host. And I am using Ubuntu 18.04 LTS. I installed the prebuilt cross compiler using the following command: $ sudo apt install gcc-mips-linux-gnu Then, I built Qemu from source with the commands below: $