Skip to content

Commit 466cd9e

Browse files
ashimida123gregkh
authored andcommitted
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: 00902e9 ("mksysmap: Add h8300 local symbol pattern") Signed-off-by: ashimida <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent cb15a85 commit 466cd9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: scripts/mksysmap

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@
4141
# so we just ignore them to let readprofile continue to work.
4242
# (At least sparc64 has __crc_ in the middle).
4343

44-
$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( .L\)' > $2
44+
$NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)\|\( \.L\)' > $2

0 commit comments

Comments
 (0)