diff options
Diffstat (limited to 'meta/recipes-kernel/kexec/kexec-tools/0001-Disable-PIE-during-link.patch')
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0001-Disable-PIE-during-link.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-Disable-PIE-during-link.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-Disable-PIE-during-link.patch new file mode 100644 index 0000000000..3f2f85e337 --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools/0001-Disable-PIE-during-link.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From ea7be6d71b85880e8e8a2c8a4f49a696c5f31ae4 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Sat, 10 Jun 2017 11:18:49 -0700 | ||
4 | Subject: [PATCH] Disable PIE during link | ||
5 | |||
6 | We have explcitly disabled PIE during compile so we | ||
7 | just need to match it with linker flags | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | purgatory/Makefile | 2 +- | ||
14 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/purgatory/Makefile b/purgatory/Makefile | ||
17 | index 564bdb7..a08e41f 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 | |||
29 | -- | ||
30 | 2.13.1 | ||
31 | |||