Re: [RFC][PATCH 15/16] objtool: Implement noinstr validation

From: Peter Zijlstra
Date: Mon Mar 16 2020 - 12:46:35 EST


On Mon, Mar 16, 2020 at 11:21:47AM -0500, Josh Poimboeuf wrote:
> On Mon, Mar 16, 2020 at 11:19:07AM -0500, Josh Poimboeuf wrote:
> > > And I was hoping to get vmlinux.o objtool clean, surprisingly there
> > > really aren't that many complaints. But the -i thing makes it run
> > > significantly faster without duplicating all the bits we've already
> > > checked.
> >
> > My suggestion is that the "-i" option would be hard-coded (for now). So
> > nothing extra would get checked.
>
> If that wasn't clear, I mean that for vmlinux.o we'd only do the
> instr-checking. For individual .o's we'd do everything else.

That'd get in the way of making vmlinux.o objtool clean though :/