diff options
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools/0001-purgatory-Pass-r-directly-to-linker.patch | 32 | ||||
-rw-r--r-- | meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb | 1 |
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-kernel/kexec/kexec-tools/0001-purgatory-Pass-r-directly-to-linker.patch b/meta/recipes-kernel/kexec/kexec-tools/0001-purgatory-Pass-r-directly-to-linker.patch new file mode 100644 index 0000000000..bfd077daf0 --- /dev/null +++ b/meta/recipes-kernel/kexec/kexec-tools/0001-purgatory-Pass-r-directly-to-linker.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | From a1135b3170963ba956f2364c1283864c35541295 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 7 Sep 2015 07:59:45 +0000 | ||
4 | Subject: [PATCH] purgatory: Pass -r directly to linker | ||
5 | |||
6 | This helps compiling with clang since -r is not a known option for clang | ||
7 | where as gcc knows how to deal with it and passes it down to linker | ||
8 | unfiltered | ||
9 | |||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | Upstream-Status: Pending | ||
13 | |||
14 | purgatory/Makefile | 2 +- | ||
15 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
16 | |||
17 | diff --git a/purgatory/Makefile b/purgatory/Makefile | ||
18 | index 2b5c061..b251353 100644 | ||
19 | --- a/purgatory/Makefile | ||
20 | +++ b/purgatory/Makefile | ||
21 | @@ -61,7 +61,7 @@ $(PURGATORY): CPPFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS) \ | ||
22 | -I$(shell $(CC) -print-file-name=include) | ||
23 | $(PURGATORY): LDFLAGS=$($(ARCH)_PURGATORY_EXTRA_CFLAGS)\ | ||
24 | -Wl,--no-undefined -nostartfiles -nostdlib \ | ||
25 | - -nodefaultlibs -e purgatory_start -r \ | ||
26 | + -nodefaultlibs -e purgatory_start -Wl,-r \ | ||
27 | -Wl,-Map=$(PURGATORY_MAP) | ||
28 | |||
29 | $(PURGATORY): $(PURGATORY_OBJS) | ||
30 | -- | ||
31 | 2.5.1 | ||
32 | |||
diff --git a/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb b/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb index dd7bba7031..ffdb983a41 100644 --- a/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb +++ b/meta/recipes-kernel/kexec/kexec-tools_2.0.10.bb | |||
@@ -6,6 +6,7 @@ SRC_URI += "file://kexec-tools-Refine-kdump-device_tree-sort.patch \ | |||
6 | file://kexec-aarch64.patch \ | 6 | file://kexec-aarch64.patch \ |
7 | file://kexec-x32.patch \ | 7 | file://kexec-x32.patch \ |
8 | file://0002-powerpc-change-the-memory-size-limit.patch \ | 8 | file://0002-powerpc-change-the-memory-size-limit.patch \ |
9 | file://0001-purgatory-Pass-r-directly-to-linker.patch \ | ||
9 | " | 10 | " |
10 | 11 | ||
11 | SRC_URI[md5sum] = "6cb4d22bcec71b6e070aa8e9d990a5e6" | 12 | SRC_URI[md5sum] = "6cb4d22bcec71b6e070aa8e9d990a5e6" |