diff options
author | Sami Tolvanen <samitolvanen@google.com> | 2020-12-11 19:46:20 +0100 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2021-01-14 17:21:08 +0100 |
commit | 38e89184900385b0dad1ee55c35ae8abcfee6ece (patch) | |
tree | 2fceafbc8aaa221c67b16a20908db6bda6a5305d /.gitignore | |
parent | kbuild: add support for Clang LTO (diff) | |
download | linux-38e89184900385b0dad1ee55c35ae8abcfee6ece.tar.xz linux-38e89184900385b0dad1ee55c35ae8abcfee6ece.zip |
kbuild: lto: fix module versioning
With CONFIG_MODVERSIONS, version information is linked into each
compilation unit that exports symbols. With LTO, we cannot use this
method as all C code is compiled into LLVM bitcode instead. This
change collects symbol versions into .symversions files and merges
them in link-vmlinux.sh where they are all linked into vmlinux.o at
the same time.
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-4-samitolvanen@google.com
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore index d01cda8e1177..44e34991875e 100644 --- a/.gitignore +++ b/.gitignore @@ -41,6 +41,7 @@ *.so.dbg *.su *.symtypes +*.symversions *.tab.[ch] *.tar *.xz |