On 15/07/2016 15:26, Stefan Hajnoczi wrote: > On Thu, Jul 14, 2016 at 2:52 PM, Paolo Bonzini <pbonz...@redhat.com> wrote: >> From: Marc MarĂ <mar...@redhat.com> >> >> This optionrom is based on linuxboot.S. >> >> Signed-off-by: Marc MarĂ <mar...@redhat.com> >> Signed-off-by: Richard W.M. Jones <rjo...@redhat.com> >> Message-Id: <1464027093-24073-2-git-send-email-rjo...@redhat.com> >> [Add -fno-toplevel-reorder, support clang without -m16. - Paolo] >> Signed-off-by: Paolo Bonzini <pbonz...@redhat.com> >> --- >> .gitignore | 4 + >> Makefile | 2 +- >> hw/i386/pc.c | 10 +- >> hw/nvram/fw_cfg.c | 2 +- >> include/hw/i386/pc.h | 4 + >> include/hw/nvram/fw_cfg.h | 1 + >> pc-bios/linuxboot_dma.bin | Bin 0 -> 1024 bytes >> pc-bios/optionrom/Makefile | 42 ++++-- >> pc-bios/optionrom/code16gcc.h | 3 + >> pc-bios/optionrom/linuxboot_dma.c | 294 >> ++++++++++++++++++++++++++++++++++++++ >> 10 files changed, 349 insertions(+), 13 deletions(-) >> create mode 100644 pc-bios/linuxboot_dma.bin >> create mode 100644 pc-bios/optionrom/code16gcc.h >> create mode 100644 pc-bios/optionrom/linuxboot_dma.c > > CC optionrom/linuxboot_dma.o > clang-3.8: error: unsupported argument '-32' to option 'Wa,' > > $ rpm -qi clang > Name : clang > Version : 3.8.0 > Release : 2.fc24 > Architecture: x86_64
This is strange, the Makefile does check whether the compiler supports the argument: +QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), $(Wa)-32) Can you send the V=1 output? Paolo