diff options
author | Mingli Yu <Mingli.Yu@windriver.com> | 2018-05-09 23:20:04 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-05-15 10:56:50 +0100 |
commit | 246b1de9543884e90f24d38a3e02c3ccf03d76ea (patch) | |
tree | 1ec82d1d9b36fa77c0e041abea1a4733926874be /meta/recipes-kernel | |
parent | a1dda84fe8b8abbe61f48a1a43d3c19dc5133825 (diff) | |
download | poky-246b1de9543884e90f24d38a3e02c3ccf03d76ea.tar.gz |
kexec-tools: Set -fno-PIC on aarch64
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.
(From OE-Core rev: d0971200ffe226ade76273ff73be4fa5511a2baa)
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel')
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch | 33 | ||||
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb | 1 |
2 files changed, 34 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch new file mode 100644 index 0000000000..786fc0ce41 --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch | |||
@@ -0,0 +1,33 @@ | |||
1 | From a12dfe9be05f9dee96c7637a20c01e05711c563c Mon Sep 17 00:00:00 2001 | ||
2 | From: David Michael <david.michael@coreos.com> | ||
3 | Date: Sun, 7 Jan 11:26:57 2018 -0500 | ||
4 | Subject: [PATCH] arm64: Set -fno-PIC along with -mcmodel=large | ||
5 | |||
6 | As seen in GCC's gcc/config/aarch64/aarch64.c, -fPIC with large | ||
7 | code model is unsupported. This fixes the "sorry, unimplemented" | ||
8 | errors when building with compilers defaulting to -fPIC. | ||
9 | |||
10 | Upstream-Status: Backport | ||
11 | |||
12 | Signed-off-by: Simon Horman <horms@verge.net.au> | ||
13 | Signed-off-by: David Michael <david.michael@coreos.com> | ||
14 | Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> | ||
15 | --- | ||
16 | purgatory/arch/arm64/Makefile | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/purgatory/arch/arm64/Makefile b/purgatory/arch/arm64/Makefile | ||
20 | index 636abea..80068ca 100644 | ||
21 | --- a/purgatory/arch/arm64/Makefile | ||
22 | +++ b/purgatory/arch/arm64/Makefile | ||
23 | @@ -1,6 +1,7 @@ | ||
24 | |||
25 | arm64_PURGATORY_EXTRA_CFLAGS = \ | ||
26 | -mcmodel=large \ | ||
27 | + -fno-PIC \ | ||
28 | -fno-stack-protector \ | ||
29 | -fno-asynchronous-unwind-tables \ | ||
30 | -Wundef \ | ||
31 | -- | ||
32 | 2.7.4 | ||
33 | |||
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb index ebb4832684..bd87b371c2 100644 --- a/meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.16.bb | |||
@@ -20,6 +20,7 @@ SRC_URI = "${KERNELORG_MIRROR}/linux/utils/kernel/kexec/kexec-tools-${PV}.tar.gz | |||
20 | file://0010-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch \ | 20 | file://0010-kexec-ARM-Fix-add_buffer_phys_virt-align-issue.patch \ |
21 | file://kexec-x32.patch \ | 21 | file://kexec-x32.patch \ |
22 | file://0001-Disable-PIE-during-link.patch \ | 22 | file://0001-Disable-PIE-during-link.patch \ |
23 | file://0001-arm64-Set-fno-PIC-along-with-mcmodel-large.patch \ | ||
23 | " | 24 | " |
24 | 25 | ||
25 | SRC_URI[md5sum] = "5198968de79b5ded96f97f3c2ea9637b" | 26 | SRC_URI[md5sum] = "5198968de79b5ded96f97f3c2ea9637b" |