Re: [PATCH v2 05/14] objtool: Per arch retpoline naming
From: Josh Poimboeuf
Date: Thu Mar 18 2021 - 22:39:01 EST
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