On Tue, Oct 09, 2012 at 10:46:41AM +0100, Matt Fleming wrote:
> From: Matthew Garrett <[email protected]>
> 
> commit 9dead5bbb825d7c25c0400e61de83075046322d0 upstream.
> 
> 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 <[email protected]>
> Signed-off-by: Matt Fleming <[email protected]>

We've been carrying this in our Fedora 18 tree on top of 3.6 for a
while.  So,

Acked-by: Josh Boyer <[email protected]>

josh

> ---
>  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.11.4
> 
--
To unsubscribe from this list: send the line "unsubscribe stable" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to