Join GitHub today
diagnose and fix bug in mach-o LLD code: invalid x86_64 Reference Kind #662
Right now we have this patch applied to our in-tree fork of LLD:
It's an ugly workaround and does not solve the root cause. It's currently the only patch we have on top of LLD. If we fix this then we can go back to using upstream LLD.
Upstream bug: https://bugs.llvm.org/show_bug.cgi?id=32254
The bug is triggered by trivial hello world code. It seems the Mach-O LLD code is not well supported by the LLD team. Zig project will have to pick up the slack.