aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2023-09-11 09:17:52 +0200
committerFlorian Weimer <fweimer@redhat.com>2023-09-11 09:38:01 +0200
commit59ee83b0c27a67a34dc53b312424c9435423bfc9 (patch)
treeeaf5c6b23d8b6bdbf79ba68e0ac7aceae84725a2
parent34b07bdbdd69121d6e7d3ccf51a61cc4fa2c408d (diff)
downloadglibc-59ee83b0c27a67a34dc53b312424c9435423bfc9.tar
glibc-59ee83b0c27a67a34dc53b312424c9435423bfc9.tar.gz
glibc-59ee83b0c27a67a34dc53b312424c9435423bfc9.tar.bz2
glibc-59ee83b0c27a67a34dc53b312424c9435423bfc9.zip
elf: Move l_init_called_next to old place of l_text_end in link map
This preserves all member offsets and the GLIBC_PRIVATE ABI for backporting.
-rw-r--r--include/link.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/link.h b/include/link.h
index 7ad6b09b81..c7b38a05d0 100644
--- a/include/link.h
+++ b/include/link.h
@@ -256,6 +256,10 @@ struct link_map
need not be the same as l_addr. */
ElfW(Addr) l_map_start, l_map_end;
+ /* Linked list of objects in reverse ELF constructor execution
+ order. Head of list is stored in _dl_init_called_list. */
+ struct link_map *l_init_called_next;
+
/* Default array for 'l_scope'. */
struct r_scope_elem *l_scope_mem[4];
/* Size of array allocated for 'l_scope'. */
@@ -278,10 +282,6 @@ struct link_map
/* List of object in order of the init and fini calls. */
struct link_map **l_initfini;
- /* Linked list of objects in reverse ELF constructor execution
- order. Head of list is stored in _dl_init_called_list. */
- struct link_map *l_init_called_next;
-
/* List of the dependencies introduced through symbol binding. */
struct link_map_reldeps
{