summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2024-02-01 14:24:00 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-02-06 10:32:19 +0000
commit6d503a7f39831107a6578ba6d5a23291a3d9e913 (patch)
treeb1cb13e63bb2d2d4391a440528c10a7b3985fbf6 /meta/recipes-core
parentf4fc8e62321acd7c052a6e85c68a6bc97cfb69e7 (diff)
downloadpoky-6d503a7f39831107a6578ba6d5a23291a3d9e913.tar.gz
glibc: Upgrade to 2.39
License-Update: Relicenses the IBM portions of resolv/base64.c and resolv/res_debug.c to a new license that does not have use-limited patent language [1] Upgrade localdef to get glibc 2.39 build fixes Details of release [2] Add fix for mips clone3 crash [1] https://sourceware.org/git/?p=glibc.git;a=commit;h=ae49a7b29acc184b03c2a6bd6ac01b5e08efd54f [2] https://sourceware.org/glibc/wiki/Release/2.39 (From OE-Core rev: 41ee98ea7e029515a94835952b8563097150f456) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/glibc/cross-localedef-native_2.39.bb (renamed from meta/recipes-core/glibc/cross-localedef-native_2.38.bb)2
-rw-r--r--meta/recipes-core/glibc/glibc-common.inc4
-rw-r--r--meta/recipes-core/glibc/glibc-locale_2.39.bb (renamed from meta/recipes-core/glibc/glibc-locale_2.38.bb)0
-rw-r--r--meta/recipes-core/glibc/glibc-mtrace_2.39.bb (renamed from meta/recipes-core/glibc/glibc-mtrace_2.38.bb)0
-rw-r--r--meta/recipes-core/glibc/glibc-scripts_2.39.bb (renamed from meta/recipes-core/glibc/glibc-scripts_2.38.bb)0
-rw-r--r--meta/recipes-core/glibc/glibc-testsuite_2.39.bb (renamed from meta/recipes-core/glibc/glibc-testsuite_2.38.bb)0
-rw-r--r--meta/recipes-core/glibc/glibc-version.inc8
-rw-r--r--meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb (renamed from meta/recipes-core/glibc/glibc-y2038-tests_2.38.bb)0
-rw-r--r--meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch8
-rw-r--r--meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch4
-rw-r--r--meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch22
-rw-r--r--meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch4
-rw-r--r--meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch10
-rw-r--r--meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch4
-rw-r--r--meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch4
-rw-r--r--meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch4
-rw-r--r--meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch46
-rw-r--r--meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch4
-rw-r--r--meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch4
-rw-r--r--meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch6
-rw-r--r--meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch2
-rw-r--r--meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch6
-rw-r--r--meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch6
-rw-r--r--meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch5
-rw-r--r--meta/recipes-core/glibc/glibc/0024-mips-FIx-clone3-implementation-BZ-31325.patch83
-rw-r--r--meta/recipes-core/glibc/glibc_2.39.bb (renamed from meta/recipes-core/glibc/glibc_2.38.bb)1
33 files changed, 165 insertions, 86 deletions
diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.38.bb b/meta/recipes-core/glibc/cross-localedef-native_2.39.bb
index e7261a644b..fed6e4ea97 100644
--- a/meta/recipes-core/glibc/cross-localedef-native_2.38.bb
+++ b/meta/recipes-core/glibc/cross-localedef-native_2.39.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
3SECTION = "libs" 3SECTION = "libs"
4LICENSE = "LGPL-2.1-only" 4LICENSE = "LGPL-2.1-only"
5 5
6LIC_FILES_CHKSUM = "file://LICENSES;md5=1541fd8f5e8f1579512bf05f533371ba \ 6LIC_FILES_CHKSUM = "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \
7 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 7 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
8 file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ 8 file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \
9 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" 9 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
diff --git a/meta/recipes-core/glibc/glibc-common.inc b/meta/recipes-core/glibc/glibc-common.inc
index be33c29857..b9516e77f0 100644
--- a/meta/recipes-core/glibc/glibc-common.inc
+++ b/meta/recipes-core/glibc/glibc-common.inc
@@ -4,7 +4,7 @@ HOMEPAGE = "http://www.gnu.org/software/libc/libc.html"
4SECTION = "libs" 4SECTION = "libs"
5LICENSE = "GPL-2.0-only & LGPL-2.1-only" 5LICENSE = "GPL-2.0-only & LGPL-2.1-only"
6 6
7LIC_FILES_CHKSUM ?= "file://LICENSES;md5=1541fd8f5e8f1579512bf05f533371ba \ 7LIC_FILES_CHKSUM ?= "file://LICENSES;md5=f77e878d320e99e94ae9a4aea7f491d1 \
8 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ 8 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
9 file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \ 9 file://posix/rxspencer/COPYRIGHT;md5=dc5485bb394a13b2332ec1c785f5d83a \
10 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c" 10 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c"
@@ -22,4 +22,4 @@ ARM_INSTRUCTION_SET:armv6 = "arm"
22# 22#
23COMPATIBLE_HOST:libc-musl:class-target = "null" 23COMPATIBLE_HOST:libc-musl:class-target = "null"
24 24
25PV = "2.38" 25PV = "2.39+git"
diff --git a/meta/recipes-core/glibc/glibc-locale_2.38.bb b/meta/recipes-core/glibc/glibc-locale_2.39.bb
index f7702e0358..f7702e0358 100644
--- a/meta/recipes-core/glibc/glibc-locale_2.38.bb
+++ b/meta/recipes-core/glibc/glibc-locale_2.39.bb
diff --git a/meta/recipes-core/glibc/glibc-mtrace_2.38.bb b/meta/recipes-core/glibc/glibc-mtrace_2.39.bb
index 0b69bad46a..0b69bad46a 100644
--- a/meta/recipes-core/glibc/glibc-mtrace_2.38.bb
+++ b/meta/recipes-core/glibc/glibc-mtrace_2.39.bb
diff --git a/meta/recipes-core/glibc/glibc-scripts_2.38.bb b/meta/recipes-core/glibc/glibc-scripts_2.39.bb
index 5a89bd8022..5a89bd8022 100644
--- a/meta/recipes-core/glibc/glibc-scripts_2.38.bb
+++ b/meta/recipes-core/glibc/glibc-scripts_2.39.bb
diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.38.bb b/meta/recipes-core/glibc/glibc-testsuite_2.39.bb
index 2e076f4b0f..2e076f4b0f 100644
--- a/meta/recipes-core/glibc/glibc-testsuite_2.38.bb
+++ b/meta/recipes-core/glibc/glibc-testsuite_2.39.bb
diff --git a/meta/recipes-core/glibc/glibc-version.inc b/meta/recipes-core/glibc/glibc-version.inc
index 5f24a10826..848648b599 100644
--- a/meta/recipes-core/glibc/glibc-version.inc
+++ b/meta/recipes-core/glibc/glibc-version.inc
@@ -1,7 +1,7 @@
1SRCBRANCH ?= "release/2.38/master" 1SRCBRANCH ?= "release/2.39/master"
2PV = "2.38+git" 2PV = "2.39+git"
3SRCREV_glibc ?= "1e04dcec491bd8f48b5b74ce3e8414132578a645" 3SRCREV_glibc ?= "6d1e3fb07b45e2e31e469b16cf21b24bccf8914c"
4SRCREV_localedef ?= "e0eca29583b9e0f62645c4316ced93cf4e4e26e1" 4SRCREV_localedef ?= "fab74f31b3811df543e24b6de47efdf45b538abc"
5 5
6GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https" 6GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git;protocol=https"
7 7
diff --git a/meta/recipes-core/glibc/glibc-y2038-tests_2.38.bb b/meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb
index be49ca4cb7..be49ca4cb7 100644
--- a/meta/recipes-core/glibc/glibc-y2038-tests_2.38.bb
+++ b/meta/recipes-core/glibc/glibc-y2038-tests_2.39.bb
diff --git a/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch b/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch
index eb3da94b8b..4f919078dd 100644
--- a/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch
+++ b/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-from-util-linux.patch
@@ -1,4 +1,4 @@
1From 7c06ca59b47ce06f785b9fce7b9e9d675d5b6e10 Mon Sep 17 00:00:00 2001 1From 544d23dea91b2be793c805b9e4bce8cd1d28121f Mon Sep 17 00:00:00 2001
2From: Jason Wessel <jason.wessel@windriver.com> 2From: Jason Wessel <jason.wessel@windriver.com>
3Date: Sat, 7 Dec 2019 09:59:22 -0800 3Date: Sat, 7 Dec 2019 09:59:22 -0800
4Subject: [PATCH] localedef: Add hardlink resolver from util-linux 4Subject: [PATCH] localedef: Add hardlink resolver from util-linux
diff --git a/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch b/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch
index 2dc4634dd5..7c8fa973ec 100644
--- a/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch
+++ b/meta/recipes-core/glibc/glibc/0002-localedef-fix-ups-hardlink-to-make-it-compile.patch
@@ -1,4 +1,4 @@
1From 9ff5200eb16e9c89ca8da89d7e07975d082a13b0 Mon Sep 17 00:00:00 2001 1From ebb1e37285ab541135005cfe945b7a58e4b95040 Mon Sep 17 00:00:00 2001
2From: Jason Wessel <jason.wessel@windriver.com> 2From: Jason Wessel <jason.wessel@windriver.com>
3Date: Sat, 7 Dec 2019 10:01:37 -0800 3Date: Sat, 7 Dec 2019 10:01:37 -0800
4Subject: [PATCH] localedef: fix-ups hardlink to make it compile 4Subject: [PATCH] localedef: fix-ups hardlink to make it compile
diff --git a/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch b/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch
index f2602d0e56..bd4b5aa98b 100644
--- a/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch
+++ b/meta/recipes-core/glibc/glibc/0003-nativesdk-glibc-Look-for-host-system-ld.so.cache-as-.patch
@@ -1,4 +1,4 @@
1From 0d996c5600603a67f0265e870511cdd18dbaa8a6 Mon Sep 17 00:00:00 2001 1From 9770abfda8e85fe027f95871bc03450d05b1e2c8 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 01:48:24 +0000 3Date: Wed, 18 Mar 2015 01:48:24 +0000
4Subject: [PATCH] nativesdk-glibc: Look for host system ld.so.cache as well 4Subject: [PATCH] nativesdk-glibc: Look for host system ld.so.cache as well
@@ -30,10 +30,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
30 1 file changed, 8 insertions(+), 8 deletions(-) 30 1 file changed, 8 insertions(+), 8 deletions(-)
31 31
32diff --git a/elf/dl-load.c b/elf/dl-load.c 32diff --git a/elf/dl-load.c b/elf/dl-load.c
33index 9a87fda9c9..0a6fa9b8f0 100644 33index ce8fdea302..1f502eb026 100644
34--- a/elf/dl-load.c 34--- a/elf/dl-load.c
35+++ b/elf/dl-load.c 35+++ b/elf/dl-load.c
36@@ -2102,6 +2102,14 @@ _dl_map_object (struct link_map *loader, const char *name, 36@@ -2105,6 +2105,14 @@ _dl_map_object (struct link_map *loader, const char *name,
37 } 37 }
38 } 38 }
39 39
@@ -48,7 +48,7 @@ index 9a87fda9c9..0a6fa9b8f0 100644
48 #ifdef USE_LDCONFIG 48 #ifdef USE_LDCONFIG
49 if (fd == -1 49 if (fd == -1
50 && (__glibc_likely ((mode & __RTLD_SECURE) == 0) 50 && (__glibc_likely ((mode & __RTLD_SECURE) == 0)
51@@ -2160,14 +2168,6 @@ _dl_map_object (struct link_map *loader, const char *name, 51@@ -2163,14 +2171,6 @@ _dl_map_object (struct link_map *loader, const char *name,
52 } 52 }
53 #endif 53 #endif
54 54
diff --git a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch
index 974312367e..19fc561a06 100644
--- a/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch
+++ b/meta/recipes-core/glibc/glibc/0004-nativesdk-glibc-Fix-buffer-overrun-with-a-relocated-.patch
@@ -1,4 +1,4 @@
1From c3492719b2deaf3339eefb1ab30f4337e592ed80 Mon Sep 17 00:00:00 2001 1From 587b92ff99e6d8f59c461ee8beecae39d8818f7e Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 01:50:00 +0000 3Date: Wed, 18 Mar 2015 01:50:00 +0000
4Subject: [PATCH] nativesdk-glibc: Fix buffer overrun with a relocated SDK 4Subject: [PATCH] nativesdk-glibc: Fix buffer overrun with a relocated SDK
@@ -21,7 +21,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
21 1 file changed, 12 insertions(+) 21 1 file changed, 12 insertions(+)
22 22
23diff --git a/elf/dl-load.c b/elf/dl-load.c 23diff --git a/elf/dl-load.c b/elf/dl-load.c
24index 0a6fa9b8f0..3a23dc618c 100644 24index 1f502eb026..c4a543fb00 100644
25--- a/elf/dl-load.c 25--- a/elf/dl-load.c
26+++ b/elf/dl-load.c 26+++ b/elf/dl-load.c
27@@ -1802,7 +1802,19 @@ open_path (const char *name, size_t namelen, int mode, 27@@ -1802,7 +1802,19 @@ open_path (const char *name, size_t namelen, int mode,
diff --git a/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch b/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
index 086e0c6f14..55892417f4 100644
--- a/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
+++ b/meta/recipes-core/glibc/glibc/0005-nativesdk-glibc-Raise-the-size-of-arrays-containing-.patch
@@ -1,4 +1,4 @@
1From e874dacbfdb06520240887e9077c58006ee33f87 Mon Sep 17 00:00:00 2001 1From 49caf586b80ba030a0ee4af9f6128ff2979ea636 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 01:51:38 +0000 3Date: Wed, 18 Mar 2015 01:51:38 +0000
4Subject: [PATCH] nativesdk-glibc: Raise the size of arrays containing dl paths 4Subject: [PATCH] nativesdk-glibc: Raise the size of arrays containing dl paths
@@ -26,7 +26,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
26 8 files changed, 15 insertions(+), 10 deletions(-) 26 8 files changed, 15 insertions(+), 10 deletions(-)
27 27
28diff --git a/elf/dl-cache.c b/elf/dl-cache.c 28diff --git a/elf/dl-cache.c b/elf/dl-cache.c
29index 804bf23222..d99501c389 100644 29index 85f3f179ed..cc55887c56 100644
30--- a/elf/dl-cache.c 30--- a/elf/dl-cache.c
31+++ b/elf/dl-cache.c 31+++ b/elf/dl-cache.c
32@@ -352,6 +352,10 @@ search_cache (const char *string_table, uint32_t string_table_size, 32@@ -352,6 +352,10 @@ search_cache (const char *string_table, uint32_t string_table_size,
@@ -41,7 +41,7 @@ index 804bf23222..d99501c389 100644
41 _dl_cache_libcmp (const char *p1, const char *p2) 41 _dl_cache_libcmp (const char *p1, const char *p2)
42 { 42 {
43diff --git a/elf/dl-load.c b/elf/dl-load.c 43diff --git a/elf/dl-load.c b/elf/dl-load.c
44index 3a23dc618c..563e703096 100644 44index c4a543fb00..27fb70f09b 100644
45--- a/elf/dl-load.c 45--- a/elf/dl-load.c
46+++ b/elf/dl-load.c 46+++ b/elf/dl-load.c
47@@ -117,8 +117,8 @@ enum { ncapstr = 1, max_capstrlen = 0 }; 47@@ -117,8 +117,8 @@ enum { ncapstr = 1, max_capstrlen = 0 };
@@ -56,7 +56,7 @@ index 3a23dc618c..563e703096 100644
56 SYSTEM_DIRS_LEN 56 SYSTEM_DIRS_LEN
57 }; 57 };
58diff --git a/elf/dl-usage.c b/elf/dl-usage.c 58diff --git a/elf/dl-usage.c b/elf/dl-usage.c
59index 98f0b0d027..ab4f76e1fe 100644 59index 5baac4ba8e..60097ad0e2 100644
60--- a/elf/dl-usage.c 60--- a/elf/dl-usage.c
61+++ b/elf/dl-usage.c 61+++ b/elf/dl-usage.c
62@@ -25,6 +25,8 @@ 62@@ -25,6 +25,8 @@
@@ -68,7 +68,7 @@ index 98f0b0d027..ab4f76e1fe 100644
68 void 68 void
69 _dl_usage (const char *argv0, const char *wrong_option) 69 _dl_usage (const char *argv0, const char *wrong_option)
70 { 70 {
71@@ -184,7 +186,7 @@ setting environment variables (which would be inherited by subprocesses).\n\ 71@@ -185,7 +187,7 @@ setting environment variables (which would be inherited by subprocesses).\n\
72 --list list all dependencies and how they are resolved\n\ 72 --list list all dependencies and how they are resolved\n\
73 --verify verify that given object really is a dynamically linked\n\ 73 --verify verify that given object really is a dynamically linked\n\
74 object we can handle\n\ 74 object we can handle\n\
@@ -77,7 +77,7 @@ index 98f0b0d027..ab4f76e1fe 100644
77 --library-path PATH use given PATH instead of content of the environment\n\ 77 --library-path PATH use given PATH instead of content of the environment\n\
78 variable LD_LIBRARY_PATH\n\ 78 variable LD_LIBRARY_PATH\n\
79 --glibc-hwcaps-prepend LIST\n\ 79 --glibc-hwcaps-prepend LIST\n\
80@@ -203,7 +205,7 @@ setting environment variables (which would be inherited by subprocesses).\n\ 80@@ -204,7 +206,7 @@ setting environment variables (which would be inherited by subprocesses).\n\
81 \n\ 81 \n\
82 This program interpreter self-identifies as: " RTLD "\n\ 82 This program interpreter self-identifies as: " RTLD "\n\
83 ", 83 ",
@@ -87,7 +87,7 @@ index 98f0b0d027..ab4f76e1fe 100644
87 print_hwcaps_subdirectories (state); 87 print_hwcaps_subdirectories (state);
88 _exit (EXIT_SUCCESS); 88 _exit (EXIT_SUCCESS);
89diff --git a/elf/interp.c b/elf/interp.c 89diff --git a/elf/interp.c b/elf/interp.c
90index ae21ae0cb3..b168e6da66 100644 90index 8b705824bf..7d094829f3 100644
91--- a/elf/interp.c 91--- a/elf/interp.c
92+++ b/elf/interp.c 92+++ b/elf/interp.c
93@@ -18,5 +18,5 @@ 93@@ -18,5 +18,5 @@
@@ -98,7 +98,7 @@ index ae21ae0cb3..b168e6da66 100644
98+const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp"))) 98+const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp")))
99 = RUNTIME_LINKER; 99 = RUNTIME_LINKER;
100diff --git a/elf/ldconfig.c b/elf/ldconfig.c 100diff --git a/elf/ldconfig.c b/elf/ldconfig.c
101index d26eef1fb4..e5af6e5c01 100644 101index b64c54b53e..caf7001745 100644
102--- a/elf/ldconfig.c 102--- a/elf/ldconfig.c
103+++ b/elf/ldconfig.c 103+++ b/elf/ldconfig.c
104@@ -150,6 +150,8 @@ static struct argp argp = 104@@ -150,6 +150,8 @@ static struct argp argp =
@@ -111,7 +111,7 @@ index d26eef1fb4..e5af6e5c01 100644
111 static error_t 111 static error_t
112 parse_opt (int key, char *arg, struct argp_state *state) 112 parse_opt (int key, char *arg, struct argp_state *state)
113diff --git a/elf/rtld.c b/elf/rtld.c 113diff --git a/elf/rtld.c b/elf/rtld.c
114index a91e2a4471..56d816d4d9 100644 114index 4f494b792e..d1c1252188 100644
115--- a/elf/rtld.c 115--- a/elf/rtld.c
116+++ b/elf/rtld.c 116+++ b/elf/rtld.c
117@@ -190,6 +190,7 @@ dso_name_valid_for_suid (const char *p) 117@@ -190,6 +190,7 @@ dso_name_valid_for_suid (const char *p)
@@ -123,7 +123,7 @@ index a91e2a4471..56d816d4d9 100644
123 static void 123 static void
124 audit_list_init (struct audit_list *list) 124 audit_list_init (struct audit_list *list)
125diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c 125diff --git a/iconv/gconv_conf.c b/iconv/gconv_conf.c
126index ee9e97e1bd..01a99382d0 100644 126index 1063c31a2b..57fa832e52 100644
127--- a/iconv/gconv_conf.c 127--- a/iconv/gconv_conf.c
128+++ b/iconv/gconv_conf.c 128+++ b/iconv/gconv_conf.c
129@@ -35,7 +35,7 @@ 129@@ -35,7 +35,7 @@
@@ -136,7 +136,7 @@ index ee9e97e1bd..01a99382d0 100644
136 /* Type to represent search path. */ 136 /* Type to represent search path. */
137 struct path_elem 137 struct path_elem
138diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h 138diff --git a/sysdeps/generic/dl-cache.h b/sysdeps/generic/dl-cache.h
139index bd39ff7fb7..38f9e2ad57 100644 139index 919e49ffc8..cd3f8ba94b 100644
140--- a/sysdeps/generic/dl-cache.h 140--- a/sysdeps/generic/dl-cache.h
141+++ b/sysdeps/generic/dl-cache.h 141+++ b/sysdeps/generic/dl-cache.h
142@@ -34,10 +34,6 @@ 142@@ -34,10 +34,6 @@
diff --git a/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch b/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch
index 421afdca1c..56eaaed4b7 100644
--- a/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch
+++ b/meta/recipes-core/glibc/glibc/0006-nativesdk-glibc-Allow-64-bit-atomics-for-x86.patch
@@ -1,4 +1,4 @@
1From 76eaf7340a7f9063ab1ad2d7c6c0e205f22f544c Mon Sep 17 00:00:00 2001 1From 3a94365c730d174a3c30c6d9282e6ca12d9ad091 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 31 Dec 2015 14:35:35 -0800 3Date: Thu, 31 Dec 2015 14:35:35 -0800
4Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 4Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 1 file changed, 1 insertion(+), 6 deletions(-) 17 1 file changed, 1 insertion(+), 6 deletions(-)
18 18
19diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h 19diff --git a/sysdeps/x86/atomic-machine.h b/sysdeps/x86/atomic-machine.h
20index 95663099e4..4d81efc51a 100644 20index cfd395087b..28a937c468 100644
21--- a/sysdeps/x86/atomic-machine.h 21--- a/sysdeps/x86/atomic-machine.h
22+++ b/sysdeps/x86/atomic-machine.h 22+++ b/sysdeps/x86/atomic-machine.h
23@@ -26,19 +26,14 @@ 23@@ -26,19 +26,14 @@
diff --git a/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch b/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch
index 64243b1098..54c085a714 100644
--- a/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch
+++ b/meta/recipes-core/glibc/glibc/0007-nativesdk-glibc-Make-relocatable-install-for-locales.patch
@@ -1,4 +1,4 @@
1From ef8bb46455d602cb00caf59b2044a9a23b240cc2 Mon Sep 17 00:00:00 2001 1From 296bdde0683aa55cdea0fd0cab05ff8fbc462b17 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 3 Aug 2018 09:55:12 -0700 3Date: Fri, 3 Aug 2018 09:55:12 -0700
4Subject: [PATCH] nativesdk-glibc: Make relocatable install for locales 4Subject: [PATCH] nativesdk-glibc: Make relocatable install for locales
@@ -19,7 +19,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 4 files changed, 8 insertions(+), 7 deletions(-) 19 4 files changed, 8 insertions(+), 7 deletions(-)
20 20
21diff --git a/locale/findlocale.c b/locale/findlocale.c 21diff --git a/locale/findlocale.c b/locale/findlocale.c
22index 1b7034348b..939d4fd613 100644 22index 8d6e4e33e3..bfe74f241d 100644
23--- a/locale/findlocale.c 23--- a/locale/findlocale.c
24+++ b/locale/findlocale.c 24+++ b/locale/findlocale.c
25@@ -55,7 +55,7 @@ struct __locale_data *const _nl_C[] attribute_hidden = 25@@ -55,7 +55,7 @@ struct __locale_data *const _nl_C[] attribute_hidden =
@@ -41,7 +41,7 @@ index 1b7034348b..939d4fd613 100644
41 else 41 else
42 /* We really have to load some data. First see whether the name is 42 /* We really have to load some data. First see whether the name is
43diff --git a/locale/loadarchive.c b/locale/loadarchive.c 43diff --git a/locale/loadarchive.c b/locale/loadarchive.c
44index 5b857d5d24..e642912e2a 100644 44index 452e3eb6e3..c7467aec42 100644
45--- a/locale/loadarchive.c 45--- a/locale/loadarchive.c
46+++ b/locale/loadarchive.c 46+++ b/locale/loadarchive.c
47@@ -42,7 +42,7 @@ 47@@ -42,7 +42,7 @@
@@ -54,7 +54,7 @@ index 5b857d5d24..e642912e2a 100644
54 /* Size of initial mapping window, optimal if large enough to 54 /* Size of initial mapping window, optimal if large enough to
55 cover the header plus the initial locale. */ 55 cover the header plus the initial locale. */
56diff --git a/locale/localeinfo.h b/locale/localeinfo.h 56diff --git a/locale/localeinfo.h b/locale/localeinfo.h
57index 8bbf281427..7a930079a5 100644 57index ed698faef1..f7efc288a5 100644
58--- a/locale/localeinfo.h 58--- a/locale/localeinfo.h
59+++ b/locale/localeinfo.h 59+++ b/locale/localeinfo.h
60@@ -347,7 +347,7 @@ _nl_lookup_word (locale_t l, int category, int item) 60@@ -347,7 +347,7 @@ _nl_lookup_word (locale_t l, int category, int item)
@@ -67,7 +67,7 @@ index 8bbf281427..7a930079a5 100644
67 /* Load the locale data for CATEGORY from the file specified by *NAME. 67 /* Load the locale data for CATEGORY from the file specified by *NAME.
68 If *NAME is "", use environment variables as specified by POSIX, and 68 If *NAME is "", use environment variables as specified by POSIX, and
69diff --git a/locale/programs/locale.c b/locale/programs/locale.c 69diff --git a/locale/programs/locale.c b/locale/programs/locale.c
70index 1d1a9b2f00..d9ed395b39 100644 70index c7ee1874e8..8281e32236 100644
71--- a/locale/programs/locale.c 71--- a/locale/programs/locale.c
72+++ b/locale/programs/locale.c 72+++ b/locale/programs/locale.c
73@@ -631,6 +631,7 @@ nameentcmp (const void *a, const void *b) 73@@ -631,6 +631,7 @@ nameentcmp (const void *a, const void *b)
diff --git a/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch b/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch
index 38dca83b1b..096764009a 100644
--- a/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch
+++ b/meta/recipes-core/glibc/glibc/0008-nativesdk-glibc-Fall-back-to-faccessat-on-faccess2-r.patch
@@ -1,4 +1,4 @@
1From 7f05e35c675a6d1af2144b4cfbabab250de43f38 Mon Sep 17 00:00:00 2001 1From 70da806febac8b2eead6ddc32451bbc1787a1d7d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Sat, 6 Mar 2021 14:48:56 -0800 3Date: Sat, 6 Mar 2021 14:48:56 -0800
4Subject: [PATCH] nativesdk-glibc: Fall back to faccessat on faccess2 returns 4Subject: [PATCH] nativesdk-glibc: Fall back to faccessat on faccess2 returns
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 1 file changed, 5 insertions(+), 1 deletion(-) 14 1 file changed, 5 insertions(+), 1 deletion(-)
15 15
16diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c 16diff --git a/sysdeps/unix/sysv/linux/faccessat.c b/sysdeps/unix/sysv/linux/faccessat.c
17index 0ccbd778b5..9df1a0fe12 100644 17index 2fa57fd63d..4d0d5ff0c4 100644
18--- a/sysdeps/unix/sysv/linux/faccessat.c 18--- a/sysdeps/unix/sysv/linux/faccessat.c
19+++ b/sysdeps/unix/sysv/linux/faccessat.c 19+++ b/sysdeps/unix/sysv/linux/faccessat.c
20@@ -30,7 +30,11 @@ __faccessat (int fd, const char *file, int mode, int flag) 20@@ -30,7 +30,11 @@ __faccessat (int fd, const char *file, int mode, int flag)
diff --git a/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch b/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch
index 61fdcb0816..364e5cfde8 100644
--- a/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch
+++ b/meta/recipes-core/glibc/glibc/0009-yes-within-the-path-sets-wrong-config-variables.patch
@@ -1,4 +1,4 @@
1From 70e721856c3ebf6ae0ea84b828396bd2af090acf Mon Sep 17 00:00:00 2001 1From 2192588942c5bc3b5fa10fc6d7433923f42e9ba0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 00:31:06 +0000 3Date: Wed, 18 Mar 2015 00:31:06 +0000
4Subject: [PATCH] 'yes' within the path sets wrong config variables 4Subject: [PATCH] 'yes' within the path sets wrong config variables
diff --git a/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch b/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch
index ffbe138ff1..d7f15c1cfa 100644
--- a/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch
+++ b/meta/recipes-core/glibc/glibc/0010-eglibc-Cross-building-and-testing-instructions.patch
@@ -1,4 +1,4 @@
1From 9625e90bdf35774c71f1e566e73d435e38c04171 Mon Sep 17 00:00:00 2001 1From ce8b13bdf488058754fce573754cea0b022c37e2 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 00:42:58 +0000 3Date: Wed, 18 Mar 2015 00:42:58 +0000
4Subject: [PATCH] eglibc: Cross building and testing instructions 4Subject: [PATCH] eglibc: Cross building and testing instructions
diff --git a/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch b/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch
index 88017bd29b..82a3292655 100644
--- a/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch
+++ b/meta/recipes-core/glibc/glibc/0011-eglibc-Help-bootstrap-cross-toolchain.patch
@@ -1,4 +1,4 @@
1From cf2126b2d6e073137a3a7d9bcc261e0a760a82da Mon Sep 17 00:00:00 2001 1From 65b79161b9e2848a174d3519a03348884f182975 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 00:49:28 +0000 3Date: Wed, 18 Mar 2015 00:49:28 +0000
4Subject: [PATCH] eglibc: Help bootstrap cross toolchain 4Subject: [PATCH] eglibc: Help bootstrap cross toolchain
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
29 create mode 100644 include/stubs-bootstrap.h 29 create mode 100644 include/stubs-bootstrap.h
30 30
31diff --git a/Makefile b/Makefile 31diff --git a/Makefile b/Makefile
32index c6d4817a9e..b4b0e23560 100644 32index 7052b46df8..46073abaa8 100644
33--- a/Makefile 33--- a/Makefile
34+++ b/Makefile 34+++ b/Makefile
35@@ -79,9 +79,18 @@ subdir-dirs = include 35@@ -79,9 +79,18 @@ subdir-dirs = include
diff --git a/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch b/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch
index fee020cc4c..e726a9e76f 100644
--- a/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch
+++ b/meta/recipes-core/glibc/glibc/0012-eglibc-Resolve-__fpscr_values-on-SH4.patch
@@ -1,4 +1,4 @@
1From 61948c02226acea68d34313cc6286ee1ab44a98c Mon Sep 17 00:00:00 2001 1From 07a5fa22a9a8bbd43982c1b35132f8c2d5276bfe Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 00:55:53 +0000 3Date: Wed, 18 Mar 2015 00:55:53 +0000
4Subject: [PATCH] eglibc: Resolve __fpscr_values on SH4 4Subject: [PATCH] eglibc: Resolve __fpscr_values on SH4
@@ -33,7 +33,7 @@ index 3ad702e165..931985b5d6 100644
33 # a* 33 # a*
34 alphasort64; 34 alphasort64;
35diff --git a/sysdeps/unix/sysv/linux/sh/sysdep.S b/sysdeps/unix/sysv/linux/sh/sysdep.S 35diff --git a/sysdeps/unix/sysv/linux/sh/sysdep.S b/sysdeps/unix/sysv/linux/sh/sysdep.S
36index 9d85ff99a0..6bda921ca3 100644 36index d5d8c5e033..f356d02077 100644
37--- a/sysdeps/unix/sysv/linux/sh/sysdep.S 37--- a/sysdeps/unix/sysv/linux/sh/sysdep.S
38+++ b/sysdeps/unix/sysv/linux/sh/sysdep.S 38+++ b/sysdeps/unix/sysv/linux/sh/sysdep.S
39@@ -30,3 +30,14 @@ ENTRY (__syscall_error) 39@@ -30,3 +30,14 @@ ENTRY (__syscall_error)
diff --git a/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch b/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch
index 60bcab0fec..f36b7f6f4c 100644
--- a/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch
+++ b/meta/recipes-core/glibc/glibc/0013-eglibc-Forward-port-cross-locale-generation-support.patch
@@ -1,4 +1,4 @@
1From befa58c48a8ba664e7bbdfcf22e2a15efa2e0d17 Mon Sep 17 00:00:00 2001 1From 33e9867758e830e19d181d5a0aa7f2f3cc4a08b3 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 01:33:49 +0000 3Date: Wed, 18 Mar 2015 01:33:49 +0000
4Subject: [PATCH] eglibc: Forward port cross locale generation support 4Subject: [PATCH] eglibc: Forward port cross locale generation support
@@ -7,7 +7,7 @@ Upstream-Status: Pending
7 7
8Signed-off-by: Khem Raj <raj.khem@gmail.com> 8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9--- 9---
10 locale/Makefile | 3 +- 10 locale/Makefile | 1 +
11 locale/catnames.c | 46 +++++++++++++++++++++++++++ 11 locale/catnames.c | 46 +++++++++++++++++++++++++++
12 locale/localeinfo.h | 2 +- 12 locale/localeinfo.h | 2 +-
13 locale/programs/charmap-dir.c | 6 ++++ 13 locale/programs/charmap-dir.c | 6 ++++
@@ -19,23 +19,21 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
19 locale/programs/locfile.c | 5 ++- 19 locale/programs/locfile.c | 5 ++-
20 locale/programs/locfile.h | 59 +++++++++++++++++++++++++++++++++-- 20 locale/programs/locfile.h | 59 +++++++++++++++++++++++++++++++++--
21 locale/setlocale.c | 29 ----------------- 21 locale/setlocale.c | 29 -----------------
22 12 files changed, 167 insertions(+), 68 deletions(-) 22 12 files changed, 166 insertions(+), 67 deletions(-)
23 create mode 100644 locale/catnames.c 23 create mode 100644 locale/catnames.c
24 24
25diff --git a/locale/Makefile b/locale/Makefile 25diff --git a/locale/Makefile b/locale/Makefile
26index d7036b0855..ed795e2710 100644 26index 2810f28605..05f847f9a6 100644
27--- a/locale/Makefile 27--- a/locale/Makefile
28+++ b/locale/Makefile 28+++ b/locale/Makefile
29@@ -26,7 +26,8 @@ headers = langinfo.h locale.h bits/locale.h \ 29@@ -30,6 +30,7 @@ headers = \
30 bits/types/locale_t.h bits/types/__locale_t.h 30 locale.h \
31 routines = setlocale findlocale loadlocale loadarchive \ 31 # headers
32 localeconv nl_langinfo nl_langinfo_l mb_cur_max \ 32 routines = \
33- newlocale duplocale freelocale uselocale 33+ catnames \
34+ newlocale duplocale freelocale uselocale \ 34 duplocale \
35+ catnames 35 findlocale \
36 tests = tst-C-locale tst-locname tst-duplocale 36 freelocale \
37 tests-container = tst-localedef-path-norm
38 categories = ctype messages monetary numeric time paper name \
39diff --git a/locale/catnames.c b/locale/catnames.c 37diff --git a/locale/catnames.c b/locale/catnames.c
40new file mode 100644 38new file mode 100644
41index 0000000000..538f3f5edb 39index 0000000000..538f3f5edb
@@ -89,7 +87,7 @@ index 0000000000..538f3f5edb
89+ [LC_ALL] = sizeof ("LC_ALL") - 1 87+ [LC_ALL] = sizeof ("LC_ALL") - 1
90+ }; 88+ };
91diff --git a/locale/localeinfo.h b/locale/localeinfo.h 89diff --git a/locale/localeinfo.h b/locale/localeinfo.h
92index 7a930079a5..05d7848d29 100644 90index f7efc288a5..6ef082eb25 100644
93--- a/locale/localeinfo.h 91--- a/locale/localeinfo.h
94+++ b/locale/localeinfo.h 92+++ b/locale/localeinfo.h
95@@ -246,7 +246,7 @@ __libc_tsd_define (extern, locale_t, LOCALE) 93@@ -246,7 +246,7 @@ __libc_tsd_define (extern, locale_t, LOCALE)
@@ -102,7 +100,7 @@ index 7a930079a5..05d7848d29 100644
102 # define NL_CURRENT_INDIRECT 1 100 # define NL_CURRENT_INDIRECT 1
103 #endif 101 #endif
104diff --git a/locale/programs/charmap-dir.c b/locale/programs/charmap-dir.c 102diff --git a/locale/programs/charmap-dir.c b/locale/programs/charmap-dir.c
105index 9582f2d167..8f9f3f582c 100644 103index 36504f238d..56ee97e61b 100644
106--- a/locale/programs/charmap-dir.c 104--- a/locale/programs/charmap-dir.c
107+++ b/locale/programs/charmap-dir.c 105+++ b/locale/programs/charmap-dir.c
108@@ -18,7 +18,9 @@ 106@@ -18,7 +18,9 @@
@@ -148,7 +146,7 @@ index 9582f2d167..8f9f3f582c 100644
148 return NULL; 146 return NULL;
149 } 147 }
150diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c 148diff --git a/locale/programs/ld-collate.c b/locale/programs/ld-collate.c
151index 2c9f540bf1..c937cfd2ab 100644 149index 5048adbd9f..4232834ead 100644
152--- a/locale/programs/ld-collate.c 150--- a/locale/programs/ld-collate.c
153+++ b/locale/programs/ld-collate.c 151+++ b/locale/programs/ld-collate.c
154@@ -352,7 +352,7 @@ new_element (struct locale_collate_t *collate, const char *mbs, size_t mbslen, 152@@ -352,7 +352,7 @@ new_element (struct locale_collate_t *collate, const char *mbs, size_t mbslen,
@@ -197,7 +195,7 @@ index 2c9f540bf1..c937cfd2ab 100644
197 == runp->wcnext->wcs[runp->nwcs - 1] + 1)); 195 == runp->wcnext->wcs[runp->nwcs - 1] + 1));
198 196
199diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c 197diff --git a/locale/programs/ld-ctype.c b/locale/programs/ld-ctype.c
200index d285b72611..4bf01fa3db 100644 198index eb6e7e145c..14736d1cac 100644
201--- a/locale/programs/ld-ctype.c 199--- a/locale/programs/ld-ctype.c
202+++ b/locale/programs/ld-ctype.c 200+++ b/locale/programs/ld-ctype.c
203@@ -914,7 +914,7 @@ ctype_output (struct localedef_t *locale, const struct charmap_t *charmap, 201@@ -914,7 +914,7 @@ ctype_output (struct localedef_t *locale, const struct charmap_t *charmap,
@@ -279,7 +277,7 @@ index d285b72611..4bf01fa3db 100644
279 srunp = srunp->next; 277 srunp = srunp->next;
280 } 278 }
281diff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c 279diff --git a/locale/programs/ld-time.c b/locale/programs/ld-time.c
282index a590b013b3..5ed4fa0f59 100644 280index 1abff3cf53..8a2f2b820a 100644
283--- a/locale/programs/ld-time.c 281--- a/locale/programs/ld-time.c
284+++ b/locale/programs/ld-time.c 282+++ b/locale/programs/ld-time.c
285@@ -219,8 +219,10 @@ No definition for %s category found"), "LC_TIME"); 283@@ -219,8 +219,10 @@ No definition for %s category found"), "LC_TIME");
@@ -348,7 +346,7 @@ index a590b013b3..5ed4fa0f59 100644
348 346
349 347
350diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c 348diff --git a/locale/programs/linereader.c b/locale/programs/linereader.c
351index f8c49ac06f..ddda006037 100644 349index 61373d2657..7ec5726377 100644
352--- a/locale/programs/linereader.c 350--- a/locale/programs/linereader.c
353+++ b/locale/programs/linereader.c 351+++ b/locale/programs/linereader.c
354@@ -776,7 +776,7 @@ get_string (struct linereader *lr, const struct charmap_t *charmap, 352@@ -776,7 +776,7 @@ get_string (struct linereader *lr, const struct charmap_t *charmap,
@@ -361,7 +359,7 @@ index f8c49ac06f..ddda006037 100644
361 lr_buffer_init (&lrb); 359 lr_buffer_init (&lrb);
362 360
363diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c 361diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c
364index 1b751bb7be..c255e2b436 100644 362index 907bb5fb25..3106529043 100644
365--- a/locale/programs/localedef.c 363--- a/locale/programs/localedef.c
366+++ b/locale/programs/localedef.c 364+++ b/locale/programs/localedef.c
367@@ -108,6 +108,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; 365@@ -108,6 +108,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version;
@@ -407,7 +405,7 @@ index 1b751bb7be..c255e2b436 100644
407 force_output = 1; 405 force_output = 1;
408 break; 406 break;
409diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c 407diff --git a/locale/programs/locfile.c b/locale/programs/locfile.c
410index e3eef59295..711d6fbea0 100644 408index 6c6ebf2dd6..cc02ab82bf 100644
411--- a/locale/programs/locfile.c 409--- a/locale/programs/locfile.c
412+++ b/locale/programs/locfile.c 410+++ b/locale/programs/locfile.c
413@@ -543,6 +543,9 @@ compare_files (const char *filename1, const char *filename2, size_t size, 411@@ -543,6 +543,9 @@ compare_files (const char *filename1, const char *filename2, size_t size,
@@ -430,7 +428,7 @@ index e3eef59295..711d6fbea0 100644
430 428
431 /* Record that FILE's next element is the 32-bit integer VALUE. */ 429 /* Record that FILE's next element is the 32-bit integer VALUE. */
432diff --git a/locale/programs/locfile.h b/locale/programs/locfile.h 430diff --git a/locale/programs/locfile.h b/locale/programs/locfile.h
433index 5caf5c348f..76856a32c2 100644 431index 3afb0a8d29..46785374e8 100644
434--- a/locale/programs/locfile.h 432--- a/locale/programs/locfile.h
435+++ b/locale/programs/locfile.h 433+++ b/locale/programs/locfile.h
436@@ -70,6 +70,8 @@ extern void write_all_categories (struct localedef_t *definitions, 434@@ -70,6 +70,8 @@ extern void write_all_categories (struct localedef_t *definitions,
@@ -519,7 +517,7 @@ index 5caf5c348f..76856a32c2 100644
519+ 517+
520 #endif /* locfile.h */ 518 #endif /* locfile.h */
521diff --git a/locale/setlocale.c b/locale/setlocale.c 519diff --git a/locale/setlocale.c b/locale/setlocale.c
522index 6a902faa50..17413f0a9c 100644 520index 7bd27e5398..2f194bad7c 100644
523--- a/locale/setlocale.c 521--- a/locale/setlocale.c
524+++ b/locale/setlocale.c 522+++ b/locale/setlocale.c
525@@ -63,35 +63,6 @@ static char *const _nl_current_used[] = 523@@ -63,35 +63,6 @@ static char *const _nl_current_used[] =
diff --git a/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch b/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch
index 3e7d5b74c1..daeff7b065 100644
--- a/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch
+++ b/meta/recipes-core/glibc/glibc/0014-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch
@@ -1,4 +1,4 @@
1From 653b0631f80f17abe01957c06ef8a8d5d189b789 Mon Sep 17 00:00:00 2001 1From f4b1d6429298c0f8a2aa29ff559eb2093ea0188f Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 3 Aug 2018 09:42:06 -0700 3Date: Fri, 3 Aug 2018 09:42:06 -0700
4Subject: [PATCH] localedef --add-to-archive uses a hard-coded locale path 4Subject: [PATCH] localedef --add-to-archive uses a hard-coded locale path
@@ -18,7 +18,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
18 1 file changed, 25 insertions(+), 10 deletions(-) 18 1 file changed, 25 insertions(+), 10 deletions(-)
19 19
20diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c 20diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
21index 71fd9f34fa..cd3eb90ad5 100644 21index 8d79a1b6d1..6dc7ecd4e7 100644
22--- a/locale/programs/locarchive.c 22--- a/locale/programs/locarchive.c
23+++ b/locale/programs/locarchive.c 23+++ b/locale/programs/locarchive.c
24@@ -339,12 +339,24 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head) 24@@ -339,12 +339,24 @@ enlarge_archive (struct locarhandle *ah, const struct locarhead *head)
diff --git a/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch b/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch
index ff49a71bb2..8dd1f0a656 100644
--- a/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch
+++ b/meta/recipes-core/glibc/glibc/0015-powerpc-Do-not-ask-compiler-for-finding-arch.patch
@@ -1,4 +1,4 @@
1From fae5ee7d7b9dca2f25684a99f7046042d870235f Mon Sep 17 00:00:00 2001 1From 2d064c0c1243ea0bf405909285d7cddca92cf097 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 7 Aug 2020 14:31:16 -0700 3Date: Fri, 7 Aug 2020 14:31:16 -0700
4Subject: [PATCH] powerpc: Do not ask compiler for finding arch 4Subject: [PATCH] powerpc: Do not ask compiler for finding arch
diff --git a/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch b/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch
index b7b4046efc..066c3b1ea2 100644
--- a/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch
+++ b/meta/recipes-core/glibc/glibc/0016-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch
@@ -1,4 +1,4 @@
1From 91a7848698ce6c96c646f3a170714ee71eab6884 Mon Sep 17 00:00:00 2001 1From b1c374f7ede81a98f2d02def2c7ca17f1001f7cb Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 15 May 2020 17:05:45 -0700 3Date: Fri, 15 May 2020 17:05:45 -0700
4Subject: [PATCH] wordsize.h: Unify the header between arm and aarch64 4Subject: [PATCH] wordsize.h: Unify the header between arm and aarch64
@@ -17,7 +17,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
17 create mode 120000 sysdeps/arm/bits/wordsize.h 17 create mode 120000 sysdeps/arm/bits/wordsize.h
18 18
19diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h 19diff --git a/sysdeps/aarch64/bits/wordsize.h b/sysdeps/aarch64/bits/wordsize.h
20index 04d4be9519..63876a7830 100644 20index 118e59172d..b4b0692eb5 100644
21--- a/sysdeps/aarch64/bits/wordsize.h 21--- a/sysdeps/aarch64/bits/wordsize.h
22+++ b/sysdeps/aarch64/bits/wordsize.h 22+++ b/sysdeps/aarch64/bits/wordsize.h
23@@ -17,12 +17,16 @@ 23@@ -17,12 +17,16 @@
diff --git a/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch b/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch
index f2ed821081..d8c0b1b4ad 100644
--- a/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch
+++ b/meta/recipes-core/glibc/glibc/0017-Replace-echo-with-printf-builtin-in-nscd-init-script.patch
@@ -1,4 +1,4 @@
1From 63611cfd3b25f3656db168aee41a5850ac769dfc Mon Sep 17 00:00:00 2001 1From 0aac3b8ee5b13e289b6969da51de384443286a5b Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 31 Dec 2015 14:33:02 -0800 3Date: Thu, 31 Dec 2015 14:33:02 -0800
4Subject: [PATCH] Replace echo with printf builtin in nscd init script 4Subject: [PATCH] Replace echo with printf builtin in nscd init script
diff --git a/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch b/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch
index 12a460664f..c81f82f433 100644
--- a/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch
+++ b/meta/recipes-core/glibc/glibc/0018-sysdeps-gnu-configure.ac-Set-libc_cv_rootsbindir-onl.patch
@@ -1,4 +1,4 @@
1From 912ccb5001ffa5355caff09354558e89e9aa937b Mon Sep 17 00:00:00 2001 1From 7a25d4796411f22f824742092a4c2a08df99752d Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 18 Mar 2015 00:27:10 +0000 3Date: Wed, 18 Mar 2015 00:27:10 +0000
4Subject: [PATCH] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its 4Subject: [PATCH] sysdeps/gnu/configure.ac: Set libc_cv_rootsbindir only if its
diff --git a/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch b/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch
index 359b1c37e5..d724c3e968 100644
--- a/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch
+++ b/meta/recipes-core/glibc/glibc/0019-timezone-Make-shell-interpreter-overridable-in-tzsel.patch
@@ -1,4 +1,4 @@
1From 1d518ac57b00a3335f80f10f899c1bc24a0ddbf5 Mon Sep 17 00:00:00 2001 1From 6aa1b835d95482287851e02abd3a406cbd0ef8c7 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 9 Dec 2021 15:14:42 -0800 3Date: Thu, 9 Dec 2021 15:14:42 -0800
4Subject: [PATCH] timezone: Make shell interpreter overridable in tzselect.ksh 4Subject: [PATCH] timezone: Make shell interpreter overridable in tzselect.ksh
@@ -14,7 +14,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 2 files changed, 10 insertions(+) 14 2 files changed, 10 insertions(+)
15 15
16diff --git a/Makeconfig b/Makeconfig 16diff --git a/Makeconfig b/Makeconfig
17index 77d7fd14df..e253046861 100644 17index 85e00cef94..643724108a 100644
18--- a/Makeconfig 18--- a/Makeconfig
19+++ b/Makeconfig 19+++ b/Makeconfig
20@@ -309,6 +309,15 @@ ifndef sysincludedir 20@@ -309,6 +309,15 @@ ifndef sysincludedir
@@ -34,7 +34,7 @@ index 77d7fd14df..e253046861 100644
34 # Commands to install files. 34 # Commands to install files.
35 ifndef INSTALL_DATA 35 ifndef INSTALL_DATA
36diff --git a/timezone/Makefile b/timezone/Makefile 36diff --git a/timezone/Makefile b/timezone/Makefile
37index 0306c0bca9..4dfdcebdb7 100644 37index d7acb387ba..ec79326f66 100644
38--- a/timezone/Makefile 38--- a/timezone/Makefile
39+++ b/timezone/Makefile 39+++ b/timezone/Makefile
40@@ -136,6 +136,7 @@ $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make 40@@ -136,6 +136,7 @@ $(objpfx)tzselect: tzselect.ksh $(common-objpfx)config.make
diff --git a/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch b/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch
index 9a1bfdd6af..08c60a271b 100644
--- a/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch
+++ b/meta/recipes-core/glibc/glibc/0020-tzselect.ksh-Use-bin-sh-default-shell-interpreter.patch
@@ -1,4 +1,4 @@
1From 7274541782927394852712ba0c8dfd67bd9b8b5b Mon Sep 17 00:00:00 2001 1From ef47e6199986c4951e681ed74f064042db1ae2e1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 15 Dec 2021 21:47:53 -0800 3Date: Wed, 15 Dec 2021 21:47:53 -0800
4Subject: [PATCH] tzselect.ksh: Use /bin/sh default shell interpreter 4Subject: [PATCH] tzselect.ksh: Use /bin/sh default shell interpreter
diff --git a/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch b/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch
index 3b567cc9ab..d57dce125c 100644
--- a/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch
+++ b/meta/recipes-core/glibc/glibc/0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch
@@ -1,4 +1,4 @@
1From 4a1bff4c1e34ad9b596a7ba44ab61f4c9d00097b Mon Sep 17 00:00:00 2001 1From 7254706544be5100843fc0a332e836fccffc9ef1 Mon Sep 17 00:00:00 2001
2From: Hongxu Jia <hongxu.jia@windriver.com> 2From: Hongxu Jia <hongxu.jia@windriver.com>
3Date: Sun, 29 Aug 2021 20:49:16 +0800 3Date: Sun, 29 Aug 2021 20:49:16 +0800
4Subject: [PATCH] fix create thread failed in unprivileged process [BZ #28287] 4Subject: [PATCH] fix create thread failed in unprivileged process [BZ #28287]
@@ -72,10 +72,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
72 1 file changed, 1 insertion(+), 1 deletion(-) 72 1 file changed, 1 insertion(+), 1 deletion(-)
73 73
74diff --git a/sysdeps/unix/sysv/linux/clone-internal.c b/sysdeps/unix/sysv/linux/clone-internal.c 74diff --git a/sysdeps/unix/sysv/linux/clone-internal.c b/sysdeps/unix/sysv/linux/clone-internal.c
75index 790739cfce..8d24d04917 100644 75index 40ef30303f..f97b1f6900 100644
76--- a/sysdeps/unix/sysv/linux/clone-internal.c 76--- a/sysdeps/unix/sysv/linux/clone-internal.c
77+++ b/sysdeps/unix/sysv/linux/clone-internal.c 77+++ b/sysdeps/unix/sysv/linux/clone-internal.c
78@@ -106,7 +106,7 @@ __clone_internal (struct clone_args *cl_args, 78@@ -98,7 +98,7 @@ __clone_internal (struct clone_args *cl_args,
79 #ifdef HAVE_CLONE3_WRAPPER 79 #ifdef HAVE_CLONE3_WRAPPER
80 int saved_errno = errno; 80 int saved_errno = errno;
81 int ret = __clone3_internal (cl_args, func, arg); 81 int ret = __clone3_internal (cl_args, func, arg);
diff --git a/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch b/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch
index 55c81f38aa..b527ddffc8 100644
--- a/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch
+++ b/meta/recipes-core/glibc/glibc/0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch
@@ -1,4 +1,4 @@
1From e61792fc978f9b8a9c790be468fbf97828ac8ae9 Mon Sep 17 00:00:00 2001 1From d39779afc72d34f87f052097592008cc38e20615 Mon Sep 17 00:00:00 2001
2From: Richard Purdie <richard.purdie@linuxfoundation.org> 2From: Richard Purdie <richard.purdie@linuxfoundation.org>
3Date: Sun, 24 Jul 2022 07:07:29 -0700 3Date: Sun, 24 Jul 2022 07:07:29 -0700
4Subject: [PATCH] Avoid hardcoded build time paths in the output binaries 4Subject: [PATCH] Avoid hardcoded build time paths in the output binaries
@@ -14,10 +14,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com>
14 1 file changed, 3 insertions(+), 3 deletions(-) 14 1 file changed, 3 insertions(+), 3 deletions(-)
15 15
16diff --git a/support/Makefile b/support/Makefile 16diff --git a/support/Makefile b/support/Makefile
17index 917a858bd1..17a747c8c7 100644 17index 362a51f882..56d2b37058 100644
18--- a/support/Makefile 18--- a/support/Makefile
19+++ b/support/Makefile 19+++ b/support/Makefile
20@@ -227,9 +227,9 @@ libsupport-inhibit-o += .o 20@@ -228,9 +228,9 @@ libsupport-inhibit-o += .o
21 endif 21 endif
22 22
23 CFLAGS-support_paths.c = \ 23 CFLAGS-support_paths.c = \
diff --git a/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch b/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch
index 7be9fc981d..816471a828 100644
--- a/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch
+++ b/meta/recipes-core/glibc/glibc/0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch
@@ -1,4 +1,4 @@
1From d836f008a96aa9b2e88c7b394bfc110542e57176 Mon Sep 17 00:00:00 2001 1From f761f5ca2d453e11d34fc7d552dab4a0e189dae9 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 4 Aug 2023 09:34:50 -0700 3Date: Fri, 4 Aug 2023 09:34:50 -0700
4Subject: [PATCH] aarch64/configure: Pass -mcpu along with -march to detect sve 4Subject: [PATCH] aarch64/configure: Pass -mcpu along with -march to detect sve
@@ -51,6 +51,3 @@ index 8a708f2ef4..b6a146d2be 100644
51 libc_cv_aarch64_sve_asm=yes 51 libc_cv_aarch64_sve_asm=yes
52 else 52 else
53 libc_cv_aarch64_sve_asm=no 53 libc_cv_aarch64_sve_asm=no
54--
552.41.0
56
diff --git a/meta/recipes-core/glibc/glibc/0024-mips-FIx-clone3-implementation-BZ-31325.patch b/meta/recipes-core/glibc/glibc/0024-mips-FIx-clone3-implementation-BZ-31325.patch
new file mode 100644
index 0000000000..b391c60958
--- /dev/null
+++ b/meta/recipes-core/glibc/glibc/0024-mips-FIx-clone3-implementation-BZ-31325.patch
@@ -0,0 +1,83 @@
1From b471cadd57e3fc1fce74b33fcf75c6844cfd68b3 Mon Sep 17 00:00:00 2001
2From: Adhemerval Zanella <adhemerval.zanella@linaro.org>
3Date: Thu, 1 Feb 2024 14:41:03 -0300
4Subject: [PATCH] mips: FIx clone3 implementation (BZ 31325)
5
6For o32 we need to setup a minimal stack frame to allow cprestore
7on __thread_start_clone3 (which instruct the linker to save the
8gp for PIC). Also, there is no guarantee by kABI that $8 will be
9preserved after syscall execution, so we need to save it on the
10provided stack.
11
12Checked on mipsel-linux-gnu.
13
14Upstream-Status: Submitted [https://patchwork.sourceware.org/project/glibc/patch/20240201174103.798138-1-adhemerval.zanella@linaro.org/]
15Reported-by: Khem Raj <raj.khem@gmail.com>
16Signed-off-by: Khem Raj <raj.khem@gmail.com>
17---
18 sysdeps/unix/sysv/linux/mips/clone3.S | 32 ++++++++++++++++++++++-----
19 1 file changed, 27 insertions(+), 5 deletions(-)
20
21diff --git a/sysdeps/unix/sysv/linux/mips/clone3.S b/sysdeps/unix/sysv/linux/mips/clone3.S
22index e9fec2fa47..481b8ae963 100644
23--- a/sysdeps/unix/sysv/linux/mips/clone3.S
24+++ b/sysdeps/unix/sysv/linux/mips/clone3.S
25@@ -37,11 +37,6 @@
26
27 .text
28 .set nomips16
29-#if _MIPS_SIM == _ABIO32
30-# define EXTRA_LOCALS 1
31-#else
32-# define EXTRA_LOCALS 0
33-#endif
34 #define FRAMESZ ((NARGSAVE*SZREG)+ALSZ)&ALMASK
35 GPOFF= FRAMESZ-(1*SZREG)
36 NESTED(__clone3, SZREG, sp)
37@@ -68,8 +63,31 @@ NESTED(__clone3, SZREG, sp)
38 beqz a0, L(error) /* No NULL cl_args pointer. */
39 beqz a2, L(error) /* No NULL function pointer. */
40
41+#if _MIPS_SIM == _ABIO32
42+ /* Both stack and stack_size on clone_args are defined as uint64_t, and
43+ there is no need to handle values larger than to 32 bits for o32. */
44+# if __BYTE_ORDER == __BIG_ENDIAN
45+# define CL_STACKPOINTER_OFFSET 44
46+# define CL_STACKSIZE_OFFSET 52
47+# else
48+# define CL_STACKPOINTER_OFFSET 40
49+# define CL_STACKSIZE_OFFSET 48
50+# endif
51+
52+ /* For o32 we need to setup a minimal stack frame to allow cprestore
53+ on __thread_start_clone3. Also there is no guarantee by kABI that
54+ $8 will be preserved after syscall execution (so we need to save it
55+ on the provided stack). */
56+ lw t0, CL_STACKPOINTER_OFFSET(a0) /* Load the stack pointer. */
57+ lw t1, CL_STACKSIZE_OFFSET(a0) /* Load the stack_size. */
58+ addiu t1, -32 /* Update the stack size. */
59+ addu t2, t1, t0 /* Calculate the thread stack. */
60+ sw a3, 0(t2) /* Save argument pointer. */
61+ sw t1, CL_STACKSIZE_OFFSET(a0) /* Save the new stack size. */
62+#else
63 move $8, a3 /* a3 is set to 0/1 for syscall success/error
64 while a4/$8 is returned unmodified. */
65+#endif
66
67 /* Do the system call, the kernel expects:
68 v0: system call number
69@@ -125,7 +143,11 @@ L(thread_start_clone3):
70
71 /* Restore the arg for user's function. */
72 move t9, a2 /* Function pointer. */
73+#if _MIPS_SIM == _ABIO32
74+ PTR_L a0, 0(sp)
75+#else
76 move a0, $8 /* Argument pointer. */
77+#endif
78
79 /* Call the user's function. */
80 jal t9
81--
822.43.0
83
diff --git a/meta/recipes-core/glibc/glibc_2.38.bb b/meta/recipes-core/glibc/glibc_2.39.bb
index 417f0c8bd0..0273be713f 100644
--- a/meta/recipes-core/glibc/glibc_2.38.bb
+++ b/meta/recipes-core/glibc/glibc_2.39.bb
@@ -51,6 +51,7 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \
51 file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \ 51 file://0021-fix-create-thread-failed-in-unprivileged-process-BZ-.patch \
52 file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \ 52 file://0022-Avoid-hardcoded-build-time-paths-in-the-output-binar.patch \
53 file://0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch \ 53 file://0023-aarch64-configure-Pass-mcpu-along-with-march-to-dete.patch \
54 file://0024-mips-FIx-clone3-implementation-BZ-31325.patch \
54" 55"
55S = "${WORKDIR}/git" 56S = "${WORKDIR}/git"
56B = "${WORKDIR}/build-${TARGET_SYS}" 57B = "${WORKDIR}/build-${TARGET_SYS}"