This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] elf.h: add relocations for Imagination META
- From: Ross Burton <ross dot burton at intel dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 12 Jul 2016 15:15:39 +0100
- Subject: [PATCH] elf.h: add relocations for Imagination META
- Authentication-results: sourceware.org; auth=none
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.
---
ChangeLog | 5 +++++
elf/elf.h | 4 ++++
2 files changed, 9 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index af245d9..ba45b1b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-12 Ross Burton <ross.burton@intel.com>
+
+ * elf/elf.h (R_METAG_NONE, R_METAG_NONE): Add Imagination META
+ relocations.
+
2016-07-12 H.J. Lu <hongjiu.lu@intel.com>
[BZ #20309]
diff --git a/elf/elf.h b/elf/elf.h
index b6112d9..1034812 100644
--- a/elf/elf.h
+++ b/elf/elf.h
@@ -3682,6 +3682,10 @@ enum
#define R_BPF_NONE 0 /* No reloc */
#define R_BPF_MAP_FD 1 /* Map fd to pointer */
+/* Imagination META relocations */
+#define R_METAG_ADDR32 2
+#define R_METAG_NONE 3
+
__END_DECLS
#endif /* elf.h */
--
2.8.1