summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorashimida <ashimida@linux.alibaba.com>2020-06-02 15:45:17 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-06-25 15:32:51 +0200
commite71c1098a9a2ff0be7210c3b5138902c511e2358 (patch)
tree4ea7e8ce0bbc08f2a2a06335453bc314c712306f /scripts
parentf6328a0b31ee9335274d37ecc30241d7ac152b02 (diff)
downloadlinux-stable-e71c1098a9a2ff0be7210c3b5138902c511e2358.tar.gz
linux-stable-e71c1098a9a2ff0be7210c3b5138902c511e2358.tar.bz2
linux-stable-e71c1098a9a2ff0be7210c3b5138902c511e2358.zip
mksysmap: Fix the mismatch of '.L' symbols in System.map
[ Upstream commit 72d24accf02add25e08733f0ecc93cf10fcbd88c ] 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: 00902e984732 ("mksysmap: Add h8300 local symbol pattern") Signed-off-by: ashimida <ashimida@linux.alibaba.com> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/mksysmap2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mksysmap b/scripts/mksysmap
index a35acc0d0b82..9aa23d15862a 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\)' > $2