Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / scripts / link-vmlinux.sh
index 3d569d6022c296c7bc5ba4e0162279f4c9dc832c..014994936b1c2152c82f793ce646342159d78eb5 100644 (file)
@@ -74,9 +74,8 @@ kallsyms()
        info KSYM ${2}
        local kallsymopt;
 
-       if [ -n "${CONFIG_SYMBOL_PREFIX}" ]; then
-               kallsymopt="${kallsymopt} \
-                           --symbol-prefix=${CONFIG_SYMBOL_PREFIX}"
+       if [ -n "${CONFIG_HAVE_UNDERSCORE_SYMBOL_PREFIX}" ]; then
+               kallsymopt="${kallsymopt} --symbol-prefix=_"
        fi
 
        if [ -n "${CONFIG_KALLSYMS_ALL}" ]; then