Skip to content

Commit e6064da

Browse files
dileksmasahir0y
authored andcommitted
kbuild: rename .tmp_vmlinux.kallsyms0.syms to .tmp_vmlinux0.syms
Change the naming for consistency. While at this, fix the comments in scripts/link-vmlinux.sh. Signed-off-by: Sedat Dilek <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 4198a4d commit e6064da

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

scripts/link-vmlinux.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -207,8 +207,8 @@ kallsymso=
207207
strip_debug=
208208

209209
if is_enabled CONFIG_KALLSYMS; then
210-
true > .tmp_vmlinux.kallsyms0.syms
211-
kallsyms .tmp_vmlinux.kallsyms0.syms .tmp_vmlinux0.kallsyms
210+
true > .tmp_vmlinux0.syms
211+
kallsyms .tmp_vmlinux0.syms .tmp_vmlinux0.kallsyms
212212
fi
213213

214214
if is_enabled CONFIG_KALLSYMS || is_enabled CONFIG_DEBUG_INFO_BTF; then
@@ -235,14 +235,14 @@ if is_enabled CONFIG_KALLSYMS; then
235235
# Generate section listing all symbols and add it into vmlinux
236236
# It's a four step process:
237237
# 0) Generate a dummy __kallsyms with empty symbol list.
238-
# 1) Link .tmp_vmlinux.kallsyms1 so it has all symbols and sections,
238+
# 1) Link .tmp_vmlinux1.kallsyms so it has all symbols and sections,
239239
# with a dummy __kallsyms.
240-
# Running kallsyms on that gives us .tmp_kallsyms1.o with
240+
# Running kallsyms on that gives us .tmp_vmlinux1.kallsyms.o with
241241
# the right size
242-
# 2) Link .tmp_vmlinux.kallsyms2 so it now has a __kallsyms section of
242+
# 2) Link .tmp_vmlinux2.kallsyms so it now has a __kallsyms section of
243243
# the right size, but due to the added section, some
244244
# addresses have shifted.
245-
# From here, we generate a correct .tmp_vmlinux.kallsyms2.o
245+
# From here, we generate a correct .tmp_vmlinux2.kallsyms.o
246246
# 3) That link may have expanded the kernel image enough that
247247
# more linker branch stubs / trampolines had to be added, which
248248
# introduces new names, which further expands kallsyms. Do another

0 commit comments

Comments
 (0)