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 /meta/recipes-core/glibc/glibc/0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch | |
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>
Diffstat (limited to 'meta/recipes-core/glibc/glibc/0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch')
-rw-r--r-- | meta/recipes-core/glibc/glibc/0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/meta/recipes-core/glibc/glibc/0024-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 new file mode 100644 index 0000000000..02e73594a0 --- /dev/null +++ b/meta/recipes-core/glibc/glibc/0024-elf-dl-deps.c-Make-_dl_build_local_scope-breadth-fir.patch | |||
@@ -0,0 +1,56 @@ | |||
1 | From dffa52364f8c54c455b2459ebe83f05cb6ffc9fc Mon Sep 17 00:00:00 2001 | ||
2 | From: Mark Hatle <mark.hatle@windriver.com> | ||
3 | Date: Thu, 18 Aug 2016 14:07:58 -0500 | ||
4 | Subject: [PATCH 24/29] elf/dl-deps.c: Make _dl_build_local_scope breadth first | ||
5 | |||
6 | According to the ELF specification: | ||
7 | |||
8 | When resolving symbolic references, the dynamic linker examines the symbol | ||
9 | tables with a breadth-first search. | ||
10 | |||
11 | This function was using a depth first search. By doing so the conflict | ||
12 | resolution reported to the prelinker (when LD_TRACE_PRELINKING=1 is set) | ||
13 | was incorrect. This caused problems when their were various circular | ||
14 | dependencies between libraries. The problem usually manifested itself by | ||
15 | the wrong IFUNC being executed. | ||
16 | |||
17 | [BZ# 20488] | ||
18 | |||
19 | Upstream-Status: Submitted [libc-alpha] | ||
20 | |||
21 | Signed-off-by: Mark Hatle <mark.hatle@windriver.com> | ||
22 | --- | ||
23 | elf/dl-deps.c | 14 ++++++++++---- | ||
24 | 1 file changed, 10 insertions(+), 4 deletions(-) | ||
25 | |||
26 | diff --git a/elf/dl-deps.c b/elf/dl-deps.c | ||
27 | index b5a43232a7..8aa8f37fa3 100644 | ||
28 | --- a/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) | ||
31 | { | ||
32 | struct link_map **p = list; | ||
33 | struct link_map **q; | ||
34 | + struct link_map **r; | ||
35 | |||
36 | *p++ = map; | ||
37 | map->l_reserved = 1; | ||
38 | - if (map->l_initfini) | ||
39 | - for (q = map->l_initfini + 1; *q; ++q) | ||
40 | - if (! (*q)->l_reserved) | ||
41 | - p += _dl_build_local_scope (p, *q); | ||
42 | + | ||
43 | + for (r = list; r < p; ++r) | ||
44 | + if ((*r)->l_initfini) | ||
45 | + for (q = (*r)->l_initfini + 1; *q; ++q) | ||
46 | + if (! (*q)->l_reserved) | ||
47 | + { | ||
48 | + *p++ = *q; | ||
49 | + (*q)->l_reserved = 1; | ||
50 | + } | ||
51 | return p - list; | ||
52 | } | ||
53 | |||
54 | -- | ||
55 | 2.27.0 | ||
56 | |||