]> git.itanic.dy.fi Git - linux-stable/commit
mksysmap: Fix the mismatch of 'L0' symbols in System.map
authorYouling Tang <tangyouling@loongson.cn>
Thu, 1 Sep 2022 11:10:59 +0000 (19:10 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 Sep 2022 09:03:59 +0000 (11:03 +0200)
commit47c5ef29e52f5ee773f45a6b37a03b69f4f9a52a
tree5b8d3505b8dc894477c4979f80983c2b6c6868f4
parentf0ebdfc10bd1bb4f461949485510cb255478cbdb
mksysmap: Fix the mismatch of 'L0' symbols in System.map

[ Upstream commit c17a2538704f926ee4d167ba625e09b1040d8439 ]

When System.map was generated, the kernel used mksysmap to filter the
kernel symbols, we need to filter "L0" symbols in LoongArch architecture.

$ cat System.map | grep L0
9000000000221540 t L0

The L0 symbol exists in System.map, but not in .tmp_System.map. When
"cmp -s System.map .tmp_System.map" will show "Inconsistent kallsyms
data" error message in link-vmlinux.sh script.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
scripts/mksysmap