summaryrefslogtreecommitdiff
path: root/0042-Switch-to-fPIE.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-05 02:16:15 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-05 02:16:15 +0000
commit64a1be29a5d22a92b1830144fedfdf8884a2b20d (patch)
tree27f8b13b5d4fb5359c31c7c1ff60a9563cd8361d /0042-Switch-to-fPIE.patch
parent453c495bceb89952108be7452da3d072d3336eab (diff)
automatic import of gnu-efiopeneuler24.03_LTS
Diffstat (limited to '0042-Switch-to-fPIE.patch')
-rw-r--r--0042-Switch-to-fPIE.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/0042-Switch-to-fPIE.patch b/0042-Switch-to-fPIE.patch
new file mode 100644
index 0000000..f1444a7
--- /dev/null
+++ b/0042-Switch-to-fPIE.patch
@@ -0,0 +1,27 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From: Peter Jones <pjones@redhat.com>
+Date: Tue, 19 Nov 2019 13:23:14 -0500
+Subject: [PATCH] Switch to -fPIE
+
+Signed-off-by: Peter Jones <pjones@redhat.com>
+---
+ Make.defaults | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Make.defaults b/Make.defaults
+index 01269660ab8..15af35e6e26 100755
+--- a/Make.defaults
++++ b/Make.defaults
+@@ -193,10 +193,10 @@ endif
+ INCDIR += -I$(SRCDIR) -I$(TOPDIR)/inc -I$(TOPDIR)/inc/$(ARCH) \
+ -I$(TOPDIR)/inc/protocol
+
+-# Only enable -fpic for non MinGW compilers (unneeded on MinGW)
++# Only enable -fPIE for non MinGW compilers (unneeded on MinGW)
+ GCCMACHINE := $(shell $(CC) -dumpmachine)
+ ifneq (mingw32,$(findstring mingw32, $(GCCMACHINE)))
+- CFLAGS += -fpic
++ CFLAGS += -fPIE
+ endif
+
+ IS_FREEBSD = $(findstring FreeBSD, $(OS))