blob: 786fc0ce41ca492fcf8b12f0478149b266e8edcc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
From a12dfe9be05f9dee96c7637a20c01e05711c563c Mon Sep 17 00:00:00 2001
From: David Michael <david.michael@coreos.com>
Date: Sun, 7 Jan 11:26:57 2018 -0500
Subject: [PATCH] arm64: Set -fno-PIC along with -mcmodel=large
As seen in GCC's gcc/config/aarch64/aarch64.c, -fPIC with large
code model is unsupported. This fixes the "sorry, unimplemented"
errors when building with compilers defaulting to -fPIC.
Upstream-Status: Backport
Signed-off-by: Simon Horman <horms@verge.net.au>
Signed-off-by: David Michael <david.michael@coreos.com>
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
---
purgatory/arch/arm64/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/purgatory/arch/arm64/Makefile b/purgatory/arch/arm64/Makefile
index 636abea..80068ca 100644
--- a/purgatory/arch/arm64/Makefile
+++ b/purgatory/arch/arm64/Makefile
@@ -1,6 +1,7 @@
arm64_PURGATORY_EXTRA_CFLAGS = \
-mcmodel=large \
+ -fno-PIC \
-fno-stack-protector \
-fno-asynchronous-unwind-tables \
-Wundef \
--
2.7.4
|