NetBSD-Users archive

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

Re: qemu-i386 segfault



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