Re: [PATCH AUTOSEL 5.11 31/52] x86, build: use objtool mcount

2021-03-12 Thread Sasha Levin
On Tue, Mar 02, 2021 at 10:42:57AM -0800, Kees Cook wrote: On Tue, Mar 02, 2021 at 06:55:12AM -0500, Sasha Levin wrote: From: Sami Tolvanen [ Upstream commit 6dafca97803309c3cb5148d449bfa711e41ddef2 ] Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use objtool to generate __mcou

Re: [PATCH AUTOSEL 5.11 31/52] x86, build: use objtool mcount

2021-03-02 Thread Kees Cook
On Tue, Mar 02, 2021 at 06:55:12AM -0500, Sasha Levin wrote: > From: Sami Tolvanen > > [ Upstream commit 6dafca97803309c3cb5148d449bfa711e41ddef2 ] > > Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use > objtool to generate __mcount_loc sections for dynamic ftrace with > Clang an

[PATCH AUTOSEL 5.11 31/52] x86, build: use objtool mcount

2021-03-02 Thread Sasha Levin
From: Sami Tolvanen [ Upstream commit 6dafca97803309c3cb5148d449bfa711e41ddef2 ] Select HAVE_OBJTOOL_MCOUNT if STACK_VALIDATION is selected to use objtool to generate __mcount_loc sections for dynamic ftrace with Clang and gcc <5 (later versions of gcc use -mrecord-mcount). Signed-off-by: Sami