lkml.org 
[lkml]   [2020]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RESEND][PATCH v3 10/17] x86/static_call: Add inline static call implementation for x86-64
On Tue, Mar 24, 2020 at 02:56:13PM +0100, Peter Zijlstra wrote:
> --- a/tools/objtool/check.c
> +++ b/tools/objtool/check.c
> @@ -15,6 +15,7 @@
>
> #include <linux/hashtable.h>
> #include <linux/kernel.h>
> +#include <linux/static_call_types.h>
>
> #define FAKE_JUMP_OFFSET -1
>
> @@ -1345,6 +1346,21 @@ static int read_retpoline_hints(struct o
> return 0;
> }
>
> +static int read_static_call_tramps(struct objtool_file *file)
> +{
> + struct section *sec, *sc_sec = find_section_by_name(file->elf, ".static_call.text");
> + struct symbol *func;

if (!sc_sec)
return;

no?

I mean, it is enabled by default on X86_64 but not on 32-bit. Or will it
be?

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette

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