aboutsummaryrefslogtreecommitdiff
path: root/lib/libc/glibc/csu/init.c
AgeCommit message (Collapse)Author
2025-01-31glibc: Update source files to 2.41.Alex Rønne Petersen
2024-08-23glibc: Define _IO_stdin_used in start code and reference it in stub asm.Alex Rønne Petersen
This is necessary to inform the real, non-stub glibc that a program built with Zig is using a modern `FILE` structure, i.e. glibc 2.1+. This is particularly important on lesser-used architectures where the legacy code is poorly tested; for example, glibc 2.40 introduced a regression for the legacy case in the libio cleanup code, causing all Zig-compiled MIPS binaries to crash on exit.