diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-05 14:52:21 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-12-05 18:09:37 -0700 |
| commit | 2c49a6c1909e7ea17af5fb7d43adef45d7125473 (patch) | |
| tree | cb8abded10890723591eba771c0d8aab911fcd3b /src/stage1/errmsg.cpp | |
| parent | dfe942024461a3598fc872ea79e7859a8744b550 (diff) | |
| download | zig-2c49a6c1909e7ea17af5fb7d43adef45d7125473.tar.gz zig-2c49a6c1909e7ea17af5fb7d43adef45d7125473.zip | |
compiler_rt: avoid using weak aliases
This is a partial revert of 0d533433e21621177fb291e2a4901bee11834501,
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.
Diffstat (limited to 'src/stage1/errmsg.cpp')
0 files changed, 0 insertions, 0 deletions
