Re: [PATCH 3/7] kcov: x86: introduce CONFIG_KCOV_ENABLE_GUARDS
From: Marco Elver
Date: Thu Apr 24 2025 - 10:04:15 EST
On Thu, 24 Apr 2025 at 15:59, Alexander Potapenko <glider@xxxxxxxxxx> wrote:
>
> > > --- a/arch/x86/kernel/vmlinux.lds.S
> > > +++ b/arch/x86/kernel/vmlinux.lds.S
> > > @@ -390,6 +390,7 @@ SECTIONS
> > > . = ALIGN(PAGE_SIZE);
> > > __bss_stop = .;
> > > }
> > > + SANCOV_GUARDS_BSS
> >
> > Right now this will be broken on other architectures, right?
>
> Right. I'm going to make it depend on X86_64 for now.
This needs to be done with a 'select HAVE_KCOV_UNIQUE' or such from
arch/x86/Kconfig.