From 31aa5145244c0a4b4f3247c9e75ba37ea1e07c65 Mon Sep 17 00:00:00 2001 From: Adrian Calianu Date: Thu, 19 Nov 2015 15:47:14 +0100 Subject: glibc: fix the big endian loader name on AArch64 Apply a patch backported from glibc 2.22 (master) to fix the loader name on AArch64. (From OE-Core rev: 513e52670ea52e8143f46777accf441bb5c299fa) Signed-off-by: Adrian Calianu Signed-off-by: Joshua Lock Signed-off-by: Richard Purdie --- .../AArch64-Fix-the-big-endian-loader-name.patch | 49 ++++++++++++++++++++++ meta/recipes-core/glibc/glibc_2.21.bb | 1 + 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-core/glibc/glibc/AArch64-Fix-the-big-endian-loader-name.patch diff --git a/meta/recipes-core/glibc/glibc/AArch64-Fix-the-big-endian-loader-name.patch b/meta/recipes-core/glibc/glibc/AArch64-Fix-the-big-endian-loader-name.patch new file mode 100644 index 0000000000..fd2bd8e846 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/AArch64-Fix-the-big-endian-loader-name.patch @@ -0,0 +1,49 @@ +[AArch64] Fix the big endian loader name + +Signed-off-by: Szabolcs Nagy + +The patch was imported from the glibc's official git server +(https://sourceware.org/git/?p=glibc.git) as of commit id +44cb254f9a024db33ba549e59dc9d90355b797c9. + +Fixed conflicts raised on glibc 2.21. + +Upstream-Status: Backport [glibc 2.22] + +Signed-off-by: Adrian Calianu +--- + ChangeLog | 5 +++++ + config.h.in | 3 +++ + 2 files changed, 8 insertions(+) + +diff --git a/ChangeLog b/ChangeLog +index dc1ed1b..503ad41 100644 +--- a/ChangeLog ++++ b/ChangeLog +@@ -56278,4 +56278,9 @@ + added check. Only act on the data if no current modification + happened. + ++2015-05-01 Szabolcs Nagy ++ ++ * config.h.in (HAVE_AARCH64_BE): Add. ++ ++ + See ChangeLog.17 for earlier changes. +diff --git a/config.h.in b/config.h.in +index 695ca35..85c1761 100644 +--- a/config.h.in ++++ b/config.h.in +@@ -114,6 +114,9 @@ + include/libc-symbols.h that avoid PLT slots in the shared objects. */ + #undef NO_HIDDEN + ++/* AArch64 big endian ABI */ ++#undef HAVE_AARCH64_BE ++ + + /* Defined to some form of __attribute__ ((...)) if the compiler supports + a different, more efficient calling convention. */ +-- +1.9.1 + diff --git a/meta/recipes-core/glibc/glibc_2.21.bb b/meta/recipes-core/glibc/glibc_2.21.bb index a0b2f2dee8..3bba7346f9 100644 --- a/meta/recipes-core/glibc/glibc_2.21.bb +++ b/meta/recipes-core/glibc/glibc_2.21.bb @@ -30,6 +30,7 @@ SRC_URI = "git://sourceware.org/git/glibc.git;branch=${BRANCH} \ file://Fix-__memcpy_chk-on-non-SSE2-CPUs.patch \ ${EGLIBCPATCHES} \ ${CVEPATCHES} \ + file://AArch64-Fix-the-big-endian-loader-name.patch \ " EGLIBCPATCHES = "\ file://timezone-re-written-tzselect-as-posix-sh.patch \ -- cgit v1.2.3-54-g00ecf