glibc master won't build with GCC 10

H.J. Lu hjl.tools@gmail.com
Tue Apr 28 21:57:43 GMT 2020


commit 6d246cb852d3c5ab721dc583112a59ac47dc374e
Author: Florian Weimer <fweimer@redhat.com>
Date:   Tue Apr 28 12:10:32 2020 +0200

    misc: Remove sstk from the autogenerated system call list

    This change should not have an effect because the system call was
    never defined.  Also add the misssing attribute_compat_text_section
    attribute to the sstk function (a minor optimization).  Also update the
    NEWS file to document the change.

    Fixes commit 9cc93ba0973ad04ee26c515a1552afb85e73c6ba
    ("misc: Turn sstk into a compat symbol").

won't build with GCC 10:

rtld.c: In function ‘dl_main’:
rtld.c:1016:27: error: array subscript ‘cnt’ is outside the bounds of
an interior zero-length array ‘struct auditstate[0]’
[-Werror=zero-length-bounds]
 1016 |    GL(dl_rtld_map).l_audit[cnt].cookie = (intptr_t) &GL(dl_rtld_map);
In file included from ../include/dlfcn.h:4,
                 from rtld.c:20:
../include/link.h:335:7: note: while referencing ‘l_audit’
  335 |     } l_audit[0];
      |       ^~~~~~~
cc1: all warnings being treated as errors
make[5]: *** [../o-iterator.mk:9:
/export/build/gnu/tools-build/glibc/build-x86_64-linux/elf/rtld.os]
Error 1


-- 
H.J.


More information about the Libc-alpha mailing list