summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc/elf-meta.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-core/glibc/glibc/elf-meta.patch')
-rw-r--r--meta/recipes-core/glibc/glibc/elf-meta.patch32
1 files changed, 32 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/elf-meta.patch b/meta/recipes-core/glibc/glibc/elf-meta.patch
new file mode 100644
index 0000000000..fab66d79c4
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/elf-meta.patch
@@ -0,0 +1,32 @@
1Upstream-Status: Pending
2Signed-off-by: Ross Burton <ross.burton@intel.com>
3
4From a495656665cd4a4f97744741a4741eafa621d65b Mon Sep 17 00:00:00 2001
5From: Ross Burton <ross.burton@intel.com>
6Date: Mon, 11 Jul 2016 16:57:38 +0100
7Subject: [PATCH] elf.h: add relocations for Imagination META
8
9Adding EM_METAG but not the relocations means the kernel doesn't compile as it
10guards its own declarations on the presence of EM_METAG.
11---
12 elf/elf.h | 4 ++++
13 1 file changed, 4 insertions(+)
14
15diff --git a/elf/elf.h b/elf/elf.h
16index b6112d9..69e85a7 100644
17--- a/elf/elf.h
18+++ b/elf/elf.h
19@@ -3677,6 +3677,10 @@ enum
20
21 #define R_TILEGX_NUM 130
22
23+/* Imagination META relocs */
24+#define R_METAG_ADDR32 2
25+#define R_METAG_NONE 3
26+
27 /* BPF specific declarations. */
28
29 #define R_BPF_NONE 0 /* No reloc */
30--
312.8.1
32