Re: [PATCH] rust: Makefile: apply fixed-x18 workaround only on arm64

From: Miguel Ojeda

Date: Mon Feb 02 2026 - 09:28:05 EST


On Mon, Feb 2, 2026 at 2:21 PM HeeSu Kim <mlksvender@xxxxxxxxx> wrote:
>
> However, `fixed-x18` is an ARM64-specific ABI modifier related to the
> x18 register reservation (used for Shadow Call Stack). Currently, this
> workaround is applied unconditionally on all architectures, which is
> incorrect and may cause issues on non-ARM64 builds.

Could you please elaborate on the issues you are seeing, e.g. how to
reproduce them?

The flag is only used to silence errors from checks that were added to
`rustc` and it is ignored otherwise (that is why the workaround was
written like that).

Thank you!

Cheers,
Miguel