Re: [PATCH v2] Documentation: x86: exception-tables: document CONFIG_BUILDTIME_TABLE_SORT
From: Jonathan Corbet
Date: Fri Mar 27 2020 - 12:52:45 EST
On Thu, 26 Mar 2020 17:09:51 -0700
Nick Desaulniers <ndesaulniers@xxxxxxxxxx> wrote:
> Provide more information about __ex_table sorting post link.
>
> The exception tables and fixup tables use a commonly recurring pattern
> in the kernel of storing the address of labels as date in custom ELF
> sections, then finding these sections, iterating elements within them,
> and possibly revisiting them or modifying the data at these addresses.
>
> Sorting readonly arrays to minimize runtime penalties is quite clever.
>
> Suggested-by: H. Peter Anvin <hpa@xxxxxxxxx>
> Signed-off-by: Nick Desaulniers <ndesaulniers@xxxxxxxxxx>
I've applied this, thanks.
jon