Re: [PATCH v3 5/6] objtool/rust: list `noreturn` Rust functions

From: Miguel Ojeda
Date: Tue Aug 06 2024 - 17:30:49 EST


On Tue, Aug 6, 2024 at 10:22 PM Peter Zijlstra <peterz@xxxxxxxxxxxxx> wrote:
>
> So it would be fairly simple to make objtool consume a magic section
> emitted by the compiler.. I think we've asked the compiler folks for
> that at some point even, but I don't have clear recollections.

The section sounds like a good approach -- we will ask the Rust team
about it. Then perhaps we can get Clang/GCC to implement something
similar too -- for this sort of thing we can use the shorter cycles of
`rustc` (and their unstable features concept too) to experiment with
these things :)

I have also added it to our `rustc` sublist of things we need.

Cheers,
Miguel