• Masahiro Yamada's avatar
    kbuild: reuse mksysmap output for kallsyms · 94ff2f63
    Masahiro Yamada authored
    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>
    94ff2f63
link-vmlinux.sh 7.92 KB