Re: [tip: x86/core] x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG

From: Josh Poimboeuf
Date: Thu Aug 03 2023 - 17:56:47 EST


On Wed, Aug 02, 2023 at 02:33:16PM -0000, tip-bot2 for Petr Pavlu wrote:
> The following commit has been merged into the x86/core branch of tip:
>
> Commit-ID: 973ab2d61f33dc85212c486e624af348c4eeb5c9
> Gitweb: https://git.kernel.org/tip/973ab2d61f33dc85212c486e624af348c4eeb5c9
> Author: Petr Pavlu <petr.pavlu@xxxxxxxx>
> AuthorDate: Tue, 11 Jul 2023 11:19:51 +02:00
> Committer: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
> CommitterDate: Wed, 02 Aug 2023 16:27:07 +02:00
>
> x86/retpoline,kprobes: Fix position of thunk sections with CONFIG_LTO_CLANG
>

[...]

> --- a/tools/objtool/check.c
> +++ b/tools/objtool/check.c
> @@ -389,7 +389,7 @@ static int decode_instructions(struct objtool_file *file)
> if (!strcmp(sec->name, ".noinstr.text") ||
> !strcmp(sec->name, ".entry.text") ||
> !strcmp(sec->name, ".cpuidle.text") ||
> - !strncmp(sec->name, ".text.__x86.", 12))
> + !strncmp(sec->name, ".text..__x86.", 12))

Andy Cooper reported this should be 13.

--
Josh