diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-08-17 11:42:32 +0200 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2024-08-23 11:09:20 -0700 |
| commit | 5dd2bb525d1f19969c450c2b99a71f866a4f01ff (patch) | |
| tree | 3dac4b3d3d5facfdb2c8998ff50a45bfa0015da2 /src/codegen.zig | |
| parent | df6907f6019ec178735f06e1b55cef6a90234201 (diff) | |
| download | zig-5dd2bb525d1f19969c450c2b99a71f866a4f01ff.tar.gz zig-5dd2bb525d1f19969c450c2b99a71f866a4f01ff.zip | |
glibc: Define _IO_stdin_used in start code and reference it in stub asm.
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.
Diffstat (limited to 'src/codegen.zig')
0 files changed, 0 insertions, 0 deletions
