about summary refs log tree commit diff
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:36:04 +0200
commitf441cb9a70fa3f55e9bbd615924879d692d21a6c (patch)
tree82d2f3aeab2b9ec6032099a9251ea4e955fdc888
parent9f0d3bb2e325dc30ae20e347cccbe10fa0b4ce9b (diff)
downloadglibc-f441cb9a70fa3f55e9bbd615924879d692d21a6c.tar.gz
glibc-f441cb9a70fa3f55e9bbd615924879d692d21a6c.tar.xz
glibc-f441cb9a70fa3f55e9bbd615924879d692d21a6c.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 81f5715db0..4eb8fe0d96 100644
--- a/include/link.h
+++ b/include/link.h
@@ -254,6 +254,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'.  */
@@ -276,10 +280,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
       {