aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorSami Tolvanen <samitolvanen@google.com>2020-12-11 10:46:26 -0800
committerKees Cook <keescook@chromium.org>2021-01-14 08:21:09 -0800
commit09a4e4d9c52a3c5e39e4f409b2c083ab13c6afc2 (patch)
tree6d2ace0fe37dc894cb681ca1bebb106652e4d2c8 /scripts/mod/modpost.c
parentinit: lto: fix PREL32 relocations (diff)
downloadlinux-dev-09a4e4d9c52a3c5e39e4f409b2c083ab13c6afc2.tar.xz
linux-dev-09a4e4d9c52a3c5e39e4f409b2c083ab13c6afc2.zip
PCI: Fix PREL32 relocations for LTO
With Clang's Link Time Optimization (LTO), the compiler can rename static functions to avoid global naming collisions. As PCI fixup functions are typically static, renaming can break references to them in inline assembly. This change adds a global stub to DECLARE_PCI_FIXUP_SECTION to fix the issue when PREL32 relocations are used. Signed-off-by: Sami Tolvanen <samitolvanen@google.com> Acked-by: Bjorn Helgaas <bhelgaas@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-10-samitolvanen@google.com
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions