Skip to content

Commit

Permalink
optionrom: add -fno-stack-protector
Browse files Browse the repository at this point in the history
This is required by OpenBSD.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
  • Loading branch information
bonzini committed Aug 9, 2016
1 parent a9c8730 commit b0e8f5c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pc-bios/optionrom/Makefile
Expand Up @@ -11,6 +11,7 @@ $(call set-vpath, $(SRC_PATH)/pc-bios/optionrom)

# Drop -fstack-protector and the like
QEMU_CFLAGS := $(filter -W%, $(QEMU_CFLAGS)) $(CFLAGS_NOPIE) -ffreestanding
QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -fno-stack-protector)
QEMU_CFLAGS += $(call cc-option, $(QEMU_CFLAGS), -m16)
ifeq ($(filter -m16, $(QEMU_CFLAGS)),)
# Attempt to work around compilers that lack -m16 (GCC <= 4.8, clang <= ??)
Expand Down

0 comments on commit b0e8f5c

Please sign in to comment.