aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorxavier <xavierb@gmail.com>2022-01-13 09:15:41 +0100
committerAndrew Kelley <andrew@ziglang.org>2022-01-14 11:48:37 -0700
commitf1b14b91f1f0c381c0d2c8c7ba3fd8df8a937227 (patch)
tree0a06f856c8483c4908d1baf68b6630769ed967b1 /src/codegen
parenta64989ee704255f61639c9714c5a38b4d6eb0a9e (diff)
downloadzig-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/codegen')
0 files changed, 0 insertions, 0 deletions