When linking PSYQ SDK's .o files created with PCSX-Redux's psyq-obj-parser, lld prints warnings like:
ld.lld: warning: main.o: linking abicalls code with non-abicalls code lib/libc2/MEMSET.o
This is because LLVM needs the noabicalls feature to emit .abicalls with .option pic0, so that the resulting ELF doesn't contain the cpic flag.
I think we do want to solve that warning, but this is not the right way to do it, per #31332.
Let's leave this off for now, but file a follow-up issue and I'll investigate what we can do.
Originally posted by @alexrp in #35810 (comment)
When linking PSYQ SDK's .o files created with PCSX-Redux's [psyq-obj-parser](https://github.com/grumpycoders/pcsx-redux/blob/main/tools/psyq-obj-parser/README.md), lld prints warnings like:
```sh
ld.lld: warning: main.o: linking abicalls code with non-abicalls code lib/libc2/MEMSET.o
```
This is because LLVM needs the `noabicalls` feature to emit `.abicalls` with `.option pic0`, so that the resulting ELF doesn't contain the `cpic` flag.
-----
I think we do want to solve that warning, but this is not the right way to do it, per https://codeberg.org/ziglang/zig/issues/31332.
Let's leave this off for now, but file a follow-up issue and I'll investigate what we can do.
_Originally posted by @alexrp in https://codeberg.org/ziglang/zig/pulls/35810#issuecomment-17666675_