diff options
author | Youling Tang <tangyouling@loongson.cn> | 2022-09-01 19:10:59 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-09-28 10:56:49 +0200 |
commit | 13fdc1dc7d392d90de8d596fb09d2d71bce59c94 (patch) | |
tree | 575d017774e8fa69612db0cb69261d2187b02b28 /scripts | |
parent | 867bcae89744ed06b1840251256e42a3ffce52d3 (diff) | |
download | linux-stable-13fdc1dc7d392d90de8d596fb09d2d71bce59c94.tar.gz linux-stable-13fdc1dc7d392d90de8d596fb09d2d71bce59c94.tar.bz2 linux-stable-13fdc1dc7d392d90de8d596fb09d2d71bce59c94.zip |
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>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/mksysmap | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mksysmap b/scripts/mksysmap index 9aa23d15862a..ad8bbc52267d 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 |