slotinfo in struct dtv_slotinfo_list should be flexible array [BZ #25097]
authorFlorian Weimer <fweimer@redhat.com>
Tue, 12 Nov 2019 11:41:34 +0000 (12:41 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 12 Nov 2019 12:54:30 +0000 (13:54 +0100)
commitcba932a5a9e91cffd7f4172d7e91f9b2efb1f84b
tree82fb283a15d1ff654e6b54d86008917386a03da3
parent42b926d303e571d5f9a4e97ffdb8e05d1eabae66
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
csu/libc-tls.c
nptl_db/db-symbols.h
nptl_db/db_info.c
nptl_db/structs.def
nptl_db/thread_dbP.h
sysdeps/generic/ldsodefs.h