diff options
| author | xavier <xavierb@gmail.com> | 2022-01-13 09:15:41 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-01-14 11:48:37 -0700 |
| commit | f1b14b91f1f0c381c0d2c8c7ba3fd8df8a937227 (patch) | |
| tree | 0a06f856c8483c4908d1baf68b6630769ed967b1 /src/zig_llvm.cpp | |
| parent | a64989ee704255f61639c9714c5a38b4d6eb0a9e (diff) | |
| download | zig-f1b14b91f1f0c381c0d2c8c7ba3fd8df8a937227.tar.gz zig-f1b14b91f1f0c381c0d2c8c7ba3fd8df8a937227.zip | |
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
Diffstat (limited to 'src/zig_llvm.cpp')
0 files changed, 0 insertions, 0 deletions
