]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Preserve _rtld_global layout for the release branch
authorFlorian Weimer <fweimer@redhat.com>
Mon, 18 Aug 2025 11:52:02 +0000 (13:52 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Mon, 18 Aug 2025 12:13:49 +0000 (14:13 +0200)
Backporting commit 7d649d1c990441181c903bd2f99251cbf1552180
("elf: Introduce _dl_debug_change_state") removed the
_ns_debug member.  Keep it to preseve struct layout.

sysdeps/generic/ldsodefs.h

index 043abd369700ad586b8e0b04515440987001b58f..b4c6e6d2ca7a1fec1e7e108eb1fd052b20acf15b 100644 (file)
@@ -350,6 +350,8 @@ struct rtld_global
       size_t n_elements;
       void (*free) (void *);
     } _ns_unique_sym_table;
+    /* Keep track of changes to each namespace' list.  */
+    struct r_debug_extended _ns_debug_unused;
   } _dl_ns[DL_NNS];
   /* One higher than index of last used namespace.  */
   EXTERN size_t _dl_nns;