Re: [PATCH] rust: cfi: disable function merging if CFI is enabled

From: Sami Tolvanen

Date: Tue Nov 17 2026 - 17:03:50 EST


On Tue, Nov 17, 2026 at 12:58 PM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> Function merging should also be disabled with gendwarfksyms. It causes
> faux::Registration::as_raw() and Page::as_ptr() to get merged, which
> incorrectly causes the former to get the CRC of the latter.

Sounds reasonable to me. Although, I assume this is only really a
problem if the functions stop being merged later on, e.g. because
they're no longer ABI compatible?

Sami