blob: d3c102d750fe02878b942f1dd0927d017c2b68e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
diff --git a/xen/arch/x86/arch.mk b/xen/arch/x86/arch.mk
index 227d439a..41bc2e89 100644
--- a/xen/arch/x86/arch.mk
+++ b/xen/arch/x86/arch.mk
@@ -94,7 +94,7 @@ $(shell mkdir -p $(dir $(efi-check)))
XEN_BUILD_EFI := $(call if-success,$(CC) $(CFLAGS) -c $(srctree)/$(efi-check).c -o $(efi-check).o,y)
# Check if the linker supports PE.
-EFI_LDFLAGS := $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
+EFI_LDFLAGS := -mi386pep $(patsubst -m%,-mi386pep,$(LDFLAGS)) --subsystem=10
LD_PE_check_cmd = $(call ld-option,$(EFI_LDFLAGS) --image-base=0x100000000 -o $(efi-check).efi $(efi-check).o)
XEN_BUILD_PE := $(LD_PE_check_cmd)
|