Commit 2216cf68 authored by Hui Su's avatar Hui Su Committed by Masahiro Yamada

scripts: update the comments of kallsyms support

update the comments of kallsyms support.

Fixes: af73d78b ("kbuild: Remove debug info from kallsyms linking")
Signed-off-by: default avatarHui Su <suhui_kernel@163.com>
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent a3c7ca2b
...@@ -369,14 +369,14 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then ...@@ -369,14 +369,14 @@ if [ -n "${CONFIG_KALLSYMS}" ]; then
# kallsyms support # kallsyms support
# Generate section listing all symbols and add it into vmlinux # Generate section listing all symbols and add it into vmlinux
# It's a three step process: # It's a three step process:
# 1) Link .tmp_vmlinux1 so it has all symbols and sections, # 1) Link .tmp_vmlinux.kallsyms1 so it has all symbols and sections,
# but __kallsyms is empty. # but __kallsyms is empty.
# Running kallsyms on that gives us .tmp_kallsyms1.o with # Running kallsyms on that gives us .tmp_kallsyms1.o with
# the right size # the right size
# 2) Link .tmp_vmlinux2 so it now has a __kallsyms section of # 2) Link .tmp_vmlinux.kallsyms2 so it now has a __kallsyms section of
# the right size, but due to the added section, some # the right size, but due to the added section, some
# addresses have shifted. # addresses have shifted.
# From here, we generate a correct .tmp_kallsyms2.o # From here, we generate a correct .tmp_vmlinux.kallsyms2.o
# 3) That link may have expanded the kernel image enough that # 3) That link may have expanded the kernel image enough that
# more linker branch stubs / trampolines had to be added, which # more linker branch stubs / trampolines had to be added, which
# introduces new names, which further expands kallsyms. Do another # introduces new names, which further expands kallsyms. Do another
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment