]> git.baikalelectronics.ru Git - kernel.git/commit
mksysmap: Fix the mismatch of '.L' symbols in System.map
authorashimida <ashimida@linux.alibaba.com>
Tue, 2 Jun 2020 07:45:17 +0000 (15:45 +0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Sat, 6 Jun 2020 14:39:20 +0000 (23:39 +0900)
commit98f8167d1e81fd00bbb11b4c4932a5649c4c4262
treec72bb1fa2ac93c3917f08a6242b7f2b5287e5c58
parentf7735b9a81f7e3f3fa605cee64534bef91facac1
mksysmap: Fix the mismatch of '.L' symbols in System.map

When System.map was generated, the kernel used mksysmap to
filter the kernel symbols, but all the symbols with the
second letter 'L' in the kernel were filtered out, not just
the symbols starting with 'dot + L'.

For example:
ashimida@ubuntu:~/linux$ cat System.map |grep ' .L'
ashimida@ubuntu:~/linux$ nm -n vmlinux |grep ' .L'
ffff0000088028e0 t bLength_show
......
ffff0000092e0408 b PLLP_OUTC_lock
ffff0000092e0410 b PLLP_OUTA_lock

The original intent should be to filter out all local symbols
starting with '.L', so the dot should be escaped.

Fixes: 880436042b40 ("mksysmap: Add h8300 local symbol pattern")
Signed-off-by: ashimida <ashimida@linux.alibaba.com>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/mksysmap