There's a few issues: - we [write an extra relocation](https://github.com/gimli-rs/object/blob/1e3fe5a44c9a6d9af20b77ede50ee55edbb50eef/src/write/macho.rs#L701) but don't increase the [number of relocations in the section header](https://github.com/gimli-rs/object/blob/1e3fe5a44c9a6d9af20b77ede50ee55edbb50eef/src/write/macho.rs#L522) - we write the `ARM64_RELOC_ADDEND` after the paired relocation, but the [documentation says it should come first](https://github.com/gimli-rs/object/blob/1e3fe5a44c9a6d9af20b77ede50ee55edbb50eef/src/macho.rs#L3002) - we should support this for `ARM64_RELOC_PAGE21` and `ARM64_RELOC_PAGEOFF12` as well This probably needs to be fixed for https://github.com/bjorn3/rustc_codegen_cranelift/issues/1248
There's a few issues:
ARM64_RELOC_ADDENDafter the paired relocation, but the documentation says it should come firstARM64_RELOC_PAGE21andARM64_RELOC_PAGEOFF12as wellThis probably needs to be fixed for https://github.com/bjorn3/rustc_codegen_cranelift/issues/1248