about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2019-11-12 12:41:34 +0100
committerFlorian Weimer <fweimer@redhat.com>2019-11-12 13:54:30 +0100
commitcba932a5a9e91cffd7f4172d7e91f9b2efb1f84b (patch)
tree82fb283a15d1ff654e6b54d86008917386a03da3 /sysdeps
parent42b926d303e571d5f9a4e97ffdb8e05d1eabae66 (diff)
downloadglibc-cba932a5a9e91cffd7f4172d7e91f9b2efb1f84b.tar.gz
glibc-cba932a5a9e91cffd7f4172d7e91f9b2efb1f84b.tar.xz
glibc-cba932a5a9e91cffd7f4172d7e91f9b2efb1f84b.zip
slotinfo in struct dtv_slotinfo_list should be flexible array [BZ #25097]
GCC 10 will warn about subscribing inner length zero arrays.  Use a GCC
extension in csu/libc-tls.c to allocate space for the static_slotinfo
variable.  Adjust nptl_db so that the type description machinery does
not attempt to determine the size of the flexible array member slotinfo.

Change-Id: I51be146a7857186a4ede0bb40b332509487bdde8
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/ldsodefs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index f3ba13ee68..a6991f3ac7 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -420,7 +420,7 @@ struct rtld_global
     {
       size_t gen;
       struct link_map *map;
-    } slotinfo[0];
+    } slotinfo[];
   } *_dl_tls_dtv_slotinfo_list;
   /* Number of modules in the static TLS block.  */
   EXTERN size_t _dl_tls_static_nelem;