1
0
mirror of https://github.com/speed47/spectre-meltdown-checker synced 2024-11-07 06:33:38 +01:00

Use /proc/kallsyms to get symbols, if available

This commit is contained in:
Vincent Brillault 2018-01-09 08:58:09 +01:00
parent 70323a30da
commit f4140a992a
No known key found for this signature in database
GPG Key ID: CFEA15DE034F0688

View File

@ -186,7 +186,11 @@ if [ "$opt_live" = 1 ]; then
[ -e /boot/kernel-genkernel-$(uname -m)-$(uname -r) ] && opt_kernel=/boot/kernel-genkernel-$(uname -m)-$(uname -r)
# system.map
[ -e /boot/System.map-$(uname -r) ] && opt_map=/boot/System.map-$(uname -r)
if [ -e /proc/kallsyms ] ; then
opt_map="/proc/kallsyms"
elif [ -e /boot/System.map-$(uname -r) ] ; then
opt_map=/boot/System.map-$(uname -r)
fi
# config
if [ -e /proc/config.gz ] ; then