Skip to content
Commit abcb1e02 authored by Nick Desaulniers's avatar Nick Desaulniers Committed by Jonathan Corbet
Browse files

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: default avatarH. Peter Anvin <hpa@zytor.com>
Signed-off-by: default avatarNick Desaulniers <ndesaulniers@google.com>
Link: https://lore.kernel.org/r/20200327000951.84071-1-ndesaulniers@google.com


Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 19e91e54
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment