lkml.org 
[lkml]   [2020]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 16/19] objtool: Implement noinstr validation
On Tue, Mar 17, 2020 at 06:02:50PM +0100, Peter Zijlstra wrote:
> +static int validate_vmlinux_functions(struct objtool_file *file)
> +{
> + struct section *sec;
> +
> + sec = find_section_by_name(file->elf, ".noinstr.text");
> + if (!sec) {
> + WARN("No .noinstr.text section");
> + return -1;

And that is a little too agressive, seeing how the current x86_64 kernel
does not include it. I made it a silent exit for now, so as not to break
the build (with patch 20/19 added on).

> }
>
> + return validate_sec_functions(file, sec);
> +}

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