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

14 lines
640 B
Diff
Raw Normal View History

Index: edk2-edk2-stable201905/BaseTools/Source/C/Makefiles/header.makefile
===================================================================
--- edk2-edk2-stable201905.orig/BaseTools/Source/C/Makefiles/header.makefile
+++ edk2-edk2-stable201905/BaseTools/Source/C/Makefiles/header.makefile
@@ -75,7 +75,7 @@ else
BUILD_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
BUILD_LFLAGS =
BUILD_CXXFLAGS = -Wno-unused-result