lkml.org 
[lkml]   [2020]   [Mar]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 23/26] kbuild/objtool: Add objtool-vmlinux.o pass
On Tue, Mar 24, 2020 at 04:31:36PM +0100, Peter Zijlstra wrote:
> Now that objtool is capable of processing vmlinux.o and actually has
> something useful to do there, (conditionally) add it to the final link
> pass.
>
> This will increase build time by a few seconds.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
> ---
> lib/Kconfig.debug | 5 +++++
> scripts/link-vmlinux.sh | 24 ++++++++++++++++++++++++
> 2 files changed, 29 insertions(+)
>
> --- a/lib/Kconfig.debug
> +++ b/lib/Kconfig.debug
> @@ -379,6 +379,11 @@ config STACK_VALIDATION
> For more information, see
> tools/objtool/Documentation/stack-validation.txt.
>
> +config VMLINUX_VALIDATION
> + bool
> + depends on STACK_VALIDATION && DEBUG_ENTRY && !PARAVIRT
> + default y
> +

So I'm assuming this is incompatible with PARAVIRT because of all the
indirect pvops calls?

I'm thinking it should be easy to detect those and whitelist them
because they always have a pv_ops relocation associated with the call
instruction.

--
Josh

\
 
 \ /
  Last update: 2020-03-24 23:04    [W:0.308 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site