summaryrefslogtreecommitdiff
path: root/Documentation/kbuild/Kconfig.recursion-issue-01
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2020-12-04 02:55:51 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-30 11:50:57 +0100
commit037c65990d76ed72693c643dbc88a9c873f5f941 (patch)
tree6f2251d740e7f0ccbea491c9bf120996d5434b97 /Documentation/kbuild/Kconfig.recursion-issue-01
parenta803ea15b0dca8f073b3d5139b962a0a93354e00 (diff)
kbuild: avoid split lines in .mod files
[ Upstream commit 7d32358be8acb119dcfe39b6cf67ec6d94bf1fe7 ] "xargs echo" is not a safe way to remove line breaks because the input may exceed the command line limit and xargs may break it up into multiple invocations of echo. This should never happen because scripts/gen_autoksyms.sh expects all undefined symbols are placed in the second line of .mod files. One possible way is to replace "xargs echo" with "sed ':x;N;$!bx;s/\n/ /g'" or something, but I rewrote the code by using awk because it is more readable. This issue was reported by Sami Tolvanen; in his Clang LTO patch set, $(multi-used-m) is no longer an ELF object, but a thin archive that contains LLVM bitcode files. llvm-nm prints out symbols for each archive member separately, which results a lot of dupications, in some places, beyond the system-defined limit. This problem must be fixed irrespective of LTO, and we must ensure zero possibility of having this issue. Link: https://lkml.org/lkml/2020/12/1/1658 Reported-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Sami Tolvanen <samitolvanen@google.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation/kbuild/Kconfig.recursion-issue-01')
0 files changed, 0 insertions, 0 deletions