From cba932a5a9e91cffd7f4172d7e91f9b2efb1f84b Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 12 Nov 2019 12:41:34 +0100 Subject: 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 --- sysdeps/generic/ldsodefs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/generic') 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; -- cgit v1.2.3-70-g09d2