DragonFly users List (threaded) for 2009-08
DragonFly BSD
DragonFly users List (threaded) for 2009-08
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Qemu in the pkgsrc


From: Hasso Tepper <hasso@xxxxxxxxx>
Date: Mon, 31 Aug 2009 15:58:25 +0300

I updated qemu in the pkgsrc to the 0.10.6 version and have all the 
patches floating around relevant to DragonFly. There are also patches 
which make bsd user emulation build, but it doesn't really work:

$ /usr/pkg/bin/qemu-sparc64 
bash: /usr/pkg/bin/qemu-sparc64: cannot execute binary file
$ file /usr/pkg/bin/qemu-sparc64
/usr/pkg/bin/qemu-sparc64: ELF 32-bit LSB shared object, Intel 80386, 
version 1 (SYSV), dynamically linked, for DragonFly 2.0.206, stripped
$

My wild guess from very short investigation is this:

# WARNING: this LDFLAGS is _very_ tricky : qemu is an ELF shared object
# that the kernel ELF loader considers as an executable. I think this
# is the simplest way to make it self virtualizable!
LDFLAGS+=-Wl,-shared

It would be nice if someone with free timeslots, could take a look.


regards,

-- 
Hasso Tepper



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