Re: [PATCH] recordmcount: support >64k sections
From: Sami Tolvanen
Date: Thu Apr 23 2020 - 14:47:28 EST
On Wed, Apr 22, 2020 at 08:05:32PM -0400, Steven Rostedt wrote:
> On Wed, 22 Apr 2020 16:24:17 -0700
> Sami Tolvanen <samitolvanen@xxxxxxxxxx> wrote:
>
> > When compiling a kernel with Clang and LTO, we need to run
> > recordmcount on vmlinux.o with a large number of sections, which
> > currently fails as the program doesn't understand extended
> > section indexes. This change adds support for processing binaries
> > with >64k sections.
>
> Thanks! As you have also Cc'd Matt Helsley, perhaps you have noticed we
> are trying to get this code merged with objtool.
>
> How would that affect this?
Yes, I saw the patches. If you are copying over code, a similar fix
might be needed, but otherwise I don't see any issues. I also sent a
patch for objtool a couple of days ago to support >64k sections:
https://lore.kernel.org/lkml/20200421220843.188260-2-samitolvanen@xxxxxxxxxx/
Sami