diff options
author | Khem Raj <raj.khem@gmail.com> | 2017-06-12 07:59:06 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-13 10:46:30 +0100 |
commit | 653299d8c31eac6147b8183d9ec7ef82b7202cab (patch) | |
tree | eaff453a226d2d97f67f0574268c9ab95dd7abe8 /meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Disable-PIC.patch | |
parent | 8ab1828f073b5eab606161681a5f260cc0e77bf1 (diff) | |
download | openembedded-core-contrib-653299d8c31eac6147b8183d9ec7ef82b7202cab.tar.gz |
kexec-tools: Pass -no-pie to linker
- This matches the linker flags to compiler flags in purgatory
- Compile arm64 without PIC
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Disable-PIC.patch')
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Disable-PIC.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Disable-PIC.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Disable-PIC.patch new file mode 100644 index 0000000000..84e94d7d93 --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools/0001-arm64-Disable-PIC.patch @@ -0,0 +1,31 @@ +From 3bb73e5e5649b455e15d5ca3a7ad1a90c4960972 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 10 Jun 2017 11:54:36 -0700 +Subject: [PATCH] arm64: Disable PIC + +Fix +| cc1: sorry, unimplemented: code model 'large' with -fPIC +| make: *** [Makefile:118: purgatory/arch/arm64/entry.o] Error 1 + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- +Upstream-Status: Pending + + 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.13.1 + |