Re: [PATCH v2 05/28] objtool: Add a pass for generating __mcount_loc

2020-09-10 Thread Kees Cook
On Fri, Sep 04, 2020 at 11:31:04AM +0200, pet...@infradead.org wrote: > On Thu, Sep 03, 2020 at 03:03:30PM -0700, Sami Tolvanen wrote: > > On Thu, Sep 3, 2020 at 2:51 PM Kees Cook wrote: > > > > > > On Thu, Sep 03, 2020 at 01:30:30PM -0700, Sami Tolvanen wrote: > > > > From: Peter Zijlstra > > >

Re: [PATCH v2 05/28] objtool: Add a pass for generating __mcount_loc

2020-09-04 Thread peterz
On Thu, Sep 03, 2020 at 03:03:30PM -0700, Sami Tolvanen wrote: > On Thu, Sep 3, 2020 at 2:51 PM Kees Cook wrote: > > > > On Thu, Sep 03, 2020 at 01:30:30PM -0700, Sami Tolvanen wrote: > > > From: Peter Zijlstra > > > > > > Add the --mcount option for generating __mcount_loc sections > > > needed

Re: [PATCH v2 05/28] objtool: Add a pass for generating __mcount_loc

2020-09-03 Thread Sami Tolvanen
On Thu, Sep 3, 2020 at 2:51 PM Kees Cook wrote: > > On Thu, Sep 03, 2020 at 01:30:30PM -0700, Sami Tolvanen wrote: > > From: Peter Zijlstra > > > > Add the --mcount option for generating __mcount_loc sections > > needed for dynamic ftrace. Using this pass requires the kernel to > > be compiled

Re: [PATCH v2 05/28] objtool: Add a pass for generating __mcount_loc

2020-09-03 Thread Kees Cook
On Thu, Sep 03, 2020 at 01:30:30PM -0700, Sami Tolvanen wrote: > From: Peter Zijlstra > > Add the --mcount option for generating __mcount_loc sections > needed for dynamic ftrace. Using this pass requires the kernel to > be compiled with -mfentry and CC_USING_NOP_MCOUNT to be defined > in

[PATCH v2 05/28] objtool: Add a pass for generating __mcount_loc

2020-09-03 Thread Sami Tolvanen
From: Peter Zijlstra Add the --mcount option for generating __mcount_loc sections needed for dynamic ftrace. Using this pass requires the kernel to be compiled with -mfentry and CC_USING_NOP_MCOUNT to be defined in Makefile. Link: