summaryrefslogtreecommitdiff
path: root/crypto/xts.c
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2020-12-11 21:46:25 +0300
committerKees Cook <keescook@chromium.org>2021-01-14 19:21:09 +0300
commit3578ad11f3fba07e64c26d8db68cfd3dde28c59e (patch)
tree5ceafe2e591f632f348625eb485203b0913688e8 /crypto/xts.c
parenta8cccdd954732a558d481407ab7c3106b89c34ae (diff)
downloadlinux-3578ad11f3fba07e64c26d8db68cfd3dde28c59e.tar.xz
init: lto: fix PREL32 relocations
With LTO, the compiler can rename static functions to avoid global naming collisions. As initcall functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub with a stable name for each initcall to fix the issue when PREL32 relocations are used. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Reviewed-by: Kees Cook <keescook@chromium.org> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20201211184633.3213045-9-samitolvanen@google.com
Diffstat (limited to 'crypto/xts.c')
0 files changed, 0 insertions, 0 deletions