diff options
author | Khem Raj <raj.khem@gmail.com> | 2020-08-07 15:09:36 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-08 09:17:49 +0100 |
commit | 392c117e7ab05da10a374f695d5232e7527ab5de (patch) | |
tree | 96acdc69cdc0815a3b820101ba14225ae466535d | |
parent | 470c58ba4586082de802759686460222cc04336d (diff) | |
download | poky-392c117e7ab05da10a374f695d5232e7527ab5de.tar.gz |
glibc: Upgrade to 2.32 release
Drop 0001-localedef-Add-hardlink-resolver-to-build.patch as its applied
to localedef upstream
Drop CVE patches which are already part of 2.32 release
Drop unused attribute patch as its fixed differently in 2.32
Add a patch to mitigate the sideffect of [1] for ppc which detect wrong
cpu in OE since we are cross compiling
[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=146fea07640387c78e334933de24b6353e1f0eba
(From OE-Core rev: fe3d5136ef02721f9bbe01d98c1743b8dbcb69c5)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
43 files changed, 294 insertions, 606 deletions
diff --git a/meta/conf/distro/include/tcmode-default.inc b/meta/conf/distro/include/tcmode-default.inc index 2de64d5d6b..c5cc4bdcdf 100644 --- a/meta/conf/distro/include/tcmode-default.inc +++ b/meta/conf/distro/include/tcmode-default.inc | |||
@@ -20,7 +20,7 @@ GCCVERSION ?= "10.%" | |||
20 | SDKGCCVERSION ?= "${GCCVERSION}" | 20 | SDKGCCVERSION ?= "${GCCVERSION}" |
21 | BINUVERSION ?= "2.35%" | 21 | BINUVERSION ?= "2.35%" |
22 | GDBVERSION ?= "9.%" | 22 | GDBVERSION ?= "9.%" |
23 | GLIBCVERSION ?= "2.31%" | 23 | GLIBCVERSION ?= "2.32" |
24 | LINUXLIBCVERSION ?= "5.4%" | 24 | LINUXLIBCVERSION ?= "5.4%" |
25 | QEMUVERSION ?= "5.0%" | 25 | QEMUVERSION ?= "5.0%" |
26 | GOVERSION ?= "1.14%" | 26 | GOVERSION ?= "1.14%" |
diff --git a/meta/recipes-core/glibc/cross-localedef-native_2.31.bb b/meta/recipes-core/glibc/cross-localedef-native_2.32.bb index 24de55d929..5a0abbb70f 100644 --- a/meta/recipes-core/glibc/cross-localedef-native_2.31.bb +++ b/meta/recipes-core/glibc/cross-localedef-native_2.32.bb | |||
@@ -22,19 +22,17 @@ FILESEXTRAPATHS =. "${FILE_DIRNAME}/${PN}:${FILE_DIRNAME}/glibc:" | |||
22 | SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | 22 | SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ |
23 | git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef \ | 23 | git://github.com/kraj/localedef;branch=master;name=localedef;destsuffix=git/localedef \ |
24 | \ | 24 | \ |
25 | file://0001-localedef-Add-hardlink-resolver-to-build.patch;patchdir=localedef \ | ||
26 | \ | ||
27 | file://0001-localedef-Add-hardlink-resolver-from-util-linux.patch \ | 25 | file://0001-localedef-Add-hardlink-resolver-from-util-linux.patch \ |
28 | file://0002-localedef-fix-ups-hardlink-to-make-it-compile.patch \ | 26 | file://0002-localedef-fix-ups-hardlink-to-make-it-compile.patch \ |
29 | \ | 27 | \ |
30 | file://0018-timezone-re-written-tzselect-as-posix-sh.patch \ | 28 | file://0016-timezone-re-written-tzselect-as-posix-sh.patch \ |
31 | file://0019-Remove-bash-dependency-for-nscd-init-script.patch \ | 29 | file://0017-Remove-bash-dependency-for-nscd-init-script.patch \ |
32 | file://0020-eglibc-Cross-building-and-testing-instructions.patch \ | 30 | file://0018-eglibc-Cross-building-and-testing-instructions.patch \ |
33 | file://0021-eglibc-Help-bootstrap-cross-toolchain.patch \ | 31 | file://0019-eglibc-Help-bootstrap-cross-toolchain.patch \ |
34 | file://0022-eglibc-Resolve-__fpscr_values-on-SH4.patch \ | 32 | file://0020-eglibc-Resolve-__fpscr_values-on-SH4.patch \ |
35 | file://0023-eglibc-Forward-port-cross-locale-generation-support.patch \ | 33 | file://0021-eglibc-Forward-port-cross-locale-generation-support.patch \ |
36 | file://0024-Define-DUMMY_LOCALE_T-if-not-defined.patch \ | 34 | file://0022-Define-DUMMY_LOCALE_T-if-not-defined.patch \ |
37 | file://0025-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \ | 35 | file://0023-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \ |
38 | " | 36 | " |
39 | # Makes for a rather long rev (22 characters), but... | 37 | # Makes for a rather long rev (22 characters), but... |
40 | # | 38 | # |
diff --git a/meta/recipes-core/glibc/glibc-common.inc b/meta/recipes-core/glibc/glibc-common.inc index 8d412cc857..027c700998 100644 --- a/meta/recipes-core/glibc/glibc-common.inc +++ b/meta/recipes-core/glibc/glibc-common.inc | |||
@@ -22,4 +22,4 @@ ARM_INSTRUCTION_SET_armv6 = "arm" | |||
22 | # | 22 | # |
23 | COMPATIBLE_HOST_libc-musl_class-target = "null" | 23 | COMPATIBLE_HOST_libc-musl_class-target = "null" |
24 | 24 | ||
25 | PV = "2.31" | 25 | PV = "2.32" |
diff --git a/meta/recipes-core/glibc/glibc-locale_2.31.bb b/meta/recipes-core/glibc/glibc-locale_2.32.bb index f7702e0358..f7702e0358 100644 --- a/meta/recipes-core/glibc/glibc-locale_2.31.bb +++ b/meta/recipes-core/glibc/glibc-locale_2.32.bb | |||
diff --git a/meta/recipes-core/glibc/glibc-mtrace_2.31.bb b/meta/recipes-core/glibc/glibc-mtrace_2.32.bb index 0b69bad46a..0b69bad46a 100644 --- a/meta/recipes-core/glibc/glibc-mtrace_2.31.bb +++ b/meta/recipes-core/glibc/glibc-mtrace_2.32.bb | |||
diff --git a/meta/recipes-core/glibc/glibc-scripts_2.31.bb b/meta/recipes-core/glibc/glibc-scripts_2.32.bb index 5a89bd8022..5a89bd8022 100644 --- a/meta/recipes-core/glibc/glibc-scripts_2.31.bb +++ b/meta/recipes-core/glibc/glibc-scripts_2.32.bb | |||
diff --git a/meta/recipes-core/glibc/glibc-testsuite_2.31.bb b/meta/recipes-core/glibc/glibc-testsuite_2.32.bb index d887aeff79..d887aeff79 100644 --- a/meta/recipes-core/glibc/glibc-testsuite_2.31.bb +++ b/meta/recipes-core/glibc/glibc-testsuite_2.32.bb | |||
diff --git a/meta/recipes-core/glibc/glibc-version.inc b/meta/recipes-core/glibc/glibc-version.inc index c2d68979eb..2e0a71c303 100644 --- a/meta/recipes-core/glibc/glibc-version.inc +++ b/meta/recipes-core/glibc/glibc-version.inc | |||
@@ -1,7 +1,7 @@ | |||
1 | SRCBRANCH ?= "release/2.31/master" | 1 | SRCBRANCH ?= "release/2.32/master" |
2 | PV = "2.31+git${SRCPV}" | 2 | PV = "2.32" |
3 | SRCREV_glibc ?= "109474122400ca7d60782b131dc867a5c1f2fe55" | 3 | SRCREV_glibc ?= "3de512be7ea6053255afed6154db9ee31d4e557a" |
4 | SRCREV_localedef ?= "cd9f958c4c94a638fa7b2b4e21627364f1a1a655" | 4 | SRCREV_localedef ?= "b6ca7c146c6d2c93cddfa61e395cb8a196e3d46f" |
5 | 5 | ||
6 | GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git" | 6 | GLIBC_GIT_URI ?= "git://sourceware.org/git/glibc.git" |
7 | 7 | ||
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 d0786be8b8..e0ec1887dc 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,7 +1,7 @@ | |||
1 | From 3dcf144e998aed17b3fb957a255b1e923ba07d71 Mon Sep 17 00:00:00 2001 | 1 | From 5db90855621a81d02f1434d5602cefea8c45de1c Mon Sep 17 00:00:00 2001 |
2 | From: Jason Wessel <jason.wessel@windriver.com> | 2 | From: Jason Wessel <jason.wessel@windriver.com> |
3 | Date: Sat, 7 Dec 2019 09:59:22 -0800 | 3 | Date: Sat, 7 Dec 2019 09:59:22 -0800 |
4 | Subject: [PATCH] localedef: Add hardlink resolver from util-linux | 4 | Subject: [PATCH 01/29] localedef: Add hardlink resolver from util-linux |
5 | 5 | ||
6 | The hard link resolver that is built into localedef cannot be run in | 6 | The hard link resolver that is built into localedef cannot be run in |
7 | parallel. It will search sibling directories (which are be processed | 7 | parallel. It will search sibling directories (which are be processed |
@@ -1128,3 +1128,6 @@ index 0000000000..0129a85e2e | |||
1128 | +} | 1128 | +} |
1129 | + | 1129 | + |
1130 | +#endif | 1130 | +#endif |
1131 | -- | ||
1132 | 2.27.0 | ||
1133 | |||
diff --git a/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-to-build.patch b/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-to-build.patch deleted file mode 100644 index d6652981a8..0000000000 --- a/meta/recipes-core/glibc/glibc/0001-localedef-Add-hardlink-resolver-to-build.patch +++ /dev/null | |||
@@ -1,52 +0,0 @@ | |||
1 | From 56ae260ac24ade94e2e0e77c81751312372d253f Mon Sep 17 00:00:00 2001 | ||
2 | From: Jason Wessel <jason.wessel@windriver.com> | ||
3 | Date: Sat, 7 Dec 2019 09:56:23 -0800 | ||
4 | Subject: [PATCH] localedef: Add hardlink resolver to build | ||
5 | |||
6 | The sourcecode for this is imported from util-linux and is kept with | ||
7 | glibc sources | ||
8 | |||
9 | Upstream-Status: Pending | ||
10 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | ||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | Makefile.in | 8 +++++++- | ||
14 | 1 file changed, 7 insertions(+), 1 deletion(-) | ||
15 | |||
16 | diff --git a/Makefile.in b/Makefile.in | ||
17 | index 77fbded..a87e5b2 100644 | ||
18 | --- a/Makefile.in | ||
19 | +++ b/Makefile.in | ||
20 | @@ -40,6 +40,8 @@ WARNFLAGS = -Wall -Wno-format | ||
21 | FULLCC = $(CC) $(CPPFLAGS) $(CFLAGS) \ | ||
22 | $(DEFINES) $(INCLUDES) $(WARNFLAGS) | ||
23 | |||
24 | +CROSS_LOCALEDEF_HARDLINK_OBJS = cross-localedef-hardlink.o | ||
25 | + | ||
26 | LOCALEDEF_OBJS = charmap.o charmap-dir.o ld-address.o ld-collate.o \ | ||
27 | ld-ctype.o ld-identification.o ld-measurement.o \ | ||
28 | ld-messages.o ld-monetary.o ld-name.o ld-numeric.o \ | ||
29 | @@ -54,11 +56,14 @@ LOCALEDEF_OBJS = charmap.o charmap-dir.o ld-address.o ld-collate.o \ | ||
30 | asprintf.o getdelim.o localedef_extra.o \ | ||
31 | obstack_printf.o vasprintf.o | ||
32 | |||
33 | -all: localedef$(EXEEXT) | ||
34 | +all: localedef$(EXEEXT) cross-localedef-hardlink$(EXEEXT) | ||
35 | |||
36 | localedef$(EXEEXT): $(LOCALEDEF_OBJS) | ||
37 | $(CC) -o $@ $(LOCALEDEF_OBJS) $(LIBS) | ||
38 | |||
39 | +cross-localedef-hardlink$(EXEEXT): $(CROSS_LOCALEDEF_HARDLINK_OBJS) | ||
40 | + $(CC) -o $@ $(CROSS_LOCALEDEF_HARDLINK_OBJS) $(LIBS) | ||
41 | + | ||
42 | clean: | ||
43 | rm -f locale$(EXEEXT) $(LOCALEDEF_OBJS) | ||
44 | |||
45 | @@ -77,6 +82,7 @@ clean: | ||
46 | %.o: $(srcdir)/%.c | ||
47 | $(FULLCC) -c -o $@ $< | ||
48 | |||
49 | +cross-localedef-hardlink.o: glibc/locale/programs/cross-localedef-hardlink.c | ||
50 | charmap.o: glibc/locale/programs/charmap.c | ||
51 | charmap-dir.o: glibc/locale/programs/charmap-dir.c | ||
52 | ld-address.o: glibc/locale/programs/ld-address.c | ||
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 5222e37d1a..05b76803b4 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,7 +1,7 @@ | |||
1 | From b52dba15527380cc18635e3696e0ef87efee9a84 Mon Sep 17 00:00:00 2001 | 1 | From ab022ce3c1c01fd6c850f541a33efd0cacabe052 Mon Sep 17 00:00:00 2001 |
2 | From: Jason Wessel <jason.wessel@windriver.com> | 2 | From: Jason Wessel <jason.wessel@windriver.com> |
3 | Date: Sat, 7 Dec 2019 10:01:37 -0800 | 3 | Date: Sat, 7 Dec 2019 10:01:37 -0800 |
4 | Subject: [PATCH] localedef: fix-ups hardlink to make it compile | 4 | Subject: [PATCH 02/29] localedef: fix-ups hardlink to make it compile |
5 | 5 | ||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> | 7 | Signed-off-by: Jason Wessel <jason.wessel@windriver.com> |
@@ -236,3 +236,6 @@ index 63615896b0..726e6dd948 100644 | |||
236 | } | 236 | } |
237 | continue; | 237 | continue; |
238 | } | 238 | } |
239 | -- | ||
240 | 2.27.0 | ||
241 | |||
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 4cdc8354b6..743994f2db 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,7 +1,8 @@ | |||
1 | From 6987ad183770cb56680ccc4f6ea065a04f31ccb6 Mon Sep 17 00:00:00 2001 | 1 | From de4322ef6d4dc9fc3ee9b69af1c10edbc64a66a3 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:48:24 +0000 | 3 | Date: Wed, 18 Mar 2015 01:48:24 +0000 |
4 | Subject: [PATCH] nativesdk-glibc: Look for host system ld.so.cache as well | 4 | Subject: [PATCH 03/29] nativesdk-glibc: Look for host system ld.so.cache as |
5 | well | ||
5 | 6 | ||
6 | Upstream-Status: Inappropriate [embedded specific] | 7 | Upstream-Status: Inappropriate [embedded specific] |
7 | 8 | ||
@@ -30,10 +31,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
30 | 1 file changed, 8 insertions(+), 8 deletions(-) | 31 | 1 file changed, 8 insertions(+), 8 deletions(-) |
31 | 32 | ||
32 | diff --git a/elf/dl-load.c b/elf/dl-load.c | 33 | diff --git a/elf/dl-load.c b/elf/dl-load.c |
33 | index a6b80f9395..3226f2e531 100644 | 34 | index e39980fb19..565b039b23 100644 |
34 | --- a/elf/dl-load.c | 35 | --- a/elf/dl-load.c |
35 | +++ b/elf/dl-load.c | 36 | +++ b/elf/dl-load.c |
36 | @@ -2073,6 +2073,14 @@ _dl_map_object (struct link_map *loader, const char *name, | 37 | @@ -2160,6 +2160,14 @@ _dl_map_object (struct link_map *loader, const char *name, |
37 | } | 38 | } |
38 | } | 39 | } |
39 | 40 | ||
@@ -48,7 +49,7 @@ index a6b80f9395..3226f2e531 100644 | |||
48 | #ifdef USE_LDCONFIG | 49 | #ifdef USE_LDCONFIG |
49 | if (fd == -1 | 50 | if (fd == -1 |
50 | && (__glibc_likely ((mode & __RTLD_SECURE) == 0) | 51 | && (__glibc_likely ((mode & __RTLD_SECURE) == 0) |
51 | @@ -2131,14 +2139,6 @@ _dl_map_object (struct link_map *loader, const char *name, | 52 | @@ -2218,14 +2226,6 @@ _dl_map_object (struct link_map *loader, const char *name, |
52 | } | 53 | } |
53 | #endif | 54 | #endif |
54 | 55 | ||
@@ -63,3 +64,6 @@ index a6b80f9395..3226f2e531 100644 | |||
63 | /* Add another newline when we are tracing the library loading. */ | 64 | /* Add another newline when we are tracing the library loading. */ |
64 | if (__glibc_unlikely (GLRO(dl_debug_mask) & DL_DEBUG_LIBS)) | 65 | if (__glibc_unlikely (GLRO(dl_debug_mask) & DL_DEBUG_LIBS)) |
65 | _dl_debug_printf ("\n"); | 66 | _dl_debug_printf ("\n"); |
67 | -- | ||
68 | 2.27.0 | ||
69 | |||
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 62e12897f5..a3b5b7750c 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,7 +1,8 @@ | |||
1 | From 7806340c2accc2c51e7e861b618c29fb5609a007 Mon Sep 17 00:00:00 2001 | 1 | From 258c44e4ecffd830cb89d0016d45b2bac765f559 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:50:00 +0000 | 3 | Date: Wed, 18 Mar 2015 01:50:00 +0000 |
4 | Subject: [PATCH] nativesdk-glibc: Fix buffer overrun with a relocated SDK | 4 | Subject: [PATCH 04/29] nativesdk-glibc: Fix buffer overrun with a relocated |
5 | SDK | ||
5 | 6 | ||
6 | When ld-linux-*.so.2 is relocated to a path that is longer than the | 7 | When ld-linux-*.so.2 is relocated to a path that is longer than the |
7 | original fixed location, the dynamic loader will crash in open_path | 8 | original fixed location, the dynamic loader will crash in open_path |
@@ -21,10 +22,10 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
21 | 1 file changed, 12 insertions(+) | 22 | 1 file changed, 12 insertions(+) |
22 | 23 | ||
23 | diff --git a/elf/dl-load.c b/elf/dl-load.c | 24 | diff --git a/elf/dl-load.c b/elf/dl-load.c |
24 | index 3226f2e531..7cb8a86fab 100644 | 25 | index 565b039b23..e1b3486549 100644 |
25 | --- a/elf/dl-load.c | 26 | --- a/elf/dl-load.c |
26 | +++ b/elf/dl-load.c | 27 | +++ b/elf/dl-load.c |
27 | @@ -1773,7 +1773,19 @@ open_path (const char *name, size_t namelen, int mode, | 28 | @@ -1860,7 +1860,19 @@ open_path (const char *name, size_t namelen, int mode, |
28 | given on the command line when rtld is run directly. */ | 29 | given on the command line when rtld is run directly. */ |
29 | return -1; | 30 | return -1; |
30 | 31 | ||
@@ -44,3 +45,6 @@ index 3226f2e531..7cb8a86fab 100644 | |||
44 | do | 45 | do |
45 | { | 46 | { |
46 | struct r_search_path_elem *this_dir = *dirs; | 47 | struct r_search_path_elem *this_dir = *dirs; |
48 | -- | ||
49 | 2.27.0 | ||
50 | |||
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 294c2b975e..2073576aac 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,7 +1,8 @@ | |||
1 | From 1b97befbe693eb93a77b6098f6ae1394a53462f4 Mon Sep 17 00:00:00 2001 | 1 | From 19cd858f5f04a6ac584fbd89a2fbc51791263b85 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:51:38 +0000 | 3 | Date: Wed, 18 Mar 2015 01:51:38 +0000 |
4 | Subject: [PATCH] nativesdk-glibc: Raise the size of arrays containing dl paths | 4 | Subject: [PATCH 05/29] nativesdk-glibc: Raise the size of arrays containing dl |
5 | paths | ||
5 | 6 | ||
6 | This patch puts the dynamic loader path in the binaries, SYSTEM_DIRS strings | 7 | This patch puts the dynamic loader path in the binaries, SYSTEM_DIRS strings |
7 | and lengths as well as ld.so.cache path in the dynamic loader to specific | 8 | and lengths as well as ld.so.cache path in the dynamic loader to specific |
@@ -25,7 +26,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
25 | 7 files changed, 14 insertions(+), 10 deletions(-) | 26 | 7 files changed, 14 insertions(+), 10 deletions(-) |
26 | 27 | ||
27 | diff --git a/elf/dl-cache.c b/elf/dl-cache.c | 28 | diff --git a/elf/dl-cache.c b/elf/dl-cache.c |
28 | index 3eedd9afcf..efdfe5cae7 100644 | 29 | index 93d185e788..e115b18756 100644 |
29 | --- a/elf/dl-cache.c | 30 | --- a/elf/dl-cache.c |
30 | +++ b/elf/dl-cache.c | 31 | +++ b/elf/dl-cache.c |
31 | @@ -133,6 +133,10 @@ do \ | 32 | @@ -133,6 +133,10 @@ do \ |
@@ -40,10 +41,10 @@ index 3eedd9afcf..efdfe5cae7 100644 | |||
40 | _dl_cache_libcmp (const char *p1, const char *p2) | 41 | _dl_cache_libcmp (const char *p1, const char *p2) |
41 | { | 42 | { |
42 | diff --git a/elf/dl-load.c b/elf/dl-load.c | 43 | diff --git a/elf/dl-load.c b/elf/dl-load.c |
43 | index 7cb8a86fab..e32d4aa936 100644 | 44 | index e1b3486549..5226d0c4fa 100644 |
44 | --- a/elf/dl-load.c | 45 | --- a/elf/dl-load.c |
45 | +++ b/elf/dl-load.c | 46 | +++ b/elf/dl-load.c |
46 | @@ -110,8 +110,8 @@ static size_t max_capstrlen attribute_relro; | 47 | @@ -111,8 +111,8 @@ static size_t max_capstrlen attribute_relro; |
47 | gen-trusted-dirs.awk. */ | 48 | gen-trusted-dirs.awk. */ |
48 | #include "trusted-dirs.h" | 49 | #include "trusted-dirs.h" |
49 | 50 | ||
@@ -66,10 +67,10 @@ index 331cc1df48..885b2d9476 100644 | |||
66 | +const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp"))) | 67 | +const char __invoke_dynamic_linker__[4096] __attribute__ ((section (".interp"))) |
67 | = RUNTIME_LINKER; | 68 | = RUNTIME_LINKER; |
68 | diff --git a/elf/ldconfig.c b/elf/ldconfig.c | 69 | diff --git a/elf/ldconfig.c b/elf/ldconfig.c |
69 | index 681ed78496..8833ed0a6b 100644 | 70 | index 0c090dca15..6bb6e0fe72 100644 |
70 | --- a/elf/ldconfig.c | 71 | --- a/elf/ldconfig.c |
71 | +++ b/elf/ldconfig.c | 72 | +++ b/elf/ldconfig.c |
72 | @@ -168,6 +168,9 @@ static struct argp argp = | 73 | @@ -171,6 +171,9 @@ static struct argp argp = |
73 | options, parse_opt, NULL, doc, NULL, more_help, NULL | 74 | options, parse_opt, NULL, doc, NULL, more_help, NULL |
74 | }; | 75 | }; |
75 | 76 | ||
@@ -80,18 +81,18 @@ index 681ed78496..8833ed0a6b 100644 | |||
80 | a platform. */ | 81 | a platform. */ |
81 | static int | 82 | static int |
82 | diff --git a/elf/rtld.c b/elf/rtld.c | 83 | diff --git a/elf/rtld.c b/elf/rtld.c |
83 | index 553cfbd1b7..39347c2c03 100644 | 84 | index 5b882163fa..db407b5d8b 100644 |
84 | --- a/elf/rtld.c | 85 | --- a/elf/rtld.c |
85 | +++ b/elf/rtld.c | 86 | +++ b/elf/rtld.c |
86 | @@ -175,6 +175,7 @@ dso_name_valid_for_suid (const char *p) | 87 | @@ -217,6 +217,7 @@ dso_name_valid_for_suid (const char *p) |
87 | } | 88 | } |
88 | return *p != '\0'; | 89 | return *p != '\0'; |
89 | } | 90 | } |
90 | +extern const char LD_SO_CACHE[4096] __attribute__ ((section (".ldsocache"))); | 91 | +extern const char LD_SO_CACHE[4096] __attribute__ ((section (".ldsocache"))); |
91 | 92 | ||
92 | /* LD_AUDIT variable contents. Must be processed before the | 93 | static void |
93 | audit_list below. */ | 94 | audit_list_init (struct audit_list *list) |
94 | @@ -1222,13 +1223,13 @@ of this helper program; chances are you did not intend to run this program.\n\ | 95 | @@ -1286,13 +1287,13 @@ of this helper program; chances are you did not intend to run this program.\n\ |
95 | --list list all dependencies and how they are resolved\n\ | 96 | --list list all dependencies and how they are resolved\n\ |
96 | --verify verify that given object really is a dynamically linked\n\ | 97 | --verify verify that given object really is a dynamically linked\n\ |
97 | object we can handle\n\ | 98 | object we can handle\n\ |
@@ -135,3 +136,6 @@ index 6b310e9e15..3877311df4 100644 | |||
135 | #ifndef add_system_dir | 136 | #ifndef add_system_dir |
136 | # define add_system_dir(dir) add_dir (dir) | 137 | # define add_system_dir(dir) add_dir (dir) |
137 | #endif | 138 | #endif |
139 | -- | ||
140 | 2.27.0 | ||
141 | |||
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 db8b6c0f1c..372dca727e 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,7 +1,7 @@ | |||
1 | From a752857cc342ee5136c9a593037b6ee6ff8af8ee Mon Sep 17 00:00:00 2001 | 1 | From bd0486cab67c3441210aed48caab67418610a765 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 | 3 | Date: Thu, 31 Dec 2015 14:35:35 -0800 |
4 | Subject: [PATCH] nativesdk-glibc: Allow 64 bit atomics for x86 | 4 | Subject: [PATCH 06/29] nativesdk-glibc: Allow 64 bit atomics for x86 |
5 | 5 | ||
6 | The fix consist of allowing 64bit atomic ops for x86. | 6 | The fix consist of allowing 64bit atomic ops for x86. |
7 | This should be safe for i586 and newer CPUs. | 7 | This should be safe for i586 and newer CPUs. |
@@ -37,3 +37,6 @@ index bb49648374..aa08d3c0a7 100644 | |||
37 | # define SP_REG "esp" | 37 | # define SP_REG "esp" |
38 | # define SEG_REG "gs" | 38 | # define SEG_REG "gs" |
39 | # define BR_CONSTRAINT "r" | 39 | # define BR_CONSTRAINT "r" |
40 | -- | ||
41 | 2.27.0 | ||
42 | |||
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 27cd17cdcd..729ce1b42d 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,7 +1,7 @@ | |||
1 | From 3df91d1d8b9c7a01b3ef8133c4f9b9764227d583 Mon Sep 17 00:00:00 2001 | 1 | From 9a8bf11ea375a2fe5eddb30bc10943e64d3b96a4 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 3 Aug 2018 09:55:12 -0700 | 3 | Date: Fri, 3 Aug 2018 09:55:12 -0700 |
4 | Subject: [PATCH] nativesdk-glibc: Make relocatable install for locales | 4 | Subject: [PATCH 07/29] nativesdk-glibc: Make relocatable install for locales |
5 | 5 | ||
6 | The glibc locale path is hard-coded to the install prefix, but in SDKs we need | 6 | The glibc locale path is hard-coded to the install prefix, but in SDKs we need |
7 | to be able to relocate the binaries. Expand the strings to 4K and put them in a | 7 | to be able to relocate the binaries. Expand the strings to 4K and put them in a |
@@ -12,16 +12,17 @@ Upstream-Status: Inappropriate (OE-specific) | |||
12 | Signed-off-by: Ross Burton <ross.burton@intel.com> | 12 | Signed-off-by: Ross Burton <ross.burton@intel.com> |
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
14 | --- | 14 | --- |
15 | locale/findlocale.c | 4 ++-- | 15 | locale/findlocale.c | 4 ++-- |
16 | locale/loadarchive.c | 2 +- | 16 | locale/loadarchive.c | 2 +- |
17 | locale/localeinfo.h | 2 +- | 17 | locale/localeinfo.h | 2 +- |
18 | 3 files changed, 4 insertions(+), 4 deletions(-) | 18 | locale/programs/locale.c | 7 ++++--- |
19 | 4 files changed, 8 insertions(+), 7 deletions(-) | ||
19 | 20 | ||
20 | Index: git/locale/findlocale.c | 21 | diff --git a/locale/findlocale.c b/locale/findlocale.c |
21 | =================================================================== | 22 | index 9cd3b71a6d..84272310e0 100644 |
22 | --- git.orig/locale/findlocale.c | 23 | --- a/locale/findlocale.c |
23 | +++ git/locale/findlocale.c | 24 | +++ b/locale/findlocale.c |
24 | @@ -56,7 +56,7 @@ struct __locale_data *const _nl_C[] attr | 25 | @@ -56,7 +56,7 @@ struct __locale_data *const _nl_C[] attribute_hidden = |
25 | which are somehow addressed. */ | 26 | which are somehow addressed. */ |
26 | struct loaded_l10nfile *_nl_locale_file_list[__LC_LAST]; | 27 | struct loaded_l10nfile *_nl_locale_file_list[__LC_LAST]; |
27 | 28 | ||
@@ -30,7 +31,7 @@ Index: git/locale/findlocale.c | |||
30 | 31 | ||
31 | /* Checks if the name is actually present, that is, not NULL and not | 32 | /* Checks if the name is actually present, that is, not NULL and not |
32 | empty. */ | 33 | empty. */ |
33 | @@ -166,7 +166,7 @@ _nl_find_locale (const char *locale_path | 34 | @@ -166,7 +166,7 @@ _nl_find_locale (const char *locale_path, size_t locale_path_len, |
34 | 35 | ||
35 | /* Nothing in the archive. Set the default path to search below. */ | 36 | /* Nothing in the archive. Set the default path to search below. */ |
36 | locale_path = _nl_default_locale_path; | 37 | locale_path = _nl_default_locale_path; |
@@ -39,10 +40,10 @@ Index: git/locale/findlocale.c | |||
39 | } | 40 | } |
40 | else | 41 | else |
41 | /* 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 |
42 | Index: git/locale/loadarchive.c | 43 | diff --git a/locale/loadarchive.c b/locale/loadarchive.c |
43 | =================================================================== | 44 | index ba0fe45648..9737fd4cda 100644 |
44 | --- git.orig/locale/loadarchive.c | 45 | --- a/locale/loadarchive.c |
45 | +++ git/locale/loadarchive.c | 46 | +++ b/locale/loadarchive.c |
46 | @@ -42,7 +42,7 @@ | 47 | @@ -42,7 +42,7 @@ |
47 | 48 | ||
48 | 49 | ||
@@ -52,11 +53,11 @@ Index: git/locale/loadarchive.c | |||
52 | 53 | ||
53 | /* Size of initial mapping window, optimal if large enough to | 54 | /* Size of initial mapping window, optimal if large enough to |
54 | cover the header plus the initial locale. */ | 55 | cover the header plus the initial locale. */ |
55 | Index: git/locale/localeinfo.h | 56 | diff --git a/locale/localeinfo.h b/locale/localeinfo.h |
56 | =================================================================== | 57 | index 1bfe22aa7f..fdc283c69a 100644 |
57 | --- git.orig/locale/localeinfo.h | 58 | --- a/locale/localeinfo.h |
58 | +++ git/locale/localeinfo.h | 59 | +++ b/locale/localeinfo.h |
59 | @@ -331,7 +331,7 @@ _nl_lookup_word (locale_t l, int categor | 60 | @@ -331,7 +331,7 @@ _nl_lookup_word (locale_t l, int category, int item) |
60 | } | 61 | } |
61 | 62 | ||
62 | /* Default search path if no LOCPATH environment variable. */ | 63 | /* Default search path if no LOCPATH environment variable. */ |
@@ -65,11 +66,11 @@ Index: git/locale/localeinfo.h | |||
65 | 66 | ||
66 | /* 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. |
67 | If *NAME is "", use environment variables as specified by POSIX, and | 68 | If *NAME is "", use environment variables as specified by POSIX, and |
68 | Index: git/locale/programs/locale.c | 69 | diff --git a/locale/programs/locale.c b/locale/programs/locale.c |
69 | =================================================================== | 70 | index e2e309c2a1..61a92cdcd1 100644 |
70 | --- git.orig/locale/programs/locale.c | 71 | --- a/locale/programs/locale.c |
71 | +++ git/locale/programs/locale.c | 72 | +++ b/locale/programs/locale.c |
72 | @@ -632,6 +632,7 @@ nameentcmp (const void *a, const void *b | 73 | @@ -632,6 +632,7 @@ nameentcmp (const void *a, const void *b) |
73 | ((const struct nameent *) b)->name); | 74 | ((const struct nameent *) b)->name); |
74 | } | 75 | } |
75 | 76 | ||
@@ -77,7 +78,7 @@ Index: git/locale/programs/locale.c | |||
77 | 78 | ||
78 | static int | 79 | static int |
79 | write_archive_locales (void **all_datap, char *linebuf) | 80 | write_archive_locales (void **all_datap, char *linebuf) |
80 | @@ -645,7 +646,7 @@ write_archive_locales (void **all_datap, | 81 | @@ -645,7 +646,7 @@ write_archive_locales (void **all_datap, char *linebuf) |
81 | int fd, ret = 0; | 82 | int fd, ret = 0; |
82 | uint32_t cnt; | 83 | uint32_t cnt; |
83 | 84 | ||
@@ -86,7 +87,7 @@ Index: git/locale/programs/locale.c | |||
86 | if (fd < 0) | 87 | if (fd < 0) |
87 | return 0; | 88 | return 0; |
88 | 89 | ||
89 | @@ -700,8 +701,8 @@ write_archive_locales (void **all_datap, | 90 | @@ -700,8 +701,8 @@ write_archive_locales (void **all_datap, char *linebuf) |
90 | if (cnt) | 91 | if (cnt) |
91 | putchar_unlocked ('\n'); | 92 | putchar_unlocked ('\n'); |
92 | 93 | ||
@@ -97,3 +98,6 @@ Index: git/locale/programs/locale.c | |||
97 | 98 | ||
98 | locrec = (struct locrecent *) (addr + names[cnt].locrec_offset); | 99 | locrec = (struct locrecent *) (addr + names[cnt].locrec_offset); |
99 | 100 | ||
101 | -- | ||
102 | 2.27.0 | ||
103 | |||
diff --git a/meta/recipes-core/glibc/glibc/0008-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch b/meta/recipes-core/glibc/glibc/0008-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch index 3dac325380..5e3b3e2d7b 100644 --- a/meta/recipes-core/glibc/glibc/0008-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch +++ b/meta/recipes-core/glibc/glibc/0008-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 61b6c9737897c5828ef4b40699ee0a74c570034a Mon Sep 17 00:00:00 2001 | 1 | From 59b0a78ae706a540dbd8905bc97c875220d6aeb2 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:01:50 +0000 | 3 | Date: Wed, 18 Mar 2015 00:01:50 +0000 |
4 | Subject: [PATCH] fsl e500/e5500/e6500/603e fsqrt implementation | 4 | Subject: [PATCH 08/29] fsl e500/e5500/e6500/603e fsqrt implementation |
5 | 5 | ||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | Signed-off-by: Edmar Wienskoski <edmar@freescale.com> | 7 | Signed-off-by: Edmar Wienskoski <edmar@freescale.com> |
@@ -1579,3 +1579,6 @@ index 0000000000..04ff8cc181 | |||
1579 | +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/e6500/fpu/Implies | 1579 | +++ b/sysdeps/unix/sysv/linux/powerpc/powerpc64/e6500/fpu/Implies |
1580 | @@ -0,0 +1 @@ | 1580 | @@ -0,0 +1 @@ |
1581 | +powerpc/powerpc64/e6500/fpu | 1581 | +powerpc/powerpc64/e6500/fpu |
1582 | -- | ||
1583 | 2.27.0 | ||
1584 | |||
diff --git a/meta/recipes-core/glibc/glibc/0010-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch b/meta/recipes-core/glibc/glibc/0009-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch index 01446abc43..a94ed207f5 100644 --- a/meta/recipes-core/glibc/glibc/0010-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch +++ b/meta/recipes-core/glibc/glibc/0009-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 4483a83074a340a921e319b88d72166f18e0df0b Mon Sep 17 00:00:00 2001 | 1 | From 78f67f016ca9e3f7a37af86cf6e400cf17cf1d05 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:15:07 +0000 | 3 | Date: Wed, 18 Mar 2015 00:15:07 +0000 |
4 | Subject: [PATCH] ppc/sqrt: Fix undefined reference to `__sqrt_finite' | 4 | Subject: [PATCH 09/29] ppc/sqrt: Fix undefined reference to `__sqrt_finite' |
5 | 5 | ||
6 | on ppc fixes the errors like below | 6 | on ppc fixes the errors like below |
7 | | ./.libs/libpulsecore-1.1.so: undefined reference to `__sqrt_finite' | 7 | | ./.libs/libpulsecore-1.1.so: undefined reference to `__sqrt_finite' |
@@ -203,3 +203,6 @@ index 26fa067abf..9d175122a8 100644 | |||
203 | return f_washf (b); | 203 | return f_washf (b); |
204 | } | 204 | } |
205 | +strong_alias (__ieee754_sqrtf, __sqrtf_finite) | 205 | +strong_alias (__ieee754_sqrtf, __sqrtf_finite) |
206 | -- | ||
207 | 2.27.0 | ||
208 | |||
diff --git a/meta/recipes-core/glibc/glibc/0011-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch b/meta/recipes-core/glibc/glibc/0010-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch index 451f372650..743bea1433 100644 --- a/meta/recipes-core/glibc/glibc/0011-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch +++ b/meta/recipes-core/glibc/glibc/0010-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch | |||
@@ -1,8 +1,8 @@ | |||
1 | From 347b2e31d010b04c42e78157a028aa1d58fe0f5e Mon Sep 17 00:00:00 2001 | 1 | From 670b5d70ab62b42ab02a8e18b8fcee2879b8c4a0 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:16:38 +0000 | 3 | Date: Wed, 18 Mar 2015 00:16:38 +0000 |
4 | Subject: [PATCH] __ieee754_sqrt{,f} are now inline functions and call out | 4 | Subject: [PATCH 10/29] __ieee754_sqrt{,f} are now inline functions and call |
5 | __slow versions | 5 | out __slow versions |
6 | 6 | ||
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
8 | 8 | ||
@@ -382,3 +382,6 @@ index 9d175122a8..10de1f0cc3 100644 | |||
382 | +} | 382 | +} |
383 | + | 383 | + |
384 | strong_alias (__ieee754_sqrtf, __sqrtf_finite) | 384 | strong_alias (__ieee754_sqrtf, __sqrtf_finite) |
385 | -- | ||
386 | 2.27.0 | ||
387 | |||
diff --git a/meta/recipes-core/glibc/glibc/0012-Quote-from-bug-1443-which-explains-what-the-patch-do.patch b/meta/recipes-core/glibc/glibc/0011-Quote-from-bug-1443-which-explains-what-the-patch-do.patch index a0b46c0479..a9280b7c34 100644 --- a/meta/recipes-core/glibc/glibc/0012-Quote-from-bug-1443-which-explains-what-the-patch-do.patch +++ b/meta/recipes-core/glibc/glibc/0011-Quote-from-bug-1443-which-explains-what-the-patch-do.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From 8ca8e5cd78cbd37a713e1181f8f6641b57352aa8 Mon Sep 17 00:00:00 2001 | 1 | From de7a7c04a92dbc5d35cb37e47c471e12784cc95e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:20:09 +0000 | 3 | Date: Wed, 18 Mar 2015 00:20:09 +0000 |
4 | Subject: [PATCH] Quote from bug 1443 which explains what the patch does : | 4 | Subject: [PATCH 11/29] Quote from bug 1443 which explains what the patch does |
5 | : | ||
5 | 6 | ||
6 | We build some random program and link it with -lust. When we run it, | 7 | We build some random program and link it with -lust. When we run it, |
7 | it dies with a SIGSEGV before reaching main(). | 8 | it dies with a SIGSEGV before reaching main(). |
@@ -56,3 +57,6 @@ index 90856779b1..a29bb86c56 100644 | |||
56 | break; | 57 | break; |
57 | 58 | ||
58 | case R_ARM_TLS_TPOFF32: | 59 | case R_ARM_TLS_TPOFF32: |
60 | -- | ||
61 | 2.27.0 | ||
62 | |||
diff --git a/meta/recipes-core/glibc/glibc/0013-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch b/meta/recipes-core/glibc/glibc/0012-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch index 736de8cf04..ab07455ade 100644 --- a/meta/recipes-core/glibc/glibc/0013-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch +++ b/meta/recipes-core/glibc/glibc/0012-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 21509735678990760d5ebf9d0c65efa4b52b838d Mon Sep 17 00:00:00 2001 | 1 | From c8807899367e64d803585e7dd4b56a1085d5893b Mon Sep 17 00:00:00 2001 |
2 | From: Ting Liu <b28495@freescale.com> | 2 | From: Ting Liu <b28495@freescale.com> |
3 | Date: Wed, 19 Dec 2012 04:39:57 -0600 | 3 | Date: Wed, 19 Dec 2012 04:39:57 -0600 |
4 | Subject: [PATCH] eglibc: run libm-err-tab.pl with specific dirs in ${S} | 4 | Subject: [PATCH 12/29] eglibc: run libm-err-tab.pl with specific dirs in ${S} |
5 | 5 | ||
6 | libm-err-tab.pl will parse all the files named "libm-test-ulps" | 6 | libm-err-tab.pl will parse all the files named "libm-test-ulps" |
7 | in the given dir recursively. To avoid parsing the one in | 7 | in the given dir recursively. To avoid parsing the one in |
@@ -31,3 +31,6 @@ index c61e11dcd7..5d859e6f84 100644 | |||
31 | $(move-if-change) $(objpfx)libm-err-tmp $(objpfx)libm-err.texi | 31 | $(move-if-change) $(objpfx)libm-err-tmp $(objpfx)libm-err.texi |
32 | touch $@ | 32 | touch $@ |
33 | 33 | ||
34 | -- | ||
35 | 2.27.0 | ||
36 | |||
diff --git a/meta/recipes-core/glibc/glibc/0014-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch b/meta/recipes-core/glibc/glibc/0013-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch index e73b640c16..d875825ff9 100644 --- a/meta/recipes-core/glibc/glibc/0014-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch +++ b/meta/recipes-core/glibc/glibc/0013-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch | |||
@@ -1,8 +1,8 @@ | |||
1 | From e33deb119734ef443ef44c42a00a569f90e1e149 Mon Sep 17 00:00:00 2001 | 1 | From 86fea3409b89f9d8884053a519282f2f30d7ea87 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:24:46 +0000 | 3 | Date: Wed, 18 Mar 2015 00:24:46 +0000 |
4 | Subject: [PATCH] __ieee754_sqrt{,f} are now inline functions and call out | 4 | Subject: [PATCH 13/29] __ieee754_sqrt{,f} are now inline functions and call |
5 | __slow versions | 5 | out __slow versions |
6 | 6 | ||
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
8 | 8 | ||
@@ -56,3 +56,6 @@ index 812653558f..10de1f0cc3 100644 | |||
56 | float b; | 56 | float b; |
57 | #endif | 57 | #endif |
58 | { | 58 | { |
59 | -- | ||
60 | 2.27.0 | ||
61 | |||
diff --git a/meta/recipes-core/glibc/glibc/0015-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch b/meta/recipes-core/glibc/glibc/0014-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch index 0cdd0567df..954534bae2 100644 --- a/meta/recipes-core/glibc/glibc/0015-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch +++ b/meta/recipes-core/glibc/glibc/0014-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From c50cae36e90c41849301a9a668adf31e81e43a07 Mon Sep 17 00:00:00 2001 | 1 | From a3c4f67fb3cb02855073a9cdbcf2881fb53144f0 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:27:10 +0000 | 3 | Date: Wed, 18 Mar 2015 00:27:10 +0000 |
4 | Subject: [PATCH] sysdeps/gnu/configure.ac: handle correctly | 4 | Subject: [PATCH 14/29] sysdeps/gnu/configure.ac: handle correctly |
5 | $libc_cv_rootsbindir | 5 | $libc_cv_rootsbindir |
6 | 6 | ||
7 | Upstream-Status:Pending | 7 | Upstream-Status:Pending |
@@ -37,3 +37,6 @@ index 634fe4de2a..3db1697f4f 100644 | |||
37 | + test -n "$libc_cv_rootsbindir" || libc_cv_rootsbindir=/sbin | 37 | + test -n "$libc_cv_rootsbindir" || libc_cv_rootsbindir=/sbin |
38 | ;; | 38 | ;; |
39 | esac | 39 | esac |
40 | -- | ||
41 | 2.27.0 | ||
42 | |||
diff --git a/meta/recipes-core/glibc/glibc/0017-yes-within-the-path-sets-wrong-config-variables.patch b/meta/recipes-core/glibc/glibc/0015-yes-within-the-path-sets-wrong-config-variables.patch index 49089af41e..04a9bf01c4 100644 --- a/meta/recipes-core/glibc/glibc/0017-yes-within-the-path-sets-wrong-config-variables.patch +++ b/meta/recipes-core/glibc/glibc/0015-yes-within-the-path-sets-wrong-config-variables.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From c421cd7e885497a99179b982dc4a27e8405f8857 Mon Sep 17 00:00:00 2001 | 1 | From 17a602b89cbe53a5a92d0153ccb013a737f028cb Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:31:06 +0000 | 3 | Date: Wed, 18 Mar 2015 00:31:06 +0000 |
4 | Subject: [PATCH] 'yes' within the path sets wrong config variables | 4 | Subject: [PATCH 15/29] 'yes' within the path sets wrong config variables |
5 | 5 | ||
6 | It seems that the 'AC_EGREP_CPP(yes...' example is quite popular | 6 | It seems that the 'AC_EGREP_CPP(yes...' example is quite popular |
7 | but being such a short word to grep it is likely to produce | 7 | but being such a short word to grep it is likely to produce |
@@ -29,7 +29,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
29 | 12 files changed, 28 insertions(+), 28 deletions(-) | 29 | 12 files changed, 28 insertions(+), 28 deletions(-) |
30 | 30 | ||
31 | diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure | 31 | diff --git a/sysdeps/aarch64/configure b/sysdeps/aarch64/configure |
32 | index 5bd355a691..3bc5537bc0 100644 | 32 | index ac3cf6fd36..32add94df9 100644 |
33 | --- a/sysdeps/aarch64/configure | 33 | --- a/sysdeps/aarch64/configure |
34 | +++ b/sysdeps/aarch64/configure | 34 | +++ b/sysdeps/aarch64/configure |
35 | @@ -148,12 +148,12 @@ else | 35 | @@ -148,12 +148,12 @@ else |
@@ -48,7 +48,7 @@ index 5bd355a691..3bc5537bc0 100644 | |||
48 | else | 48 | else |
49 | libc_cv_aarch64_be=no | 49 | libc_cv_aarch64_be=no |
50 | diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac | 50 | diff --git a/sysdeps/aarch64/configure.ac b/sysdeps/aarch64/configure.ac |
51 | index 7851dd4dac..6e9238171f 100644 | 51 | index 8b042d6d05..3cdd262951 100644 |
52 | --- a/sysdeps/aarch64/configure.ac | 52 | --- a/sysdeps/aarch64/configure.ac |
53 | +++ b/sysdeps/aarch64/configure.ac | 53 | +++ b/sysdeps/aarch64/configure.ac |
54 | @@ -10,8 +10,8 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. | 54 | @@ -10,8 +10,8 @@ GLIBC_PROVIDES dnl See aclocal.m4 in the top level source directory. |
@@ -258,3 +258,6 @@ index f9cba6e15d..b21f72f1e4 100644 | |||
258 | #endif | 258 | #endif |
259 | ], libc_cv_ppc64_def_call_elf=yes, libc_cv_ppc64_def_call_elf=no)]) | 259 | ], libc_cv_ppc64_def_call_elf=yes, libc_cv_ppc64_def_call_elf=no)]) |
260 | if test $libc_cv_ppc64_def_call_elf = no; then | 260 | if test $libc_cv_ppc64_def_call_elf = no; then |
261 | -- | ||
262 | 2.27.0 | ||
263 | |||
diff --git a/meta/recipes-core/glibc/glibc/0016-Add-unused-attribute.patch b/meta/recipes-core/glibc/glibc/0016-Add-unused-attribute.patch deleted file mode 100644 index 574e7c3503..0000000000 --- a/meta/recipes-core/glibc/glibc/0016-Add-unused-attribute.patch +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | From c323125744020a29f79e50dc4d024b55c482eafc Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 18 Mar 2015 00:28:41 +0000 | ||
4 | Subject: [PATCH] Add unused attribute | ||
5 | |||
6 | Helps in avoiding gcc warning when header is is included in | ||
7 | a source file which does not use both functions | ||
8 | |||
9 | * iconv/gconv_charset.h (strip): | ||
10 | Add unused attribute. | ||
11 | |||
12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
13 | |||
14 | Upstream-Status: Pending | ||
15 | --- | ||
16 | iconv/gconv_charset.h | 2 +- | ||
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
18 | |||
19 | diff --git a/iconv/gconv_charset.h b/iconv/gconv_charset.h | ||
20 | index 348acc089b..fa92465d89 100644 | ||
21 | --- a/iconv/gconv_charset.h | ||
22 | +++ b/iconv/gconv_charset.h | ||
23 | @@ -21,7 +21,7 @@ | ||
24 | #include <locale.h> | ||
25 | |||
26 | |||
27 | -static void | ||
28 | +static void __attribute__ ((unused)) | ||
29 | strip (char *wp, const char *s) | ||
30 | { | ||
31 | int slash_count = 0; | ||
diff --git a/meta/recipes-core/glibc/glibc/0018-timezone-re-written-tzselect-as-posix-sh.patch b/meta/recipes-core/glibc/glibc/0016-timezone-re-written-tzselect-as-posix-sh.patch index 20b0ee98ea..cd072018e5 100644 --- a/meta/recipes-core/glibc/glibc/0018-timezone-re-written-tzselect-as-posix-sh.patch +++ b/meta/recipes-core/glibc/glibc/0016-timezone-re-written-tzselect-as-posix-sh.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 2023d88c355b8af6458c8e39ce38b75c1ca4ea2a Mon Sep 17 00:00:00 2001 | 1 | From 4762386b599f5c3287310a69ad3555e0129e0c51 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:33:03 +0000 | 3 | Date: Wed, 18 Mar 2015 00:33:03 +0000 |
4 | Subject: [PATCH] timezone: re-written tzselect as posix sh | 4 | Subject: [PATCH 16/29] timezone: re-written tzselect as posix sh |
5 | 5 | ||
6 | To avoid the bash dependency. | 6 | To avoid the bash dependency. |
7 | 7 | ||
@@ -40,3 +40,6 @@ index 18fce27e24..70745f9d36 100755 | |||
40 | 40 | ||
41 | # Output one argument as-is to standard output. | 41 | # Output one argument as-is to standard output. |
42 | # Safer than 'echo', which can mishandle '\' or leading '-'. | 42 | # Safer than 'echo', which can mishandle '\' or leading '-'. |
43 | -- | ||
44 | 2.27.0 | ||
45 | |||
diff --git a/meta/recipes-core/glibc/glibc/0019-Remove-bash-dependency-for-nscd-init-script.patch b/meta/recipes-core/glibc/glibc/0017-Remove-bash-dependency-for-nscd-init-script.patch index 1c15a51308..57907fe660 100644 --- a/meta/recipes-core/glibc/glibc/0019-Remove-bash-dependency-for-nscd-init-script.patch +++ b/meta/recipes-core/glibc/glibc/0017-Remove-bash-dependency-for-nscd-init-script.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 06da20d9f89907e5f2777537244e6589ca3c9703 Mon Sep 17 00:00:00 2001 | 1 | From dac46c07736a799fc82be03aa546b2d24c19ad78 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 31 Dec 2015 14:33:02 -0800 | 3 | Date: Thu, 31 Dec 2015 14:33:02 -0800 |
4 | Subject: [PATCH] Remove bash dependency for nscd init script | 4 | Subject: [PATCH 17/29] Remove bash dependency for nscd init script |
5 | 5 | ||
6 | The nscd init script uses #! /bin/bash but only really uses one bashism | 6 | The nscd init script uses #! /bin/bash but only really uses one bashism |
7 | (translated strings), so remove them and switch the shell to #!/bin/sh. | 7 | (translated strings), so remove them and switch the shell to #!/bin/sh. |
@@ -70,3 +70,6 @@ index a882da7d8b..b02986ec15 100644 | |||
70 | RETVAL=1 | 70 | RETVAL=1 |
71 | ;; | 71 | ;; |
72 | esac | 72 | esac |
73 | -- | ||
74 | 2.27.0 | ||
75 | |||
diff --git a/meta/recipes-core/glibc/glibc/0020-eglibc-Cross-building-and-testing-instructions.patch b/meta/recipes-core/glibc/glibc/0018-eglibc-Cross-building-and-testing-instructions.patch index eda5565371..58d41ffe04 100644 --- a/meta/recipes-core/glibc/glibc/0020-eglibc-Cross-building-and-testing-instructions.patch +++ b/meta/recipes-core/glibc/glibc/0018-eglibc-Cross-building-and-testing-instructions.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 5641452a24f76c5dafa3749a542fcac93f77390f Mon Sep 17 00:00:00 2001 | 1 | From 0bd1dedf77194151397c53b12e0355c2edb8bccc Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:42:58 +0000 | 3 | Date: Wed, 18 Mar 2015 00:42:58 +0000 |
4 | Subject: [PATCH] eglibc: Cross building and testing instructions | 4 | Subject: [PATCH 18/29] eglibc: Cross building and testing instructions |
5 | 5 | ||
6 | Ported from eglibc | 6 | Ported from eglibc |
7 | Upstream-Status: Pending | 7 | Upstream-Status: Pending |
@@ -614,3 +614,6 @@ index 0000000000..b67b468466 | |||
614 | +- Some tests require access to libstdc++.so.6 and libgcc_s.so.1; we | 614 | +- Some tests require access to libstdc++.so.6 and libgcc_s.so.1; we |
615 | + simply place copies of these libraries in the top GLIBC build | 615 | + simply place copies of these libraries in the top GLIBC build |
616 | + directory. | 616 | + directory. |
617 | -- | ||
618 | 2.27.0 | ||
619 | |||
diff --git a/meta/recipes-core/glibc/glibc/0021-eglibc-Help-bootstrap-cross-toolchain.patch b/meta/recipes-core/glibc/glibc/0019-eglibc-Help-bootstrap-cross-toolchain.patch index 6374ea4086..f633079f34 100644 --- a/meta/recipes-core/glibc/glibc/0021-eglibc-Help-bootstrap-cross-toolchain.patch +++ b/meta/recipes-core/glibc/glibc/0019-eglibc-Help-bootstrap-cross-toolchain.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 6a32d5bf40deee5d12d24c06f3ea9b5479c16802 Mon Sep 17 00:00:00 2001 | 1 | From 5591b7653411da26fa2939352e50ea4121b327e6 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:49:28 +0000 | 3 | Date: Wed, 18 Mar 2015 00:49:28 +0000 |
4 | Subject: [PATCH] eglibc: Help bootstrap cross toolchain | 4 | Subject: [PATCH 19/29] eglibc: Help bootstrap cross toolchain |
5 | 5 | ||
6 | Taken from EGLIBC, r1484 + r1525 | 6 | Taken from EGLIBC, r1484 + r1525 |
7 | 7 | ||
@@ -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 | ||
31 | diff --git a/Makefile b/Makefile | 31 | diff --git a/Makefile b/Makefile |
32 | index 8f0a93aceb..8eba23a868 100644 | 32 | index 6dcfe40c25..bc37c32e5a 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 |
@@ -95,3 +95,6 @@ index 0000000000..1d2b669aff | |||
95 | + difficult headers. The <gnu/stubs.h> header depends, via the | 95 | + difficult headers. The <gnu/stubs.h> header depends, via the |
96 | + EGLIBC subdir 'stubs' make targets, on every .o file in EGLIBC, but | 96 | + EGLIBC subdir 'stubs' make targets, on every .o file in EGLIBC, but |
97 | + an empty stubs.h like this will do fine for GCC. */ | 97 | + an empty stubs.h like this will do fine for GCC. */ |
98 | -- | ||
99 | 2.27.0 | ||
100 | |||
diff --git a/meta/recipes-core/glibc/glibc/0022-eglibc-Resolve-__fpscr_values-on-SH4.patch b/meta/recipes-core/glibc/glibc/0020-eglibc-Resolve-__fpscr_values-on-SH4.patch index 2a503c811e..bb21c54721 100644 --- a/meta/recipes-core/glibc/glibc/0022-eglibc-Resolve-__fpscr_values-on-SH4.patch +++ b/meta/recipes-core/glibc/glibc/0020-eglibc-Resolve-__fpscr_values-on-SH4.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 25c21857a3fc0eb26831616ba88a696dd31ecba1 Mon Sep 17 00:00:00 2001 | 1 | From d3451c186f96c6b2434a4ac9304c01730bf22061 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:55:53 +0000 | 3 | Date: Wed, 18 Mar 2015 00:55:53 +0000 |
4 | Subject: [PATCH] eglibc: Resolve __fpscr_values on SH4 | 4 | Subject: [PATCH 20/29] eglibc: Resolve __fpscr_values on SH4 |
5 | 5 | ||
6 | 2010-09-29 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | 6 | 2010-09-29 Nobuhiro Iwamatsu <iwamatsu@nigauri.org> |
7 | Andrew Stubbs <ams@codesourcery.com> | 7 | Andrew Stubbs <ams@codesourcery.com> |
@@ -51,3 +51,6 @@ index 85ff3f900e..7743b8d57a 100644 | |||
51 | + .long 0x80000 | 51 | + .long 0x80000 |
52 | +weak_alias (___fpscr_values, __fpscr_values) | 52 | +weak_alias (___fpscr_values, __fpscr_values) |
53 | + | 53 | + |
54 | -- | ||
55 | 2.27.0 | ||
56 | |||
diff --git a/meta/recipes-core/glibc/glibc/0023-eglibc-Forward-port-cross-locale-generation-support.patch b/meta/recipes-core/glibc/glibc/0021-eglibc-Forward-port-cross-locale-generation-support.patch index 1a90f22db6..7fe5db0c2a 100644 --- a/meta/recipes-core/glibc/glibc/0023-eglibc-Forward-port-cross-locale-generation-support.patch +++ b/meta/recipes-core/glibc/glibc/0021-eglibc-Forward-port-cross-locale-generation-support.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 30008327aadf0c775e644bb387d7c25952ed05b5 Mon Sep 17 00:00:00 2001 | 1 | From e4b8abdc2d884d721fd89d67b689546f2f780924 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 01:33:49 +0000 | 3 | Date: Wed, 18 Mar 2015 01:33:49 +0000 |
4 | Subject: [PATCH] eglibc: Forward port cross locale generation support | 4 | Subject: [PATCH 21/29] eglibc: Forward port cross locale generation support |
5 | 5 | ||
6 | Upstream-Status: Pending | 6 | Upstream-Status: Pending |
7 | 7 | ||
@@ -23,7 +23,7 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
23 | create mode 100644 locale/catnames.c | 23 | create mode 100644 locale/catnames.c |
24 | 24 | ||
25 | diff --git a/locale/Makefile b/locale/Makefile | 25 | diff --git a/locale/Makefile b/locale/Makefile |
26 | index c9694e236e..ba7105fad6 100644 | 26 | index 49c0c78c7d..ebfcf4f4da 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 | @@ -26,7 +26,8 @@ headers = langinfo.h locale.h bits/locale.h \ |
@@ -34,8 +34,8 @@ index c9694e236e..ba7105fad6 100644 | |||
34 | + newlocale duplocale freelocale uselocale \ | 34 | + newlocale duplocale freelocale uselocale \ |
35 | + catnames | 35 | + catnames |
36 | tests = tst-C-locale tst-locname tst-duplocale | 36 | tests = tst-C-locale tst-locname tst-duplocale |
37 | tests-container = tst-localedef-path-norm | ||
37 | categories = ctype messages monetary numeric time paper name \ | 38 | categories = ctype messages monetary numeric time paper name \ |
38 | address telephone measurement identification collate | ||
39 | diff --git a/locale/catnames.c b/locale/catnames.c | 39 | diff --git a/locale/catnames.c b/locale/catnames.c |
40 | new file mode 100644 | 40 | new file mode 100644 |
41 | index 0000000000..538f3f5edb | 41 | index 0000000000..538f3f5edb |
@@ -361,7 +361,7 @@ index 7ebd933801..5753750756 100644 | |||
361 | size_t bufmax = 56; | 361 | size_t bufmax = 56; |
362 | 362 | ||
363 | diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c | 363 | diff --git a/locale/programs/localedef.c b/locale/programs/localedef.c |
364 | index dbbb0145c0..097a8b6193 100644 | 364 | index b048bd05b9..fed15c42ec 100644 |
365 | --- a/locale/programs/localedef.c | 365 | --- a/locale/programs/localedef.c |
366 | +++ b/locale/programs/localedef.c | 366 | +++ b/locale/programs/localedef.c |
367 | @@ -109,6 +109,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; | 367 | @@ -109,6 +109,7 @@ void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version; |
@@ -381,7 +381,7 @@ index dbbb0145c0..097a8b6193 100644 | |||
381 | { NULL, 0, NULL, 0, NULL } | 381 | { NULL, 0, NULL, 0, NULL } |
382 | }; | 382 | }; |
383 | 383 | ||
384 | @@ -242,12 +245,14 @@ main (int argc, char *argv[]) | 384 | @@ -243,12 +246,14 @@ main (int argc, char *argv[]) |
385 | ctype locale. (P1003.2 4.35.5.2) */ | 385 | ctype locale. (P1003.2 4.35.5.2) */ |
386 | setlocale (LC_CTYPE, "POSIX"); | 386 | setlocale (LC_CTYPE, "POSIX"); |
387 | 387 | ||
@@ -396,7 +396,7 @@ index dbbb0145c0..097a8b6193 100644 | |||
396 | 396 | ||
397 | /* Process charmap file. */ | 397 | /* Process charmap file. */ |
398 | charmap = charmap_read (charmap_file, verbose, 1, be_quiet, 1); | 398 | charmap = charmap_read (charmap_file, verbose, 1, be_quiet, 1); |
399 | @@ -399,6 +404,9 @@ parse_opt (int key, char *arg, struct argp_state *state) | 399 | @@ -400,6 +405,9 @@ parse_opt (int key, char *arg, struct argp_state *state) |
400 | /* Do not hard link to other locales. */ | 400 | /* Do not hard link to other locales. */ |
401 | hard_links = false; | 401 | hard_links = false; |
402 | break; | 402 | break; |
@@ -558,3 +558,6 @@ index 030f1727bd..096d8ed895 100644 | |||
558 | #ifdef NL_CURRENT_INDIRECT | 558 | #ifdef NL_CURRENT_INDIRECT |
559 | # define WEAK_POSTLOAD(postload) weak_extern (postload) | 559 | # define WEAK_POSTLOAD(postload) weak_extern (postload) |
560 | #else | 560 | #else |
561 | -- | ||
562 | 2.27.0 | ||
563 | |||
diff --git a/meta/recipes-core/glibc/glibc/0024-Define-DUMMY_LOCALE_T-if-not-defined.patch b/meta/recipes-core/glibc/glibc/0022-Define-DUMMY_LOCALE_T-if-not-defined.patch index 15e460eb08..0e93183087 100644 --- a/meta/recipes-core/glibc/glibc/0024-Define-DUMMY_LOCALE_T-if-not-defined.patch +++ b/meta/recipes-core/glibc/glibc/0022-Define-DUMMY_LOCALE_T-if-not-defined.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 067f71a381ce6626ef1179be3dd90c4ed2aa52fb Mon Sep 17 00:00:00 2001 | 1 | From ad5bc87134871b99e082e2449b8c1ce2f1375ef9 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 20 Apr 2016 21:11:00 -0700 | 3 | Date: Wed, 20 Apr 2016 21:11:00 -0700 |
4 | Subject: [PATCH] Define DUMMY_LOCALE_T if not defined | 4 | Subject: [PATCH 22/29] Define DUMMY_LOCALE_T if not defined |
5 | 5 | ||
6 | This is a hack to fix building the locale bits on an older | 6 | This is a hack to fix building the locale bits on an older |
7 | CentOs 5.X machine | 7 | CentOs 5.X machine |
@@ -27,3 +27,6 @@ index d76d9f7e8b..92b56d7df3 100644 | |||
27 | /* Use the internal textdomain used for libc messages. */ | 27 | /* Use the internal textdomain used for libc messages. */ |
28 | #define PACKAGE _libc_intl_domainname | 28 | #define PACKAGE _libc_intl_domainname |
29 | #ifndef VERSION | 29 | #ifndef VERSION |
30 | -- | ||
31 | 2.27.0 | ||
32 | |||
diff --git a/meta/recipes-core/glibc/glibc/0025-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch b/meta/recipes-core/glibc/glibc/0023-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch index 543f65d6ea..7cbf6811a1 100644 --- a/meta/recipes-core/glibc/glibc/0025-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch +++ b/meta/recipes-core/glibc/glibc/0023-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From 8f4b0bac85d14b184e08848b02de3f30775f05b1 Mon Sep 17 00:00:00 2001 | 1 | From c5fd8a3d336b8288f631fb6b6dd85f9d1076f25b Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 3 Aug 2018 09:42:06 -0700 | 3 | Date: Fri, 3 Aug 2018 09:42:06 -0700 |
4 | Subject: [PATCH] localedef --add-to-archive uses a hard-coded locale path | 4 | Subject: [PATCH 23/29] localedef --add-to-archive uses a hard-coded locale |
5 | path | ||
5 | 6 | ||
6 | it doesn't exist in normal use, and there's no way to pass an | 7 | it doesn't exist in normal use, and there's no way to pass an |
7 | alternative filename. | 8 | alternative filename. |
@@ -78,3 +79,6 @@ index dccaf04e3b..ae0b7fe155 100644 | |||
78 | { | 79 | { |
79 | if (readonly) | 80 | if (readonly) |
80 | { | 81 | { |
82 | -- | ||
83 | 2.27.0 | ||
84 | |||
diff --git a/meta/recipes-core/glibc/glibc/0026-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch b/meta/recipes-core/glibc/glibc/0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch index 5f6ee40f22..02e73594a0 100644 --- a/meta/recipes-core/glibc/glibc/0026-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch +++ b/meta/recipes-core/glibc/glibc/0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 1dad746ce93928a57b2fe618c74722f710751826 Mon Sep 17 00:00:00 2001 | 1 | From dffa52364f8c54c455b2459ebe83f05cb6ffc9fc Mon Sep 17 00:00:00 2001 |
2 | From: Mark Hatle <mark.hatle@windriver.com> | 2 | From: Mark Hatle <mark.hatle@windriver.com> |
3 | Date: Thu, 18 Aug 2016 14:07:58 -0500 | 3 | Date: Thu, 18 Aug 2016 14:07:58 -0500 |
4 | Subject: [PATCH] elf/dl-deps.c: Make _dl_build_local_scope breadth first | 4 | Subject: [PATCH 24/29] elf/dl-deps.c: Make _dl_build_local_scope breadth first |
5 | 5 | ||
6 | According to the ELF specification: | 6 | According to the ELF specification: |
7 | 7 | ||
@@ -24,7 +24,7 @@ Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | |||
24 | 1 file changed, 10 insertions(+), 4 deletions(-) | 24 | 1 file changed, 10 insertions(+), 4 deletions(-) |
25 | 25 | ||
26 | diff --git a/elf/dl-deps.c b/elf/dl-deps.c | 26 | diff --git a/elf/dl-deps.c b/elf/dl-deps.c |
27 | index 5103a8a111..54cd80aaff 100644 | 27 | index b5a43232a7..8aa8f37fa3 100644 |
28 | --- a/elf/dl-deps.c | 28 | --- a/elf/dl-deps.c |
29 | +++ b/elf/dl-deps.c | 29 | +++ b/elf/dl-deps.c |
30 | @@ -73,13 +73,19 @@ _dl_build_local_scope (struct link_map **list, struct link_map *map) | 30 | @@ -73,13 +73,19 @@ _dl_build_local_scope (struct link_map **list, struct link_map *map) |
@@ -51,3 +51,6 @@ index 5103a8a111..54cd80aaff 100644 | |||
51 | return p - list; | 51 | return p - list; |
52 | } | 52 | } |
53 | 53 | ||
54 | -- | ||
55 | 2.27.0 | ||
56 | |||
diff --git a/meta/recipes-core/glibc/glibc/0027-intl-Emit-no-lines-in-bison-generated-files.patch b/meta/recipes-core/glibc/glibc/0025-intl-Emit-no-lines-in-bison-generated-files.patch index 2c317d58aa..700fb28874 100644 --- a/meta/recipes-core/glibc/glibc/0027-intl-Emit-no-lines-in-bison-generated-files.patch +++ b/meta/recipes-core/glibc/glibc/0025-intl-Emit-no-lines-in-bison-generated-files.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 3c8d9eae83ab4f1677afc9b379f97114e8503363 Mon Sep 17 00:00:00 2001 | 1 | From bc3380877bd2a1f9368a913fa6a2ca1ee88fd95f Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 3 Aug 2018 09:44:00 -0700 | 3 | Date: Fri, 3 Aug 2018 09:44:00 -0700 |
4 | Subject: [PATCH] intl: Emit no lines in bison generated files | 4 | Subject: [PATCH 25/29] intl: Emit no lines in bison generated files |
5 | 5 | ||
6 | Improve reproducibility: | 6 | Improve reproducibility: |
7 | Do not put any #line preprocessor commands in bison generated files. | 7 | Do not put any #line preprocessor commands in bison generated files. |
@@ -29,3 +29,6 @@ index ce3072420f..58457840d9 100644 | |||
29 | 29 | ||
30 | $(inst_localedir)/locale.alias: locale.alias $(+force) | 30 | $(inst_localedir)/locale.alias: locale.alias $(+force) |
31 | $(do-install) | 31 | $(do-install) |
32 | -- | ||
33 | 2.27.0 | ||
34 | |||
diff --git a/meta/recipes-core/glibc/glibc/0028-inject-file-assembly-directives.patch b/meta/recipes-core/glibc/glibc/0026-inject-file-assembly-directives.patch index e1a030d10c..89eef82e1b 100644 --- a/meta/recipes-core/glibc/glibc/0028-inject-file-assembly-directives.patch +++ b/meta/recipes-core/glibc/glibc/0026-inject-file-assembly-directives.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 420454f7098b5445730caa855c37b8143bfccc1b Mon Sep 17 00:00:00 2001 | 1 | From cf043d56638883157dbfaa8c6a8e2f63a6f66280 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Thu, 29 Nov 2018 17:29:35 -0800 | 3 | Date: Thu, 29 Nov 2018 17:29:35 -0800 |
4 | Subject: [PATCH] inject file assembly directives | 4 | Subject: [PATCH 26/29] inject file assembly directives |
5 | 5 | ||
6 | Currently, non-IA builds are not reproducibile since build paths are | 6 | Currently, non-IA builds are not reproducibile since build paths are |
7 | being injected into the debug symbols. These are coming from the use of | 7 | being injected into the debug symbols. These are coming from the use of |
@@ -25,13 +25,12 @@ Upstream-Status: Pending | |||
25 | 25 | ||
26 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 26 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
27 | --- | 27 | --- |
28 | csu/abi-note.S | 2 ++ | 28 | csu/abi-note.c | 2 ++ |
29 | sysdeps/aarch64/crti.S | 2 ++ | 29 | sysdeps/aarch64/crti.S | 2 ++ |
30 | sysdeps/aarch64/crtn.S | 2 ++ | 30 | sysdeps/aarch64/crtn.S | 1 + |
31 | sysdeps/aarch64/dl-tlsdesc.S | 2 ++ | 31 | sysdeps/aarch64/dl-tlsdesc.S | 2 ++ |
32 | sysdeps/aarch64/dl-trampoline.S | 2 ++ | 32 | sysdeps/aarch64/dl-trampoline.S | 2 ++ |
33 | sysdeps/aarch64/start.S | 2 ++ | 33 | sysdeps/aarch64/start.S | 2 ++ |
34 | sysdeps/arm/abi-note.S | 2 ++ | ||
35 | sysdeps/arm/crti.S | 2 ++ | 34 | sysdeps/arm/crti.S | 2 ++ |
36 | sysdeps/arm/crtn.S | 2 ++ | 35 | sysdeps/arm/crtn.S | 2 ++ |
37 | sysdeps/arm/dl-tlsdesc.S | 2 ++ | 36 | sysdeps/arm/dl-tlsdesc.S | 2 ++ |
@@ -45,23 +44,8 @@ Signed-off-by: Khem Raj <raj.khem@gmail.com> | |||
45 | sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S | 2 ++ | 44 | sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S | 2 ++ |
46 | sysdeps/unix/sysv/linux/arm/libc-do-syscall.S | 2 ++ | 45 | sysdeps/unix/sysv/linux/arm/libc-do-syscall.S | 2 ++ |
47 | sysdeps/unix/sysv/linux/powerpc/dl-brk.S | 2 ++ | 46 | sysdeps/unix/sysv/linux/powerpc/dl-brk.S | 2 ++ |
48 | 20 files changed, 40 insertions(+) | 47 | 19 files changed, 37 insertions(+) |
49 | 48 | ||
50 | diff --git a/csu/abi-note.S b/csu/abi-note.S | ||
51 | index 2b4b5f8824..964843016c 100644 | ||
52 | --- a/csu/abi-note.S | ||
53 | +++ b/csu/abi-note.S | ||
54 | @@ -56,6 +56,8 @@ offset length contents | ||
55 | #include <config.h> | ||
56 | #include <abi-tag.h> /* OS-specific ABI tag value */ | ||
57 | |||
58 | + .file "abi-note.S" | ||
59 | + | ||
60 | /* The linker (GNU ld 2.8 and later) recognizes an allocated section whose | ||
61 | name begins with `.note' and creates a PT_NOTE program header entry | ||
62 | pointing at it. */ | ||
63 | diff --git a/sysdeps/aarch64/crti.S b/sysdeps/aarch64/crti.S | ||
64 | index 1728eac37a..76a8ab590b 100644 | ||
65 | --- a/sysdeps/aarch64/crti.S | 49 | --- a/sysdeps/aarch64/crti.S |
66 | +++ b/sysdeps/aarch64/crti.S | 50 | +++ b/sysdeps/aarch64/crti.S |
67 | @@ -50,6 +50,8 @@ | 51 | @@ -50,6 +50,8 @@ |
@@ -73,21 +57,16 @@ index 1728eac37a..76a8ab590b 100644 | |||
73 | #if PREINIT_FUNCTION_WEAK | 57 | #if PREINIT_FUNCTION_WEAK |
74 | weak_extern (PREINIT_FUNCTION) | 58 | weak_extern (PREINIT_FUNCTION) |
75 | #else | 59 | #else |
76 | diff --git a/sysdeps/aarch64/crtn.S b/sysdeps/aarch64/crtn.S | ||
77 | index c3e97cc449..fc2e5c2df8 100644 | ||
78 | --- a/sysdeps/aarch64/crtn.S | 60 | --- a/sysdeps/aarch64/crtn.S |
79 | +++ b/sysdeps/aarch64/crtn.S | 61 | +++ b/sysdeps/aarch64/crtn.S |
80 | @@ -37,6 +37,8 @@ | 62 | @@ -38,6 +38,7 @@ |
81 | /* crtn.S puts function epilogues in the .init and .fini sections | ||
82 | corresponding to the prologues in crti.S. */ | 63 | corresponding to the prologues in crti.S. */ |
83 | 64 | ||
65 | #include <sysdep.h> | ||
84 | + .file "crtn.S" | 66 | + .file "crtn.S" |
85 | + | 67 | |
86 | .section .init,"ax",%progbits | 68 | .section .init,"ax",%progbits |
87 | ldp x29, x30, [sp], 16 | 69 | ldp x29, x30, [sp], 16 |
88 | RET | ||
89 | diff --git a/sysdeps/aarch64/dl-tlsdesc.S b/sysdeps/aarch64/dl-tlsdesc.S | ||
90 | index 557ad1d505..194a8531da 100644 | ||
91 | --- a/sysdeps/aarch64/dl-tlsdesc.S | 70 | --- a/sysdeps/aarch64/dl-tlsdesc.S |
92 | +++ b/sysdeps/aarch64/dl-tlsdesc.S | 71 | +++ b/sysdeps/aarch64/dl-tlsdesc.S |
93 | @@ -22,6 +22,8 @@ | 72 | @@ -22,6 +22,8 @@ |
@@ -99,8 +78,6 @@ index 557ad1d505..194a8531da 100644 | |||
99 | #define NSAVEDQREGPAIRS 16 | 78 | #define NSAVEDQREGPAIRS 16 |
100 | #define SAVE_Q_REGISTERS \ | 79 | #define SAVE_Q_REGISTERS \ |
101 | stp q0, q1, [sp, #-32*NSAVEDQREGPAIRS]!; \ | 80 | stp q0, q1, [sp, #-32*NSAVEDQREGPAIRS]!; \ |
102 | diff --git a/sysdeps/aarch64/dl-trampoline.S b/sysdeps/aarch64/dl-trampoline.S | ||
103 | index 94e965c096..ba18742f3e 100644 | ||
104 | --- a/sysdeps/aarch64/dl-trampoline.S | 81 | --- a/sysdeps/aarch64/dl-trampoline.S |
105 | +++ b/sysdeps/aarch64/dl-trampoline.S | 82 | +++ b/sysdeps/aarch64/dl-trampoline.S |
106 | @@ -21,6 +21,8 @@ | 83 | @@ -21,6 +21,8 @@ |
@@ -112,8 +89,6 @@ index 94e965c096..ba18742f3e 100644 | |||
112 | #define ip0 x16 | 89 | #define ip0 x16 |
113 | #define ip0l PTR_REG (16) | 90 | #define ip0l PTR_REG (16) |
114 | #define ip1 x17 | 91 | #define ip1 x17 |
115 | diff --git a/sysdeps/aarch64/start.S b/sysdeps/aarch64/start.S | ||
116 | index d96cf57e2d..07a523978a 100644 | ||
117 | --- a/sysdeps/aarch64/start.S | 92 | --- a/sysdeps/aarch64/start.S |
118 | +++ b/sysdeps/aarch64/start.S | 93 | +++ b/sysdeps/aarch64/start.S |
119 | @@ -18,6 +18,8 @@ | 94 | @@ -18,6 +18,8 @@ |
@@ -125,18 +100,6 @@ index d96cf57e2d..07a523978a 100644 | |||
125 | /* This is the canonical entry point, usually the first thing in the text | 100 | /* This is the canonical entry point, usually the first thing in the text |
126 | segment. | 101 | segment. |
127 | 102 | ||
128 | diff --git a/sysdeps/arm/abi-note.S b/sysdeps/arm/abi-note.S | ||
129 | index 07bd4c4619..7213b16f27 100644 | ||
130 | --- a/sysdeps/arm/abi-note.S | ||
131 | +++ b/sysdeps/arm/abi-note.S | ||
132 | @@ -1,3 +1,5 @@ | ||
133 | + .file "abi-note.S" | ||
134 | + | ||
135 | /* Tag_ABI_align8_preserved: This code preserves 8-byte | ||
136 | alignment in any callee. */ | ||
137 | .eabi_attribute 25, 1 | ||
138 | diff --git a/sysdeps/arm/crti.S b/sysdeps/arm/crti.S | ||
139 | index 8169783267..f56e0c85a6 100644 | ||
140 | --- a/sysdeps/arm/crti.S | 103 | --- a/sysdeps/arm/crti.S |
141 | +++ b/sysdeps/arm/crti.S | 104 | +++ b/sysdeps/arm/crti.S |
142 | @@ -57,6 +57,8 @@ | 105 | @@ -57,6 +57,8 @@ |
@@ -148,8 +111,6 @@ index 8169783267..f56e0c85a6 100644 | |||
148 | #if PREINIT_FUNCTION_WEAK | 111 | #if PREINIT_FUNCTION_WEAK |
149 | .p2align 2 | 112 | .p2align 2 |
150 | .type call_weak_fn, %function | 113 | .type call_weak_fn, %function |
151 | diff --git a/sysdeps/arm/crtn.S b/sysdeps/arm/crtn.S | ||
152 | index d60f9f05de..1e10ec439f 100644 | ||
153 | --- a/sysdeps/arm/crtn.S | 114 | --- a/sysdeps/arm/crtn.S |
154 | +++ b/sysdeps/arm/crtn.S | 115 | +++ b/sysdeps/arm/crtn.S |
155 | @@ -37,6 +37,8 @@ | 116 | @@ -37,6 +37,8 @@ |
@@ -161,8 +122,6 @@ index d60f9f05de..1e10ec439f 100644 | |||
161 | /* crtn.S puts function epilogues in the .init and .fini sections | 122 | /* crtn.S puts function epilogues in the .init and .fini sections |
162 | corresponding to the prologues in crti.S. */ | 123 | corresponding to the prologues in crti.S. */ |
163 | 124 | ||
164 | diff --git a/sysdeps/arm/dl-tlsdesc.S b/sysdeps/arm/dl-tlsdesc.S | ||
165 | index 8415e47607..29c2cb8128 100644 | ||
166 | --- a/sysdeps/arm/dl-tlsdesc.S | 125 | --- a/sysdeps/arm/dl-tlsdesc.S |
167 | +++ b/sysdeps/arm/dl-tlsdesc.S | 126 | +++ b/sysdeps/arm/dl-tlsdesc.S |
168 | @@ -21,6 +21,8 @@ | 127 | @@ -21,6 +21,8 @@ |
@@ -174,8 +133,6 @@ index 8415e47607..29c2cb8128 100644 | |||
174 | .text | 133 | .text |
175 | @ emit debug information with cfi | 134 | @ emit debug information with cfi |
176 | @ use arm-specific pseudos for unwinding itself | 135 | @ use arm-specific pseudos for unwinding itself |
177 | diff --git a/sysdeps/arm/dl-trampoline.S b/sysdeps/arm/dl-trampoline.S | ||
178 | index a20baf555e..2dd3bef04e 100644 | ||
179 | --- a/sysdeps/arm/dl-trampoline.S | 136 | --- a/sysdeps/arm/dl-trampoline.S |
180 | +++ b/sysdeps/arm/dl-trampoline.S | 137 | +++ b/sysdeps/arm/dl-trampoline.S |
181 | @@ -21,6 +21,8 @@ | 138 | @@ -21,6 +21,8 @@ |
@@ -187,8 +144,6 @@ index a20baf555e..2dd3bef04e 100644 | |||
187 | .text | 144 | .text |
188 | .globl _dl_runtime_resolve | 145 | .globl _dl_runtime_resolve |
189 | .type _dl_runtime_resolve, #function | 146 | .type _dl_runtime_resolve, #function |
190 | diff --git a/sysdeps/arm/start.S b/sysdeps/arm/start.S | ||
191 | index 2ff56179d2..c118046ec6 100644 | ||
192 | --- a/sysdeps/arm/start.S | 147 | --- a/sysdeps/arm/start.S |
193 | +++ b/sysdeps/arm/start.S | 148 | +++ b/sysdeps/arm/start.S |
194 | @@ -57,6 +57,8 @@ | 149 | @@ -57,6 +57,8 @@ |
@@ -200,8 +155,6 @@ index 2ff56179d2..c118046ec6 100644 | |||
200 | /* Tag_ABI_align8_preserved: This code preserves 8-byte | 155 | /* Tag_ABI_align8_preserved: This code preserves 8-byte |
201 | alignment in any callee. */ | 156 | alignment in any callee. */ |
202 | .eabi_attribute 25, 1 | 157 | .eabi_attribute 25, 1 |
203 | diff --git a/sysdeps/mips/start.S b/sysdeps/mips/start.S | ||
204 | index fabc8080df..83c6b91d7d 100644 | ||
205 | --- a/sysdeps/mips/start.S | 158 | --- a/sysdeps/mips/start.S |
206 | +++ b/sysdeps/mips/start.S | 159 | +++ b/sysdeps/mips/start.S |
207 | @@ -38,6 +38,8 @@ | 160 | @@ -38,6 +38,8 @@ |
@@ -213,8 +166,6 @@ index fabc8080df..83c6b91d7d 100644 | |||
213 | #ifndef ENTRY_POINT | 166 | #ifndef ENTRY_POINT |
214 | #error ENTRY_POINT needs to be defined for start.S on MIPS/ELF. | 167 | #error ENTRY_POINT needs to be defined for start.S on MIPS/ELF. |
215 | #endif | 168 | #endif |
216 | diff --git a/sysdeps/powerpc/powerpc32/dl-start.S b/sysdeps/powerpc/powerpc32/dl-start.S | ||
217 | index c15242d3bc..6ca27715a4 100644 | ||
218 | --- a/sysdeps/powerpc/powerpc32/dl-start.S | 169 | --- a/sysdeps/powerpc/powerpc32/dl-start.S |
219 | +++ b/sysdeps/powerpc/powerpc32/dl-start.S | 170 | +++ b/sysdeps/powerpc/powerpc32/dl-start.S |
220 | @@ -18,6 +18,8 @@ | 171 | @@ -18,6 +18,8 @@ |
@@ -226,8 +177,6 @@ index c15242d3bc..6ca27715a4 100644 | |||
226 | /* Initial entry point code for the dynamic linker. | 177 | /* Initial entry point code for the dynamic linker. |
227 | The C function `_dl_start' is the real entry point; | 178 | The C function `_dl_start' is the real entry point; |
228 | its return value is the user program's entry point. */ | 179 | its return value is the user program's entry point. */ |
229 | diff --git a/sysdeps/powerpc/powerpc32/start.S b/sysdeps/powerpc/powerpc32/start.S | ||
230 | index b7b9a133a2..8df714f81a 100644 | ||
231 | --- a/sysdeps/powerpc/powerpc32/start.S | 180 | --- a/sysdeps/powerpc/powerpc32/start.S |
232 | +++ b/sysdeps/powerpc/powerpc32/start.S | 181 | +++ b/sysdeps/powerpc/powerpc32/start.S |
233 | @@ -35,6 +35,8 @@ | 182 | @@ -35,6 +35,8 @@ |
@@ -239,8 +188,6 @@ index b7b9a133a2..8df714f81a 100644 | |||
239 | /* We do not want .eh_frame info for crt1.o since crt1.o is linked | 188 | /* We do not want .eh_frame info for crt1.o since crt1.o is linked |
240 | before crtbegin.o, the file defining __EH_FRAME_BEGIN__. */ | 189 | before crtbegin.o, the file defining __EH_FRAME_BEGIN__. */ |
241 | #undef cfi_startproc | 190 | #undef cfi_startproc |
242 | diff --git a/sysdeps/powerpc/powerpc64/start.S b/sysdeps/powerpc/powerpc64/start.S | ||
243 | index 94bf771e83..cffb99500a 100644 | ||
244 | --- a/sysdeps/powerpc/powerpc64/start.S | 191 | --- a/sysdeps/powerpc/powerpc64/start.S |
245 | +++ b/sysdeps/powerpc/powerpc64/start.S | 192 | +++ b/sysdeps/powerpc/powerpc64/start.S |
246 | @@ -35,6 +35,8 @@ | 193 | @@ -35,6 +35,8 @@ |
@@ -252,8 +199,6 @@ index 94bf771e83..cffb99500a 100644 | |||
252 | /* We do not want .eh_frame info for crt1.o since crt1.o is linked | 199 | /* We do not want .eh_frame info for crt1.o since crt1.o is linked |
253 | before crtbegin.o, the file defining __EH_FRAME_BEGIN__. */ | 200 | before crtbegin.o, the file defining __EH_FRAME_BEGIN__. */ |
254 | #undef cfi_startproc | 201 | #undef cfi_startproc |
255 | diff --git a/sysdeps/unix/sysv/linux/aarch64/__read_tp.S b/sysdeps/unix/sysv/linux/aarch64/__read_tp.S | ||
256 | index 12e1131fe7..767e0d043b 100644 | ||
257 | --- a/sysdeps/unix/sysv/linux/aarch64/__read_tp.S | 202 | --- a/sysdeps/unix/sysv/linux/aarch64/__read_tp.S |
258 | +++ b/sysdeps/unix/sysv/linux/aarch64/__read_tp.S | 203 | +++ b/sysdeps/unix/sysv/linux/aarch64/__read_tp.S |
259 | @@ -18,6 +18,8 @@ | 204 | @@ -18,6 +18,8 @@ |
@@ -265,8 +210,6 @@ index 12e1131fe7..767e0d043b 100644 | |||
265 | .hidden __read_tp | 210 | .hidden __read_tp |
266 | ENTRY (__read_tp) | 211 | ENTRY (__read_tp) |
267 | mrs x0, tpidr_el0 | 212 | mrs x0, tpidr_el0 |
268 | diff --git a/sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S b/sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S | ||
269 | index 3b0d611039..4a7e476c37 100644 | ||
270 | --- a/sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S | 213 | --- a/sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S |
271 | +++ b/sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S | 214 | +++ b/sysdeps/unix/sysv/linux/arm/aeabi_read_tp.S |
272 | @@ -39,6 +39,8 @@ | 215 | @@ -39,6 +39,8 @@ |
@@ -278,8 +221,6 @@ index 3b0d611039..4a7e476c37 100644 | |||
278 | .hidden __aeabi_read_tp | 221 | .hidden __aeabi_read_tp |
279 | ENTRY (__aeabi_read_tp) | 222 | ENTRY (__aeabi_read_tp) |
280 | #ifdef ARCH_HAS_HARD_TP | 223 | #ifdef ARCH_HAS_HARD_TP |
281 | diff --git a/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S b/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S | ||
282 | index fb5e0c7d97..bd07bdb38b 100644 | ||
283 | --- a/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S | 224 | --- a/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S |
284 | +++ b/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S | 225 | +++ b/sysdeps/unix/sysv/linux/arm/libc-do-syscall.S |
285 | @@ -27,6 +27,8 @@ | 226 | @@ -27,6 +27,8 @@ |
@@ -291,8 +232,6 @@ index fb5e0c7d97..bd07bdb38b 100644 | |||
291 | #if defined(__thumb__) | 232 | #if defined(__thumb__) |
292 | .thumb | 233 | .thumb |
293 | .syntax unified | 234 | .syntax unified |
294 | diff --git a/sysdeps/unix/sysv/linux/powerpc/dl-brk.S b/sysdeps/unix/sysv/linux/powerpc/dl-brk.S | ||
295 | index eeb96544e3..da182b28f8 100644 | ||
296 | --- a/sysdeps/unix/sysv/linux/powerpc/dl-brk.S | 235 | --- a/sysdeps/unix/sysv/linux/powerpc/dl-brk.S |
297 | +++ b/sysdeps/unix/sysv/linux/powerpc/dl-brk.S | 236 | +++ b/sysdeps/unix/sysv/linux/powerpc/dl-brk.S |
298 | @@ -1 +1,3 @@ | 237 | @@ -1 +1,3 @@ |
diff --git a/meta/recipes-core/glibc/glibc/0029-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch b/meta/recipes-core/glibc/glibc/0027-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch index c8c359f2b8..d2c88d2354 100644 --- a/meta/recipes-core/glibc/glibc/0029-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch +++ b/meta/recipes-core/glibc/glibc/0027-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 66963ad83bdd3b075006ddca9dfe357aed181d6a Mon Sep 17 00:00:00 2001 | 1 | From 10aef8f0671d814aaf910ababc0225cf6f0a46e8 Mon Sep 17 00:00:00 2001 |
2 | From: Martin Jansa <martin.jansa@gmail.com> | 2 | From: Martin Jansa <martin.jansa@gmail.com> |
3 | Date: Mon, 17 Dec 2018 21:36:18 +0000 | 3 | Date: Mon, 17 Dec 2018 21:36:18 +0000 |
4 | Subject: [PATCH] locale: prevent maybe-uninitialized errors with -Os [BZ | 4 | Subject: [PATCH 27/29] locale: prevent maybe-uninitialized errors with -Os [BZ |
5 | #19444] | 5 | #19444] |
6 | 6 | ||
7 | Fixes following error when building for aarch64 with -Os: | 7 | Fixes following error when building for aarch64 with -Os: |
@@ -51,3 +51,6 @@ index e071253f85..2889c395f1 100644 | |||
51 | const unsigned char *cp; | 51 | const unsigned char *cp; |
52 | const unsigned char *usrc; | 52 | const unsigned char *usrc; |
53 | 53 | ||
54 | -- | ||
55 | 2.27.0 | ||
56 | |||
diff --git a/meta/recipes-core/glibc/glibc/0009-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch b/meta/recipes-core/glibc/glibc/0028-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch index 456f91fb8e..25c046f5cd 100644 --- a/meta/recipes-core/glibc/glibc/0009-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch +++ b/meta/recipes-core/glibc/glibc/0028-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch | |||
@@ -1,7 +1,8 @@ | |||
1 | From 13beb1f428ec06778590bf526d6e641f73d5cf62 Mon Sep 17 00:00:00 2001 | 1 | From 70731329feb7ba20364aa37aed83d920de97f028 Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 18 Mar 2015 00:11:22 +0000 | 3 | Date: Wed, 18 Mar 2015 00:11:22 +0000 |
4 | Subject: [PATCH] readlib: Add OECORE_KNOWN_INTERPRETER_NAMES to known names | 4 | Subject: [PATCH 28/29] readlib: Add OECORE_KNOWN_INTERPRETER_NAMES to known |
5 | names | ||
5 | 6 | ||
6 | This bolts in a hook for OE to pass its own version of interpreter | 7 | This bolts in a hook for OE to pass its own version of interpreter |
7 | names into glibc especially for multilib case, where it differs from any | 8 | names into glibc especially for multilib case, where it differs from any |
@@ -27,3 +28,6 @@ index 994a4426a1..baabf099b1 100644 | |||
27 | }; | 28 | }; |
28 | 29 | ||
29 | static struct known_names known_libs[] = | 30 | static struct known_names known_libs[] = |
31 | -- | ||
32 | 2.27.0 | ||
33 | |||
diff --git a/meta/recipes-core/glibc/glibc/0030-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch b/meta/recipes-core/glibc/glibc/0029-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch index cbef2f2830..0ebf8a6183 100644 --- a/meta/recipes-core/glibc/glibc/0030-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch +++ b/meta/recipes-core/glibc/glibc/0029-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch | |||
@@ -1,7 +1,7 @@ | |||
1 | From 9cb0a756b017f5961b70ac781d3eaec6c82513cb Mon Sep 17 00:00:00 2001 | 1 | From bf1c4b2f01c5f86bb770fd1711a69ea727e0f56e Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Fri, 15 May 2020 17:05:45 -0700 | 3 | Date: Fri, 15 May 2020 17:05:45 -0700 |
4 | Subject: [PATCH] wordsize.h: Unify the header between arm and aarch64 | 4 | Subject: [PATCH 29/29] wordsize.h: Unify the header between arm and aarch64 |
5 | 5 | ||
6 | This helps OE multilibs to not sythesize this header which causes all | 6 | This helps OE multilibs to not sythesize this header which causes all |
7 | kind of recursions and other issues since wordsize is fundamental header | 7 | kind of recursions and other issues since wordsize is fundamental header |
@@ -65,3 +65,6 @@ index ee01841773..34fcdef1f1 100644 | |||
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | #define __WORDSIZE_TIME64_COMPAT32 0 | 67 | #define __WORDSIZE_TIME64_COMPAT32 0 |
68 | -- | ||
69 | 2.27.0 | ||
70 | |||
diff --git a/meta/recipes-core/glibc/glibc/0030-powerpc-Do-not-ask-compiler-for-finding-arch.patch b/meta/recipes-core/glibc/glibc/0030-powerpc-Do-not-ask-compiler-for-finding-arch.patch new file mode 100644 index 0000000000..a764552361 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0030-powerpc-Do-not-ask-compiler-for-finding-arch.patch | |||
@@ -0,0 +1,51 @@ | |||
1 | From 8b1d521290218df8ceeaf2e6ee44a54b19d8d328 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 7 Aug 2020 14:31:16 -0700 | ||
4 | Subject: [PATCH 30/30] powerpc: Do not ask compiler for finding arch | ||
5 | |||
6 | This does not work well in cross compiling environments like OE | ||
7 | and moreover it uses its own -mcpu/-march options via cflags | ||
8 | |||
9 | Upstream-Status: Inappropriate [ OE-Specific] | ||
10 | |||
11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
12 | --- | ||
13 | sysdeps/powerpc/preconfigure | 5 +---- | ||
14 | sysdeps/powerpc/preconfigure.ac | 5 +---- | ||
15 | 2 files changed, 2 insertions(+), 8 deletions(-) | ||
16 | |||
17 | diff --git a/sysdeps/powerpc/preconfigure b/sysdeps/powerpc/preconfigure | ||
18 | index dfe8e20399..bbff040f0f 100644 | ||
19 | --- a/sysdeps/powerpc/preconfigure | ||
20 | +++ b/sysdeps/powerpc/preconfigure | ||
21 | @@ -29,10 +29,7 @@ esac | ||
22 | # directive which shows up, and try using it. | ||
23 | case "${machine}:${submachine}" in | ||
24 | *powerpc*:) | ||
25 | - archcpu=`echo "int foo () { return 0; }" \ | ||
26 | - | $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \ | ||
27 | - | grep -E "mcpu=|.machine" -m 1 \ | ||
28 | - | sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"` | ||
29 | + archcpu='' | ||
30 | # Note if you add patterns here you must ensure that an appropriate | ||
31 | # directory exists in sysdeps/powerpc. Likewise, if we find a | ||
32 | # cpu, don't let the generic configure append extra compiler options. | ||
33 | diff --git a/sysdeps/powerpc/preconfigure.ac b/sysdeps/powerpc/preconfigure.ac | ||
34 | index 6c63bd8257..3e925f1d48 100644 | ||
35 | --- a/sysdeps/powerpc/preconfigure.ac | ||
36 | +++ b/sysdeps/powerpc/preconfigure.ac | ||
37 | @@ -29,10 +29,7 @@ esac | ||
38 | # directive which shows up, and try using it. | ||
39 | case "${machine}:${submachine}" in | ||
40 | *powerpc*:) | ||
41 | - archcpu=`echo "int foo () { return 0; }" \ | ||
42 | - | $CC $CFLAGS $CPPFLAGS -S -frecord-gcc-switches -xc -o - - \ | ||
43 | - | grep -E "mcpu=|[.]machine" -m 1 \ | ||
44 | - | sed -e "s/.*machine //" -e "s/.*mcpu=\(.*\)\"/\1/"` | ||
45 | + archcpu='' | ||
46 | # Note if you add patterns here you must ensure that an appropriate | ||
47 | # directory exists in sysdeps/powerpc. Likewise, if we find a | ||
48 | # cpu, don't let the generic configure append extra compiler options. | ||
49 | -- | ||
50 | 2.28.0 | ||
51 | |||
diff --git a/meta/recipes-core/glibc/glibc/CVE-2020-6096.patch b/meta/recipes-core/glibc/glibc/CVE-2020-6096.patch deleted file mode 100644 index 9c26f76432..0000000000 --- a/meta/recipes-core/glibc/glibc/CVE-2020-6096.patch +++ /dev/null | |||
@@ -1,112 +0,0 @@ | |||
1 | From beea361050728138b82c57dda0c4810402d342b9 Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Anisimov <a.anisimov@omprussia.ru> | ||
3 | Date: Wed, 8 Jul 2020 14:18:31 +0200 | ||
4 | Subject: [PATCH] arm: CVE-2020-6096: Fix multiarch memcpy for negative length | ||
5 | [BZ #25620] | ||
6 | |||
7 | Unsigned branch instructions could be used for r2 to fix the wrong | ||
8 | behavior when a negative length is passed to memcpy. | ||
9 | This commit fixes the armv7 version. | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | CVE: CVE-2020-6096 patch #1 | ||
13 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
14 | |||
15 | --- | ||
16 | sysdeps/arm/armv7/multiarch/memcpy_impl.S | 22 +++++++++++----------- | ||
17 | 1 file changed, 11 insertions(+), 11 deletions(-) | ||
18 | |||
19 | diff --git a/sysdeps/arm/armv7/multiarch/memcpy_impl.S b/sysdeps/arm/armv7/multiarch/memcpy_impl.S | ||
20 | index bf4ac7077f..379bb56fc9 100644 | ||
21 | --- a/sysdeps/arm/armv7/multiarch/memcpy_impl.S | ||
22 | +++ b/sysdeps/arm/armv7/multiarch/memcpy_impl.S | ||
23 | @@ -268,7 +268,7 @@ ENTRY(memcpy) | ||
24 | |||
25 | mov dst, dstin /* Preserve dstin, we need to return it. */ | ||
26 | cmp count, #64 | ||
27 | - bge .Lcpy_not_short | ||
28 | + bhs .Lcpy_not_short | ||
29 | /* Deal with small copies quickly by dropping straight into the | ||
30 | exit block. */ | ||
31 | |||
32 | @@ -351,10 +351,10 @@ ENTRY(memcpy) | ||
33 | |||
34 | 1: | ||
35 | subs tmp2, count, #64 /* Use tmp2 for count. */ | ||
36 | - blt .Ltail63aligned | ||
37 | + blo .Ltail63aligned | ||
38 | |||
39 | cmp tmp2, #512 | ||
40 | - bge .Lcpy_body_long | ||
41 | + bhs .Lcpy_body_long | ||
42 | |||
43 | .Lcpy_body_medium: /* Count in tmp2. */ | ||
44 | #ifdef USE_VFP | ||
45 | @@ -378,7 +378,7 @@ ENTRY(memcpy) | ||
46 | add src, src, #64 | ||
47 | vstr d1, [dst, #56] | ||
48 | add dst, dst, #64 | ||
49 | - bge 1b | ||
50 | + bhs 1b | ||
51 | tst tmp2, #0x3f | ||
52 | beq .Ldone | ||
53 | |||
54 | @@ -412,7 +412,7 @@ ENTRY(memcpy) | ||
55 | ldrd A_l, A_h, [src, #64]! | ||
56 | strd A_l, A_h, [dst, #64]! | ||
57 | subs tmp2, tmp2, #64 | ||
58 | - bge 1b | ||
59 | + bhs 1b | ||
60 | tst tmp2, #0x3f | ||
61 | bne 1f | ||
62 | ldr tmp2,[sp], #FRAME_SIZE | ||
63 | @@ -482,7 +482,7 @@ ENTRY(memcpy) | ||
64 | add src, src, #32 | ||
65 | |||
66 | subs tmp2, tmp2, #prefetch_lines * 64 * 2 | ||
67 | - blt 2f | ||
68 | + blo 2f | ||
69 | 1: | ||
70 | cpy_line_vfp d3, 0 | ||
71 | cpy_line_vfp d4, 64 | ||
72 | @@ -494,7 +494,7 @@ ENTRY(memcpy) | ||
73 | add dst, dst, #2 * 64 | ||
74 | add src, src, #2 * 64 | ||
75 | subs tmp2, tmp2, #prefetch_lines * 64 | ||
76 | - bge 1b | ||
77 | + bhs 1b | ||
78 | |||
79 | 2: | ||
80 | cpy_tail_vfp d3, 0 | ||
81 | @@ -615,8 +615,8 @@ ENTRY(memcpy) | ||
82 | 1: | ||
83 | pld [src, #(3 * 64)] | ||
84 | subs count, count, #64 | ||
85 | - ldrmi tmp2, [sp], #FRAME_SIZE | ||
86 | - bmi .Ltail63unaligned | ||
87 | + ldrlo tmp2, [sp], #FRAME_SIZE | ||
88 | + blo .Ltail63unaligned | ||
89 | pld [src, #(4 * 64)] | ||
90 | |||
91 | #ifdef USE_NEON | ||
92 | @@ -633,7 +633,7 @@ ENTRY(memcpy) | ||
93 | neon_load_multi d0-d3, src | ||
94 | neon_load_multi d4-d7, src | ||
95 | subs count, count, #64 | ||
96 | - bmi 2f | ||
97 | + blo 2f | ||
98 | 1: | ||
99 | pld [src, #(4 * 64)] | ||
100 | neon_store_multi d0-d3, dst | ||
101 | @@ -641,7 +641,7 @@ ENTRY(memcpy) | ||
102 | neon_store_multi d4-d7, dst | ||
103 | neon_load_multi d4-d7, src | ||
104 | subs count, count, #64 | ||
105 | - bpl 1b | ||
106 | + bhs 1b | ||
107 | 2: | ||
108 | neon_store_multi d0-d3, dst | ||
109 | neon_store_multi d4-d7, dst | ||
110 | -- | ||
111 | 2.17.1 | ||
112 | |||
diff --git a/meta/recipes-core/glibc/glibc/CVE-2020-6096_2.patch b/meta/recipes-core/glibc/glibc/CVE-2020-6096_2.patch deleted file mode 100644 index 905e44c8e3..0000000000 --- a/meta/recipes-core/glibc/glibc/CVE-2020-6096_2.patch +++ /dev/null | |||
@@ -1,194 +0,0 @@ | |||
1 | From 79a4fa341b8a89cb03f84564fd72abaa1a2db394 Mon Sep 17 00:00:00 2001 | ||
2 | From: Evgeny Eremin <e.eremin@omprussia.ru> | ||
3 | Date: Wed, 8 Jul 2020 14:18:19 +0200 | ||
4 | Subject: [PATCH] arm: CVE-2020-6096: fix memcpy and memmove for negative | ||
5 | length [BZ #25620] | ||
6 | |||
7 | Unsigned branch instructions could be used for r2 to fix the wrong | ||
8 | behavior when a negative length is passed to memcpy and memmove. | ||
9 | This commit fixes the generic arm implementation of memcpy amd memmove. | ||
10 | |||
11 | Upstream-Status: Backport | ||
12 | CVE: CVE-2020-6096 patch #2 | ||
13 | Signed-off-by: Armin Kuster <akuster@mvista.com> | ||
14 | |||
15 | --- | ||
16 | sysdeps/arm/memcpy.S | 24 ++++++++++-------------- | ||
17 | sysdeps/arm/memmove.S | 24 ++++++++++-------------- | ||
18 | 2 files changed, 20 insertions(+), 28 deletions(-) | ||
19 | |||
20 | diff --git a/sysdeps/arm/memcpy.S b/sysdeps/arm/memcpy.S | ||
21 | index 510e8adaf2..bcfbc51d99 100644 | ||
22 | --- a/sysdeps/arm/memcpy.S | ||
23 | +++ b/sysdeps/arm/memcpy.S | ||
24 | @@ -68,7 +68,7 @@ ENTRY(memcpy) | ||
25 | cfi_remember_state | ||
26 | |||
27 | subs r2, r2, #4 | ||
28 | - blt 8f | ||
29 | + blo 8f | ||
30 | ands ip, r0, #3 | ||
31 | PLD( pld [r1, #0] ) | ||
32 | bne 9f | ||
33 | @@ -82,7 +82,7 @@ ENTRY(memcpy) | ||
34 | cfi_rel_offset (r6, 4) | ||
35 | cfi_rel_offset (r7, 8) | ||
36 | cfi_rel_offset (r8, 12) | ||
37 | - blt 5f | ||
38 | + blo 5f | ||
39 | |||
40 | CALGN( ands ip, r1, #31 ) | ||
41 | CALGN( rsb r3, ip, #32 ) | ||
42 | @@ -98,9 +98,9 @@ ENTRY(memcpy) | ||
43 | #endif | ||
44 | |||
45 | PLD( pld [r1, #0] ) | ||
46 | -2: PLD( subs r2, r2, #96 ) | ||
47 | +2: PLD( cmp r2, #96 ) | ||
48 | PLD( pld [r1, #28] ) | ||
49 | - PLD( blt 4f ) | ||
50 | + PLD( blo 4f ) | ||
51 | PLD( pld [r1, #60] ) | ||
52 | PLD( pld [r1, #92] ) | ||
53 | |||
54 | @@ -108,9 +108,7 @@ ENTRY(memcpy) | ||
55 | 4: ldmia r1!, {r3, r4, r5, r6, r7, r8, ip, lr} | ||
56 | subs r2, r2, #32 | ||
57 | stmia r0!, {r3, r4, r5, r6, r7, r8, ip, lr} | ||
58 | - bge 3b | ||
59 | - PLD( cmn r2, #96 ) | ||
60 | - PLD( bge 4b ) | ||
61 | + bhs 3b | ||
62 | |||
63 | 5: ands ip, r2, #28 | ||
64 | rsb ip, ip, #32 | ||
65 | @@ -222,7 +220,7 @@ ENTRY(memcpy) | ||
66 | strbge r4, [r0], #1 | ||
67 | subs r2, r2, ip | ||
68 | strb lr, [r0], #1 | ||
69 | - blt 8b | ||
70 | + blo 8b | ||
71 | ands ip, r1, #3 | ||
72 | beq 1b | ||
73 | |||
74 | @@ -236,7 +234,7 @@ ENTRY(memcpy) | ||
75 | .macro forward_copy_shift pull push | ||
76 | |||
77 | subs r2, r2, #28 | ||
78 | - blt 14f | ||
79 | + blo 14f | ||
80 | |||
81 | CALGN( ands ip, r1, #31 ) | ||
82 | CALGN( rsb ip, ip, #32 ) | ||
83 | @@ -253,9 +251,9 @@ ENTRY(memcpy) | ||
84 | cfi_rel_offset (r10, 16) | ||
85 | |||
86 | PLD( pld [r1, #0] ) | ||
87 | - PLD( subs r2, r2, #96 ) | ||
88 | + PLD( cmp r2, #96 ) | ||
89 | PLD( pld [r1, #28] ) | ||
90 | - PLD( blt 13f ) | ||
91 | + PLD( blo 13f ) | ||
92 | PLD( pld [r1, #60] ) | ||
93 | PLD( pld [r1, #92] ) | ||
94 | |||
95 | @@ -280,9 +278,7 @@ ENTRY(memcpy) | ||
96 | mov ip, ip, PULL #\pull | ||
97 | orr ip, ip, lr, PUSH #\push | ||
98 | stmia r0!, {r3, r4, r5, r6, r7, r8, r10, ip} | ||
99 | - bge 12b | ||
100 | - PLD( cmn r2, #96 ) | ||
101 | - PLD( bge 13b ) | ||
102 | + bhs 12b | ||
103 | |||
104 | pop {r5 - r8, r10} | ||
105 | cfi_adjust_cfa_offset (-20) | ||
106 | diff --git a/sysdeps/arm/memmove.S b/sysdeps/arm/memmove.S | ||
107 | index 954037ef3a..0d07b76ee6 100644 | ||
108 | --- a/sysdeps/arm/memmove.S | ||
109 | +++ b/sysdeps/arm/memmove.S | ||
110 | @@ -85,7 +85,7 @@ ENTRY(memmove) | ||
111 | add r1, r1, r2 | ||
112 | add r0, r0, r2 | ||
113 | subs r2, r2, #4 | ||
114 | - blt 8f | ||
115 | + blo 8f | ||
116 | ands ip, r0, #3 | ||
117 | PLD( pld [r1, #-4] ) | ||
118 | bne 9f | ||
119 | @@ -99,7 +99,7 @@ ENTRY(memmove) | ||
120 | cfi_rel_offset (r6, 4) | ||
121 | cfi_rel_offset (r7, 8) | ||
122 | cfi_rel_offset (r8, 12) | ||
123 | - blt 5f | ||
124 | + blo 5f | ||
125 | |||
126 | CALGN( ands ip, r1, #31 ) | ||
127 | CALGN( sbcsne r4, ip, r2 ) @ C is always set here | ||
128 | @@ -114,9 +114,9 @@ ENTRY(memmove) | ||
129 | #endif | ||
130 | |||
131 | PLD( pld [r1, #-4] ) | ||
132 | -2: PLD( subs r2, r2, #96 ) | ||
133 | +2: PLD( cmp r2, #96 ) | ||
134 | PLD( pld [r1, #-32] ) | ||
135 | - PLD( blt 4f ) | ||
136 | + PLD( blo 4f ) | ||
137 | PLD( pld [r1, #-64] ) | ||
138 | PLD( pld [r1, #-96] ) | ||
139 | |||
140 | @@ -124,9 +124,7 @@ ENTRY(memmove) | ||
141 | 4: ldmdb r1!, {r3, r4, r5, r6, r7, r8, ip, lr} | ||
142 | subs r2, r2, #32 | ||
143 | stmdb r0!, {r3, r4, r5, r6, r7, r8, ip, lr} | ||
144 | - bge 3b | ||
145 | - PLD( cmn r2, #96 ) | ||
146 | - PLD( bge 4b ) | ||
147 | + bhs 3b | ||
148 | |||
149 | 5: ands ip, r2, #28 | ||
150 | rsb ip, ip, #32 | ||
151 | @@ -237,7 +235,7 @@ ENTRY(memmove) | ||
152 | strbge r4, [r0, #-1]! | ||
153 | subs r2, r2, ip | ||
154 | strb lr, [r0, #-1]! | ||
155 | - blt 8b | ||
156 | + blo 8b | ||
157 | ands ip, r1, #3 | ||
158 | beq 1b | ||
159 | |||
160 | @@ -251,7 +249,7 @@ ENTRY(memmove) | ||
161 | .macro backward_copy_shift push pull | ||
162 | |||
163 | subs r2, r2, #28 | ||
164 | - blt 14f | ||
165 | + blo 14f | ||
166 | |||
167 | CALGN( ands ip, r1, #31 ) | ||
168 | CALGN( rsb ip, ip, #32 ) | ||
169 | @@ -268,9 +266,9 @@ ENTRY(memmove) | ||
170 | cfi_rel_offset (r10, 16) | ||
171 | |||
172 | PLD( pld [r1, #-4] ) | ||
173 | - PLD( subs r2, r2, #96 ) | ||
174 | + PLD( cmp r2, #96 ) | ||
175 | PLD( pld [r1, #-32] ) | ||
176 | - PLD( blt 13f ) | ||
177 | + PLD( blo 13f ) | ||
178 | PLD( pld [r1, #-64] ) | ||
179 | PLD( pld [r1, #-96] ) | ||
180 | |||
181 | @@ -295,9 +293,7 @@ ENTRY(memmove) | ||
182 | mov r4, r4, PUSH #\push | ||
183 | orr r4, r4, r3, PULL #\pull | ||
184 | stmdb r0!, {r4 - r8, r10, ip, lr} | ||
185 | - bge 12b | ||
186 | - PLD( cmn r2, #96 ) | ||
187 | - PLD( bge 13b ) | ||
188 | + bhs 12b | ||
189 | |||
190 | pop {r5 - r8, r10} | ||
191 | cfi_adjust_cfa_offset (-20) | ||
192 | -- | ||
193 | 2.17.1 | ||
194 | |||
diff --git a/meta/recipes-core/glibc/glibc_2.31.bb b/meta/recipes-core/glibc/glibc_2.32.bb index 38563b1a7b..7049e61625 100644 --- a/meta/recipes-core/glibc/glibc_2.31.bb +++ b/meta/recipes-core/glibc/glibc_2.32.bb | |||
@@ -21,30 +21,28 @@ SRC_URI = "${GLIBC_GIT_URI};branch=${SRCBRANCH};name=glibc \ | |||
21 | \ | 21 | \ |
22 | ${NATIVESDKFIXES} \ | 22 | ${NATIVESDKFIXES} \ |
23 | file://0008-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch \ | 23 | file://0008-fsl-e500-e5500-e6500-603e-fsqrt-implementation.patch \ |
24 | file://0009-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch \ | 24 | file://0009-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch \ |
25 | file://0010-ppc-sqrt-Fix-undefined-reference-to-__sqrt_finite.patch \ | 25 | file://0010-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \ |
26 | file://0011-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \ | 26 | file://0011-Quote-from-bug-1443-which-explains-what-the-patch-do.patch \ |
27 | file://0012-Quote-from-bug-1443-which-explains-what-the-patch-do.patch \ | 27 | file://0012-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch \ |
28 | file://0013-eglibc-run-libm-err-tab.pl-with-specific-dirs-in-S.patch \ | 28 | file://0013-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \ |
29 | file://0014-__ieee754_sqrt-f-are-now-inline-functions-and-call-o.patch \ | 29 | file://0014-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch \ |
30 | file://0015-sysdeps-gnu-configure.ac-handle-correctly-libc_cv_ro.patch \ | 30 | file://0015-yes-within-the-path-sets-wrong-config-variables.patch \ |
31 | file://0016-Add-unused-attribute.patch \ | 31 | file://0016-timezone-re-written-tzselect-as-posix-sh.patch \ |
32 | file://0017-yes-within-the-path-sets-wrong-config-variables.patch \ | 32 | file://0017-Remove-bash-dependency-for-nscd-init-script.patch \ |
33 | file://0018-timezone-re-written-tzselect-as-posix-sh.patch \ | 33 | file://0018-eglibc-Cross-building-and-testing-instructions.patch \ |
34 | file://0019-Remove-bash-dependency-for-nscd-init-script.patch \ | 34 | file://0019-eglibc-Help-bootstrap-cross-toolchain.patch \ |
35 | file://0020-eglibc-Cross-building-and-testing-instructions.patch \ | 35 | file://0020-eglibc-Resolve-__fpscr_values-on-SH4.patch \ |
36 | file://0021-eglibc-Help-bootstrap-cross-toolchain.patch \ | 36 | file://0021-eglibc-Forward-port-cross-locale-generation-support.patch \ |
37 | file://0022-eglibc-Resolve-__fpscr_values-on-SH4.patch \ | 37 | file://0022-Define-DUMMY_LOCALE_T-if-not-defined.patch \ |
38 | file://0023-eglibc-Forward-port-cross-locale-generation-support.patch \ | 38 | file://0023-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \ |
39 | file://0024-Define-DUMMY_LOCALE_T-if-not-defined.patch \ | 39 | file://0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch \ |
40 | file://0025-localedef-add-to-archive-uses-a-hard-coded-locale-pa.patch \ | 40 | file://0025-intl-Emit-no-lines-in-bison-generated-files.patch \ |
41 | file://0026-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch \ | 41 | file://0026-inject-file-assembly-directives.patch \ |
42 | file://0027-intl-Emit-no-lines-in-bison-generated-files.patch \ | 42 | file://0027-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch \ |
43 | file://0028-inject-file-assembly-directives.patch \ | 43 | file://0028-readlib-Add-OECORE_KNOWN_INTERPRETER_NAMES-to-known-.patch \ |
44 | file://0029-locale-prevent-maybe-uninitialized-errors-with-Os-BZ.patch \ | 44 | file://0029-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch \ |
45 | file://0030-wordsize.h-Unify-the-header-between-arm-and-aarch64.patch \ | 45 | file://0030-powerpc-Do-not-ask-compiler-for-finding-arch.patch \ |
46 | file://CVE-2020-6096.patch \ | ||
47 | file://CVE-2020-6096_2.patch \ | ||
48 | " | 46 | " |
49 | S = "${WORKDIR}/git" | 47 | S = "${WORKDIR}/git" |
50 | B = "${WORKDIR}/build-${TARGET_SYS}" | 48 | B = "${WORKDIR}/build-${TARGET_SYS}" |