[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210319023814.ovisg53uc5zy7gwn@treble>
Date: Thu, 18 Mar 2021 21:38:14 -0500
From: Josh Poimboeuf <jpoimboe@...hat.com>
To: Peter Zijlstra <peterz@...radead.org>
Cc: x86@...nel.org, jgross@...e.com, mbenes@...e.com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 05/14] objtool: Per arch retpoline naming
On Thu, Mar 18, 2021 at 06:11:08PM +0100, Peter Zijlstra wrote:
> @@ -872,7 +877,7 @@ static int add_jump_destinations(struct
> } else if (reloc->sym->type == STT_SECTION) {
> dest_sec = reloc->sym->sec;
> dest_off = arch_dest_reloc_offset(reloc->addend);
> - } else if (!strncmp(reloc->sym->name, "__x86_indirect_thunk_", 21)) {
> + } else if (arch_is_retpoline(reloc->sym)) {
> /*
> * Retpoline jumps are really dynamic jumps in
> * disguise, so convert them accordingly.
There's another one in add_call_destinations().
--
Josh
Powered by blists - more mailing lists