diff options
| author | Masahiro Yamada <[email protected]> | 2021-08-19 00:01:14 +0000 |
|---|---|---|
| committer | Masahiro Yamada <[email protected]> | 2021-09-02 23:17:20 +0000 |
| commit | 52d83df682c82055961531853c066f4f16e234ea (patch) | |
| tree | 9b11534aad6da013ba7432efc03a496d9fbbc632 /scripts/clang-tools/gen_compile_commands.py | |
| parent | kbuild: Switch to 'f' variants of integrated assembler flag (diff) | |
| download | kernel-52d83df682c82055961531853c066f4f16e234ea.tar.gz kernel-52d83df682c82055961531853c066f4f16e234ea.zip | |
kbuild: Fix 'no symbols' warning when CONFIG_TRIM_UNUSD_KSYMS=y
When CONFIG_TRIM_UNUSED_KSYMS is enabled, I see some warnings like this:
nm: arch/x86/entry/vdso/vdso32/note.o: no symbols
$NM (both GNU nm and llvm-nm) warns when no symbol is found in the
object. Suppress the stderr.
Fangrui Song mentioned binutils>=2.37 `nm -q` can be used to suppress
"no symbols" [1], and llvm-nm>=13.0.0 supports -q as well.
We cannot use it for now, but note it as a TODO.
[1]: https://sourceware.org/bugzilla/show_bug.cgi?id=27408
Fixes: bbda5ec671d3 ("kbuild: simplify dependency generation for CONFIG_TRIM_UNUSED_KSYMS")
Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions
