Re: [PATCH] x86/sev: Mark snp_abort() noreturn

From: Peter Zijlstra
Date: Wed Aug 24 2022 - 12:16:53 EST


On Wed, Aug 24, 2022 at 05:48:56PM +0200, Borislav Petkov wrote:
> On Wed, Aug 24, 2022 at 05:38:26PM +0200, Peter Zijlstra wrote:
> > You'll probably also have to add it to the
> > objtool/check.c:global_noreturn[] list, for the case where objtool fails
> > to recognise it as noreturn.
>
> How come?
>
> Doesn't objtool see the attribute?

If only there would be a trace of it left in the ELF file...