All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] efi: Build EFI stub with EFI-appropriate options
@ 2012-07-26 22:00 Matthew Garrett
  2012-07-27 10:42 ` Matt Fleming
       [not found] ` <1343340000-7587-1-git-send-email-mjg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 2 replies; 11+ messages in thread
From: Matthew Garrett @ 2012-07-26 22:00 UTC (permalink / raw)
  To: matt.fleming; +Cc: linux-efi, linux-kernel, x86, Matthew Garrett

We can't assume the presence of the red zone while we're still in a boot
services environment, so we should build with -fno-red-zone to avoid
problems. Change the size of wchar at the same time to make string handling
simpler.

Signed-off-by: Matthew Garrett <mjg@redhat.com>
---
 arch/x86/boot/compressed/Makefile |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/boot/compressed/Makefile b/arch/x86/boot/compressed/Makefile
index e398bb5..8a84501 100644
--- a/arch/x86/boot/compressed/Makefile
+++ b/arch/x86/boot/compressed/Makefile
@@ -28,6 +28,9 @@ VMLINUX_OBJS = $(obj)/vmlinux.lds $(obj)/head_$(BITS).o $(obj)/misc.o \
 	$(obj)/string.o $(obj)/cmdline.o $(obj)/early_serial_console.o \
 	$(obj)/piggy.o
 
+$(obj)/eboot.o: KBUILD_CFLAGS += -fshort-wchar -mno-red-zone
+$(obj)/efi_stub_$(BITS).o: KBUILD_CLFAGS += -fshort-wchar -mno-red-zone
+
 ifeq ($(CONFIG_EFI_STUB), y)
 	VMLINUX_OBJS += $(obj)/eboot.o $(obj)/efi_stub_$(BITS).o
 endif
-- 
1.7.10.4


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2012-10-24 20:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-26 22:00 [PATCH] efi: Build EFI stub with EFI-appropriate options Matthew Garrett
2012-07-27 10:42 ` Matt Fleming
     [not found] ` <1343340000-7587-1-git-send-email-mjg-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2012-10-18 18:18   ` Daniel Vacek
2012-10-18 18:18     ` Daniel Vacek
     [not found]     ` <CAA7rmPGL827cgT6hM8h_xhokEbTbTnrptoRekVByM7AcMdRUdw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-18 18:28       ` Matthew Garrett
2012-10-18 18:28         ` Matthew Garrett
2012-10-18 20:32         ` Daniel Vacek
     [not found]           ` <CAA7rmPHSX+nOfQc-rs729g7ibkH5VwvsGkiOLLxX794CAgmYSw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-10-24 17:52             ` Greg KH
2012-10-24 17:52               ` Greg KH
     [not found]               ` <20121024175225.GA27553-U8xfFu+wG4EAvxtiuMwx3w@public.gmane.org>
2012-10-24 20:20                 ` Daniel Vacek
2012-10-24 20:20                   ` Daniel Vacek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.