]> git.baikalelectronics.ru Git - kernel.git/commit
Documentation: x86: exception-tables: document CONFIG_BUILDTIME_TABLE_SORT
authorNick Desaulniers <ndesaulniers@google.com>
Fri, 27 Mar 2020 00:09:51 +0000 (17:09 -0700)
committerJonathan Corbet <corbet@lwn.net>
Fri, 27 Mar 2020 16:50:01 +0000 (10:50 -0600)
commitf2ba211a816e238d606aca892cc867114969d484
tree9a227dcb9b995a304d562649f246d982e7e7ebdc
parent02376ae130ce6ffafbb7134397e5840674abfb06
Documentation: x86: exception-tables: document CONFIG_BUILDTIME_TABLE_SORT

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@zytor.com>
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20200327000951.84071-1-ndesaulniers@google.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/x86/exception-tables.rst