NetBSD-Users archive

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

Re: qemu-i386 segfault



Hi Martin,

That works of course:) The point is to get it done via qemu-i386 and that's what doesn't work. But as I mentioned it may require 32bit libc which I currently don't have at hand so I'll need to get it from an i386 NetBSD install.

Best regards,
r0ller


-------- Eredeti levél --------

Feladó: Martin Husemann <
martin%duskware.de@localhost
>

Tárgy: Re: qemu-i386 segfault

Címzett: r0ller <
r0ller%freemail.hu@localhost
>


On Tue, Dec 20, 2016 at 12:48:37PM +0100, r0ller wrote:

> I wanted to play around a bit with qemu-i386 user space emulation so
> I just compiled a C hello world to 32bit elf binary and gave it a try
> but all what I got was a segfault. Well, it just comes into my mind
> that it may need a 32bit libc (or some other libs) :D Is that
> assumption right? Has anyone tried such a thing on an amd64 NetBSD-7.0?


Try:
cc -O2 -m32 hello.c
file a.out
./a.out

output for me is:
a.out: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /usr/libexec/ld.elf_so, for NetBSD 7.99.51, not stripped
hello world


(but I am trying on -current, not 7.0)

Martin

Home | Main Index | Thread Index | Old Index