diff options
author | Ross Burton <ross.burton@intel.com> | 2016-07-11 22:03:38 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-07-12 23:10:02 +0100 |
commit | 61f73ae289bf8dfe72d5f4beaac966fb4ac8dc90 (patch) | |
tree | 3e06e071723ed38fea10d464033b2b150049322c /meta/recipes-core/glibc/glibc | |
parent | 78ab1e7cdedc6a73395af5d053b49cf081416732 (diff) | |
download | openembedded-core-contrib-61f73ae289bf8dfe72d5f4beaac966fb4ac8dc90.tar.gz |
glibc: add more Imagination Meta relocation to elf.h
glibc master added the EM_METAG tag but didn't add the relocation defines.
However the kernel tooling only checks for EM_METAG when defining its own values
so scripts/recordmcount ends up using R_META_* symbols without their definition.
Whilst the kernel can and should be fixed, this breaks all users of recordmcount
so patch elf.h to add the values.
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/recipes-core/glibc/glibc')
-rw-r--r-- | meta/recipes-core/glibc/glibc/elf-meta.patch | 32 |
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 @@ +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 + |