diff --git a/pc-bios/optionrom/Makefile b/pc-bios/optionrom/Makefile index 6bab4900733bfb3c99876a8ec00dcbdc8376b02f..9c018ea48a894d135ab317cc5142db785295dc4a 100644 --- a/pc-bios/optionrom/Makefile +++ b/pc-bios/optionrom/Makefile @@ -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 <= ??)