Skip to content
Commit 94ff2f63 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kbuild: reuse mksysmap output for kallsyms



scripts/mksysmap internally runs ${NM} (dropping some symbols).

When CONFIG_KALLSYMS=y, mksysmap creates .tmp_System.map, but it is
almost the same as the output from the ${NM} invocation in kallsyms().
It is true scripts/mksysmap drops some symbols, but scripts/kallsyms.c
ignores more anyway.

Keep the mksysmap output as *.syms, and reuse it for kallsyms and
'cmp -s'. It saves one ${NM} invocation.

Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent c1346169
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment