elf.h: add relocations for Imagination META
Commit Message
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(+)
Comments
On 07/12/2016 04:15 PM, Ross Burton wrote:
> 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.
There's already a thread for this change:
<https://sourceware.org/ml/libc-alpha/2016-07/msg00331.html>
We are currently blocked on having an authoritative source for the new
constants. It would be great if you could help out there.
Thanks,
Florian
On Wed, Jul 13, 2016 at 1:36 PM, Florian Weimer <fweimer@redhat.com> wrote:
> On 07/12/2016 04:15 PM, Ross Burton wrote:
>>
>> 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.
>
>
> There's already a thread for this change:
>
> <https://sourceware.org/ml/libc-alpha/2016-07/msg00331.html>
>
> We are currently blocked on having an authoritative source for the new
> constants. It would be great if you could help out there.
binutils can be considered the authoritative source for these
constants (and the patch matches the values there).
@@ -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]
@@ -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 */