Hi, > %.img: %.o > - $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -Ttext 0 -e _start -s -o $@ > $<," Building $(TARGET_DIR)$@") > + $(call quiet-command,$(LD) $(LDFLAGS_NOPIE) -m elf_i386 -Ttext 0 -e > _start -s -o $@ $<," Building $(TARGET_DIR)$@")
Hmm, that breaks the windows cross build: make: Entering directory `/home/kraxel/projects/qemu/build-win32' Building optionrom/linuxboot_dma.img i686-w64-mingw32-ld: unrecognised emulation mode: elf_i386 Supported emulations: i386pe make[1]: *** [linuxboot_dma.img] Error 1 cheers, Gerd