0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley 2c49a6c190 compiler_rt: avoid using weak aliases
This is a partial revert of 0d533433e2,
which regressed this behavior. The idea here is to avoid aliases, which
happens when the same function is exported with multiple names. The
problem with aliases is that weak aliases don't seem to work, causing
symbol collisions when multiple of the same symbol are provided, despite
the desired behavior that weak symbols are overridden.

In this case we export redundant functions with different names. Thanks
to -ffunction-sections, the unused functions will be garbage-collected
at link time. This leaves us with the best of both worlds: Zig's
compiler-rt will provide both sets of symbols, and it will be
binary-compatible with different compilers that expect different names,
while still resulting in binaries without garbage.
History 2022-12-05 18:09:37 -07:00
..
compiler_rt compiler_rt: avoid using weak aliases 2022-12-05 18:09:37 -07:00
docs Merge pull request #13300 from jcalabro/master 2022-10-30 17:20:57 +01:00
include C backend: improve ergonomics of zig.h a little bit 2022-11-13 16:50:16 -07:00
init-exe init-exe template: add flushing to the buffered writer 2022-08-04 21:12:42 +02:00
init-lib flatten lib/std/special and improve "pkg inside another" logic 2022-05-06 22:41:00 -07:00
libc Update wasi-libc to a00bf321eeeca836ee2a0d2d25aeb8524107b8cc (#13626) 2022-11-28 19:58:03 +01:00
libcxx update libcxx to LLVM 15.0.3 2022-10-18 10:18:09 -07:00
libcxxabi update libcxxabi to LLVM 15 2022-08-04 18:02:01 -07:00
libunwind update libunwind to LLVM 15 2022-08-04 18:09:10 -07:00
std treshold -> threshold 2022-12-05 19:25:10 -05:00
tsan update libcxx, libcxxabi, libunwind, and tsan to llvm 13 rc1 2021-08-16 23:32:13 -07:00
build_runner.zig CLI: allow using --debug-compile-errors with zig build 2022-11-30 19:14:04 +02:00
c.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
compiler_rt.zig rename lse_atomics.zig to aarch64_outline_atomics.zig 2022-11-21 17:17:02 -07:00
ssp.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
test_runner.zig stage2 AArch64: misc fixes, enable printing in test runner 2022-11-01 20:44:18 +01:00
zig.h cbe: implement function alignment 2022-12-03 08:40:08 -05:00