summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-7.2/0048-gcc-Enable-static-PIE.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-7.2/0048-gcc-Enable-static-PIE.patch')
-rw-r--r--meta/recipes-devtools/gcc/gcc-7.2/0048-gcc-Enable-static-PIE.patch37
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-7.2/0048-gcc-Enable-static-PIE.patch b/meta/recipes-devtools/gcc/gcc-7.2/0048-gcc-Enable-static-PIE.patch
new file mode 100644
index 0000000000..879e360cf3
--- /dev/null
+++ b/meta/recipes-devtools/gcc/gcc-7.2/0048-gcc-Enable-static-PIE.patch
@@ -0,0 +1,37 @@
1From 44ef80688b56beea85c0070840dea1e2a4e34aed Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Tue, 13 Jun 2017 12:12:52 -0700
4Subject: [PATCH 49/49] gcc: Enable static PIE
5
6Static PIE support in GCC
7see
8https://gcc.gnu.org/ml/gcc/2015-06/msg00008.html
9
10Upstream-Status: Pending
11
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13---
14 gcc/config/gnu-user.h | 6 +++---
15 1 file changed, 3 insertions(+), 3 deletions(-)
16
17diff --git a/gcc/config/gnu-user.h b/gcc/config/gnu-user.h
18index 2787a3d16be..ee7b781319e 100644
19--- a/gcc/config/gnu-user.h
20+++ b/gcc/config/gnu-user.h
21@@ -51,10 +51,10 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
22 #if defined HAVE_LD_PIE
23 #define GNU_USER_TARGET_STARTFILE_SPEC \
24 "%{!shared: %{pg|p|profile:gcrt1.o%s;: \
25- %{" PIE_SPEC ":Scrt1.o%s} %{" NO_PIE_SPEC ":crt1.o%s}}} \
26- crti.o%s %{static:crtbeginT.o%s;: %{shared:crtbeginS.o%s} \
27+ %{" PIE_SPEC ":%{static:rcrt1.o%s;:Scrt1.o%s}} %{" NO_PIE_SPEC ":crt1.o%s}}} \
28+ crti.o%s %{shared:crtbeginS.o%s;: \
29 %{" PIE_SPEC ":crtbeginS.o%s} \
30- %{" NO_PIE_SPEC ":crtbegin.o%s}} \
31+ %{" NO_PIE_SPEC ":%{static:crtbeginT.o%s;:crtbegin.o%s}}} \
32 %{fvtable-verify=none:%s; \
33 fvtable-verify=preinit:vtv_start_preinit.o%s; \
34 fvtable-verify=std:vtv_start.o%s} \
35--
362.13.1
37