]> git.ipfire.org Git - people/stevee/ipfire-2.x.git/blob - src/patches/glibc-2.38/0017-elf-Move-l_init_called_next-to-old-place-of-l_text_e.patch
glibc: Import latest patches from upstream
[people/stevee/ipfire-2.x.git] / src / patches / glibc-2.38 / 0017-elf-Move-l_init_called_next-to-old-place-of-l_text_e.patch
1 From d3ba6c1333b10680ce5900a628108507d9d4b844 Mon Sep 17 00:00:00 2001
2 From: Florian Weimer <fweimer@redhat.com>
3 Date: Mon, 11 Sep 2023 09:17:52 +0200
4 Subject: [PATCH 17/44] elf: Move l_init_called_next to old place of l_text_end
5 in link map
6
7 This preserves all member offsets and the GLIBC_PRIVATE ABI
8 for backporting.
9 ---
10 include/link.h | 8 ++++----
11 1 file changed, 4 insertions(+), 4 deletions(-)
12
13 diff --git a/include/link.h b/include/link.h
14 index c6af095d87..686813f281 100644
15 --- a/include/link.h
16 +++ b/include/link.h
17 @@ -254,6 +254,10 @@ struct link_map
18 need not be the same as l_addr. */
19 ElfW(Addr) l_map_start, l_map_end;
20
21 + /* Linked list of objects in reverse ELF constructor execution
22 + order. Head of list is stored in _dl_init_called_list. */
23 + struct link_map *l_init_called_next;
24 +
25 /* Default array for 'l_scope'. */
26 struct r_scope_elem *l_scope_mem[4];
27 /* Size of array allocated for 'l_scope'. */
28 @@ -276,10 +280,6 @@ struct link_map
29 /* List of object in order of the init and fini calls. */
30 struct link_map **l_initfini;
31
32 - /* Linked list of objects in reverse ELF constructor execution
33 - order. Head of list is stored in _dl_init_called_list. */
34 - struct link_map *l_init_called_next;
35 -
36 /* List of the dependencies introduced through symbol binding. */
37 struct link_map_reldeps
38 {
39 --
40 2.39.2
41