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:13 +0100 |
| commit | a21942491407b5c7326a3a1a541bcbd54fab39dc (patch) | |
| tree | 79f88e2dc644ed32f4de2bc713411e2ff341ab21 /meta/recipes-core/glibc | |
| parent | ea439968b672900f6773f36c571938325844c652 (diff) | |
| download | poky-a21942491407b5c7326a3a1a541bcbd54fab39dc.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.
(From OE-Core rev: 61f73ae289bf8dfe72d5f4beaac966fb4ac8dc90)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc')
| -rw-r--r-- | meta/recipes-core/glibc/glibc/elf-meta.patch | 32 | ||||
| -rw-r--r-- | meta/recipes-core/glibc/glibc_2.24.bb | 1 |
2 files changed, 33 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 @@ | |||
| 1 | Upstream-Status: Pending | ||
| 2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
| 3 | |||
| 4 | From a495656665cd4a4f97744741a4741eafa621d65b Mon Sep 17 00:00:00 2001 | ||
| 5 | From: Ross Burton <ross.burton@intel.com> | ||
| 6 | Date: Mon, 11 Jul 2016 16:57:38 +0100 | ||
| 7 | Subject: [PATCH] elf.h: add relocations for Imagination META | ||
| 8 | |||
| 9 | Adding EM_METAG but not the relocations means the kernel doesn't compile as it | ||
| 10 | guards its own declarations on the presence of EM_METAG. | ||
| 11 | --- | ||
| 12 | elf/elf.h | 4 ++++ | ||
| 13 | 1 file changed, 4 insertions(+) | ||
| 14 | |||
| 15 | diff --git a/elf/elf.h b/elf/elf.h | ||
| 16 | index 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 | -- | ||
| 31 | 2.8.1 | ||
| 32 | |||
diff --git a/meta/recipes-core/glibc/glibc_2.24.bb b/meta/recipes-core/glibc/glibc_2.24.bb index f0c6a0366d..456f206f18 100644 --- a/meta/recipes-core/glibc/glibc_2.24.bb +++ b/meta/recipes-core/glibc/glibc_2.24.bb | |||
| @@ -37,6 +37,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | |||
| 37 | file://0023-eglibc-Install-PIC-archives.patch \ | 37 | file://0023-eglibc-Install-PIC-archives.patch \ |
| 38 | file://0024-eglibc-Forward-port-cross-locale-generation-support.patch \ | 38 | file://0024-eglibc-Forward-port-cross-locale-generation-support.patch \ |
| 39 | file://0025-Define-DUMMY_LOCALE_T-if-not-defined.patch \ | 39 | file://0025-Define-DUMMY_LOCALE_T-if-not-defined.patch \ |
| 40 | file://elf-meta.patch \ | ||
| 40 | " | 41 | " |
| 41 | 42 | ||
| 42 | SRC_URI += "\ | 43 | SRC_URI += "\ |
