Re: [PATCH v2 07/28] kbuild: add support for objtool mcount

From: Kees Cook
Date: Thu Sep 03 2020 - 17:56:19 EST


On Thu, Sep 03, 2020 at 01:30:32PM -0700, 'Sami Tolvanen' via Clang Built Linux wrote:
> This change adds build support for using objtool to generate
> __mcount_loc sections.
>
> Signed-off-by: Sami Tolvanen <samitolvanen@xxxxxxxxxx>

Looks right to me. (There is probably an argument to be made to do all
of the tooling detection in the Kconfig, but that's a larger issues and
orthogonal to this fix, IMO.)

Reviewed-by: Kees Cook <keescook@xxxxxxxxxxxx>

--
Kees Cook