summaryrefslogtreecommitdiffstats
path: root/meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2019-05-11 16:16:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-05-12 09:10:52 +0100
commit17ad93ee402f79607453fddaddcd17ae8b2e8d42 (patch)
tree3ecb4969687234f3958143fdf2baea9991442254 /meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch
parent94181dac072e8a688ef555036acffdf5dff9ef40 (diff)
downloadpoky-17ad93ee402f79607453fddaddcd17ae8b2e8d42.tar.gz
kexec-tools: refresh patches with devtool
* to make it easier to rebase Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch')
-rw-r--r--meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch b/meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch
new file mode 100644
index 0000000000..7a4b8548ca
--- /dev/null
+++ b/meta/recipes-kernel/kexec/kexec-tools/0005-Disable-PIE-during-link.patch
@@ -0,0 +1,28 @@
1From c54488ad5fd657e0f154d76d7456d9080be24836 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 10 Jun 2017 11:18:49 -0700
4Subject: [PATCH] Disable PIE during link
5
6We have explcitly disabled PIE during compile so we
7just need to match it with linker flags
8
9Upstream-Status: Pending
10
11Signed-off-by: Khem Raj <raj.khem@gmail.com>
12---
13 purgatory/Makefile | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/purgatory/Makefile b/purgatory/Makefile
17index 416e6b9..f00edb4 100644
18--- a/purgatory/Makefile
19+++ b/purgatory/Makefile
20@@ -59,7 +59,7 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \
21 -Iinclude \
22 -I$(shell $(CC) -print-file-name=include)
23 $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\
24- -Wl,--no-undefined -nostartfiles -nostdlib \
25+ -Wl,--no-undefined -no-pie -nostartfiles -nostdlib \
26 -nodefaultlibs -e purgatory_start -Wl,-r \
27 -Wl,-Map=$(PURGATORY_MAP)
28