mksysmap is called from scripts/link-vmlinux.sh (function mksysmap), for example to create System.map. sh ./scripts/mksysmap vmlinux System.map .tmp_vmlinux.kallsyms2.o
scripts/mksysmap vmlinux System.map [exclude]
[exclude]) refers to an object file whose symbols will be omitted from the output. scripts/kallsyms.c when CONFIG_KALLSYMS_ALL is enabled. That might require one more pass. scripts/