support for linking powerpc64 ELFv1 ABI objects #5927
Labels
arch-powerpc
32-bit and 64-bit Power ISA
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
frontend
Tokenization, parsing, AstGen, Sema, and Liveness.
os-linux
upstream
An issue with a third party project that Zig uses.
Milestone
Hi, I'm trying to add linux-powerpc64 support to the compiler.
I've gotten it far enough that the stage1 zig could compile things, but now I'm having problems with linking since apparently, lld doesn't support powerpc64 ELFv1 ABI (which Debian/ppc64 uses).
Is there any way to specify an alternate ld binary to get around this issue?
More details:
With Zig code, lld generates wrong target for branches:
Annotated objdump output of hello, for the relevant parts:
Trying to do it with C and clang shows that lld doesn't support ELFv1 ABI:
The text was updated successfully, but these errors were encountered: