--- xen/arch/x86/Makefile~ 2013-02-22 00:18:52.660737436 +0100 +++ xen/arch/x86/Makefile 2013-02-22 00:19:24.660736292 +0100 @@ -112,7 +112,7 @@ $(TARGET)-syms: prelink.o xen.lds $(BASE $(@D)/.$(@F).1.o -o $@ rm -f $(@D)/.$(@F).[0-9]* -EFI_LDFLAGS = $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 +EFI_LDFLAGS = -mi386pep $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10 EFI_LDFLAGS += --image-base=$(1) --stack=0,0 --heap=0,0 --strip-debug EFI_LDFLAGS += --section-alignment=0x200000 --file-alignment=0x20 EFI_LDFLAGS += --major-image-version=$(XEN_VERSION)