Re: [PATCH v4 09/39] x86/vdso: Enable sframe generation in VDSO
From: Josh Poimboeuf
Date: Fri Jan 24 2025 - 11:53:26 EST
On Fri, Jan 24, 2025 at 08:43:35AM -0800, Josh Poimboeuf wrote:
> On Fri, Jan 24, 2025 at 05:00:27PM +0100, Jens Remus wrote:
> > On 22.01.2025 03:31, Josh Poimboeuf wrote:
> > > +#ifdef __x86_64__
> >
> > #if defined(__x86_64__) && defined(CONFIG_AS_SFRAME)
> >
> > AFAIK the kernel has a minimum binutils requirement of 2.25 [1]
> > and assembler option "--gsframe" as well as directive
> > ".cfi_sections .sframe" were introduced with 2.40.
>
> True, I'll change it to just '#ifdef CONFIG_AS_SFRAME' since that's what
> really matters (and 32-bit doesn't support it anyway).
Actually, just CONFIG_AS_CFAME didn't work as 64-bit still compiles some
32-bit asm files. I'll go with your suggestion.
--
Josh