zig/lib/libc/glibc/sysdeps
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
..
aarch64 glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
alpha glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
arc glibc: import sysdep.h from upstream 2021-12-15 19:12:24 -07:00
arm glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
csky glibc: import sysdep.h from upstream 2021-12-15 19:12:24 -07:00
generic
hppa glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
htl
i386 glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
ia64 glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
m68k glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
mach
microblaze glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
mips glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
nios2 glibc: import sysdep.h from upstream 2021-12-15 19:12:24 -07:00
nptl
powerpc glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
pthread
riscv glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
s390 glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
sh glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
sparc glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00
unix glibc: libc_nonshared.a: add missing includes for inttypes.h 2021-12-16 03:01:13 -07:00
wordsize-32
x86
x86_64 glibc: restore compatibility with glibc<=2.33 for global initializers 2022-01-14 11:48:37 -07:00