Re: [PATCH] mksysmap: Fix the mismatch of 'L0' symbols in System.map
From: Masahiro Yamada
Date: Fri Sep 09 2022 - 16:35:36 EST
On Thu, Sep 1, 2022 at 8:11 PM Youling Tang <tangyouling@xxxxxxxxxxx> wrote:
>
> 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@xxxxxxxxxxx>
> ---
> scripts/mksysmap | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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
> --
> 2.36.1
>
Applied to linux-kbuild/fixes.
Thanks.
--
Best Regards
Masahiro Yamada