diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2021-02-26 07:25:48 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2021-02-28 07:19:21 +0100 |
commit | a6aaeb841198016083663ae56c568de4e065d090 (patch) | |
tree | 12339f936fba7c5c2c152ce3dcd0dd427cfaeee4 /scripts/lto-used-symbollist.txt | |
parent | kbuild: lto: add _mcount to list of used symbols (diff) | |
download | linux-a6aaeb841198016083663ae56c568de4e065d090.tar.xz linux-a6aaeb841198016083663ae56c568de4e065d090.zip |
kbuild: fix UNUSED_KSYMS_WHITELIST for Clang LTO
Commit fbe078d397b4 ("kbuild: lto: add a default list of used symbols")
does not work as expected if the .config file has already specified
CONFIG_UNUSED_KSYMS_WHITELIST="my/own/white/list" before enabling
CONFIG_LTO_CLANG.
So, the user-supplied whitelist and LTO-specific white list must be
independent of each other.
I refactored the shell script so CONFIG_MODVERSIONS and CONFIG_CLANG_LTO
handle whitelists in the same way.
Fixes: fbe078d397b4 ("kbuild: lto: add a default list of used symbols")
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Tested-by: Sedat Dilek <sedat.dilek@gmail.com>
Diffstat (limited to '')
-rw-r--r-- | scripts/lto-used-symbollist.txt | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scripts/lto-used-symbollist.txt b/scripts/lto-used-symbollist.txt deleted file mode 100644 index 406ada65e926..000000000000 --- a/scripts/lto-used-symbollist.txt +++ /dev/null @@ -1,6 +0,0 @@ -memcpy -memmove -memset -_mcount -__stack_chk_fail -__stack_chk_guard |