Re: [PATCH v2 29/62] objtool: Mark prefix functions
From: Josh Poimboeuf
Date: Thu Jun 26 2025 - 18:44:28 EST
On Wed, Jun 04, 2025 at 05:04:33PM -0700, Josh Poimboeuf wrote:
> On Mon, May 26, 2025 at 12:43:55PM +0200, Peter Zijlstra wrote:
> > > +++ b/tools/objtool/elf.c
> > > @@ -442,6 +442,11 @@ static void elf_add_symbol(struct elf *elf, struct symbol *sym)
> > > elf_hash_add(symbol, &sym->hash, sym->idx);
> > > elf_hash_add(symbol_name, &sym->name_hash, str_hash(sym->name));
> > >
> > > + if (is_func_sym(sym) && sym->len == 16 &&
> >
> > Where did that 'sym->len == 16' thing come from? I mean, they are, but
> > the old code didn't assert that.
> >
> > I would rather objtool issue a warn if not 16, but still consider these
> > as prefix.
>
> Ok:
Turns out there are kCFI cases with prefixes != 16, so I omitted the
size check altogether.
--
Josh