SHA256
1
0
forked from pool/ovmf
ovmf/ovmf-pie.patch

14 lines
609 B
Diff

Index: edk2-edk2-stable202305/BaseTools/Source/C/Makefiles/header.makefile
===================================================================
--- edk2-edk2-stable202305.orig/BaseTools/Source/C/Makefiles/header.makefile
+++ edk2-edk2-stable202305/BaseTools/Source/C/Makefiles/header.makefile
@@ -101,7 +101,7 @@ else
CFLAGS = -MD -fshort-wchar -fno-strict-aliasing -fwrapv \
-fno-delete-null-pointer-checks -Wall -Werror \
-Wno-deprecated-declarations -Wno-stringop-truncation -Wno-restrict \
--Wno-unused-result -nostdlib -g
+-Wno-unused-result -nostdlib -g -fPIE
endif
endif
ifneq ($(CLANG),)