sys-apps/kexec-tools: Apply CoreOS changes

Just add a fix for arm64.  This package can be moved back to
portage-stable when syncing to a newer upstream release.
This commit is contained in:
David Michael 2018-01-07 11:44:30 -05:00
parent 4d5448fd40
commit 58cddda609
2 changed files with 28 additions and 0 deletions

View File

@ -0,0 +1,27 @@
From 9d291e5a9425e23dd90c6fd79081bafd5bcd4c32 Mon Sep 17 00:00:00 2001
From: David Michael <david.michael@coreos.com>
Date: Sun, 7 Jan 2018 11:05:06 -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.
---
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.14.3

View File

@ -33,6 +33,7 @@ CONFIG_CHECK="~KEXEC"
PATCHES=( PATCHES=(
"${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch "${FILESDIR}"/${PN}-2.0.4-disable-kexec-test.patch
"${FILESDIR}"/${PN}-2.0.4-out-of-source.patch "${FILESDIR}"/${PN}-2.0.4-out-of-source.patch
"${FILESDIR}"/${P}-arm64-no-PIC.patch
) )
pkg_setup() { pkg_setup() {