Re: [PATCH V5 14/50] x86/entry: Expose the address of .Lgs_change to entry64.c

From: Peter Zijlstra
Date: Thu Nov 18 2021 - 15:13:54 EST


On Wed, Nov 10, 2021 at 07:57:00PM +0800, Lai Jiangshan wrote:
> From: Lai Jiangshan <laijs@xxxxxxxxxxxxxxxxx>
>
> The address of .Lgs_change will be used in traps.c in later patch when
> some entry code is implemented in entry64.c. So the address of .Lgs_change
> is exposed to traps.c for preparation.
>
> The label .Lgs_change is still needed in ASM code for extable due to it
> can not use asm_load_gs_index_gs_change. Otherwise:
>
> warning: objtool: __ex_table+0x0: don't know how to handle
> non-section reloc symbol asm_load_gs_index_gs_change
>

I'm thinking commits:

24ff65257375 ("objtool: Teach get_alt_entry() about more relocation types")
4d8b35968bbf ("objtool: Remove reloc symbol type checks in get_alt_entry()")

Might have cured that.