aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glibc/glibc/elf-meta.patch
blob: fab66d79c45eeadeb55f51192f7cade63f5ae681 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Upstream-Status: Pending
Signed-off-by: Ross Burton <ross.burton@intel.com>

From a495656665cd4a4f97744741a4741eafa621d65b Mon Sep 17 00:00:00 2001
From: Ross Burton <ross.burton@intel.com>
Date: Mon, 11 Jul 2016 16:57:38 +0100
Subject: [PATCH] elf.h: add relocations for Imagination META

Adding EM_METAG but not the relocations means the kernel doesn't compile as it
guards its own declarations on the presence of EM_METAG.
---
 elf/elf.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/elf/elf.h b/elf/elf.h
index b6112d9..69e85a7 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -3677,6 +3677,10 @@ enum
 
 #define R_TILEGX_NUM		130
 
+/* Imagination META relocs */
+#define R_METAG_ADDR32		2
+#define R_METAG_NONE		3
+
 /* BPF specific declarations.  */
 
 #define R_BPF_NONE		0	/* No reloc */
-- 
2.8.1