On 27 May 2016 at 14:38, Richard W.M. Jones <rjo...@redhat.com> wrote: > On Fri, May 27, 2016 at 02:04:52PM +0100, Peter Maydell wrote: >> With V=1: >> >> i686-w64-mingw32-ld -m i386pe -Ttext 0 -e _start -s -o >> linuxboot_dma.img linuxboot_dma.o >> linuxboot_dma.o:linuxboot_dma.c:(.text+0x57): undefined reference to >> `load_kernel' >> >> Building an image for the target using our host compiler seems like >> an odd choice, > > Which compiler should I be using?
I would have expected that how we build a guest image ought to be the same regardless of how we're building QEMU itself. (You wouldn't try to build an i386 image with $(CC) if you're on an ARM host, for instance.) However, given that the makefile already works this way, better to go with the flow... thanks -- PMM