Received: from eggs.gnu.org ([2001:4830:134:3::10]:49011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXcv8-0007K7-Lg for qemu-devel@nongnu.org; Wed, 10 Aug 2016 19:28:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bXcv6-0002dG-9F for qemu-devel@nongnu.org; Wed, 10 Aug 2016 19:28:21 -0400 Received: from speedy.comstyle.com ([2001:470:1d:8c::2]:13043 helo=mail.comstyle.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bXcv6-0002Z5-2C for qemu-devel@nongnu.org; Wed, 10 Aug 2016 19:28:20 -0400 References: <1468504347-6413-1-git-send-email-pbonzini@redhat.com> <1468504347-6413-2-git-send-email-pbonzini@redhat.com> <24abaf0a-404a-e112-320e-ddf813a2e2a6@comstyle.com> <0445d0c5-3c18-1229-450a-7ffdaae6e9af@redhat.com> From: Brad Smith Message-ID: <8168f66e-9c19-ac7b-d481-77ad115d5543@comstyle.com> Date: Wed, 10 Aug 2016 19:28:10 -0400 MIME-Version: 1.0 In-Reply-To: <0445d0c5-3c18-1229-450a-7ffdaae6e9af@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 1/1] Add optionrom compatible with fw_cfg DMA version List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: =?UTF-8?Q?Marc_Mar=c3=ad?= , "Richard W . M . Jones" On 08/08/16 04:50, Paolo Bonzini wrote: > > > On 07/08/2016 01:53, Brad Smith wrote: >> On 07/14/16 09:52, Paolo Bonzini wrote: >>> diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile >>> index 2cdda87..d88ce11 100644 >>> --- a/pc-bios/optionrom/Makefile >>> +++ b/pc-bios/optionrom/Makefile >>> @@ -9,22 +9,46 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom) >>> >>> .PHONY : all clean build-all >>> >>> -CFLAGS := -Wall -Wstrict-prototypes -Werror -fomit-frame-pointer >>> -fno-builtin >>> -CFLAGS += -I$(SRC_PATH) >>> -CFLAGS += $(call cc-option, $(CFLAGS), -fno-stack-protector) >>> -CFLAGS += $(CFLAGS_NOPIE) >>> -QEMU_CFLAGS = $(CFLAGS) >>> - >>> -build-all: multiboot.bin linuxboot.bin kvmvapic.bin >>> +# Drop -fstack-protector and the like >>> +QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) $(CFLAGS_NOPIE) >>> -ffreestanding >>> +QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -m16) >> >> This change in CFLAGS handling broke the build on OpenBSD. Filtering >> -fstack-protector is not enough and is why the Makefile had an explicit >> -fno-stack-protector provided. >> >> Adding this back in fixes the issue.. >> >> QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector) > > Ok, will add back. Great, thank you.