zig/lib/libc/glibc
xavier f1b14b91f1 glibc: restore compatibility with glibc<=2.33 for global initializers
__libc_start_main() from glibc.2.33.so or older needs to have a __libc_csu_init function callback parameter.

glibc-2.34 on the other hand has a different __libc_start_main() that does not use it,
and the start.S file from glibc-2.34 no longer construct the init function and pass null when calling __libc_start_main.

So, When targetting an older glibc, use the start.s files as they were in glibc-2.33 and construct the __libc_csu_init function.

fixes #10386 #10512
2022-01-14 11:48:37 -07:00
..
bits update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
csu glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
debug update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
elf update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
include glibc: update libc-modules.h 2021-12-16 03:33:47 -07:00
io glibc: use linux-specific files for nonshared 2021-12-15 15:23:56 -07:00
locale/bits/types update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
misc update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
posix update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
signal update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
stdlib update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
string update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
sysdeps glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
time/bits/types update glibc start files to 2.34 2021-12-15 14:30:03 -07:00
abilists glibc: update abilists file 2021-12-15 17:50:44 -07:00
LICENSES update glibc source files to 2.31 2020-03-04 14:59:09 -05:00