From: Youling Tang Date: Thu, 1 Sep 2022 11:10:59 +0000 (+0800) Subject: mksysmap: Fix the mismatch of 'L0' symbols in System.map X-Git-Tag: v6.1-rc5~445^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c17a2538704f926ee4d167ba625e09b1040d8439;p=platform%2Fkernel%2Flinux-starfive.git mksysmap: Fix the mismatch of 'L0' symbols in System.map 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 Signed-off-by: Masahiro Yamada --- diff --git a/scripts/mksysmap b/scripts/mksysmap index 9aa23d1..ad8bbc5 100755 --- a/scripts/mksysmap +++ b/scripts/mksysmap @@ -41,4 +41,4 @@ # so we just ignore them to let readprofile continue to work. # (At least sparc64 has __crc_ in the middle). -$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)' > $2 +$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)\|\( L0\)' > $2