linker script /arch/arm64/kernel/vmlinux.lds build error

Mohan Rao .vanimina mailtoc.mohanrao at gmail.com
Tue Sep 6 11:13:53 PDT 2022


Has anyone ever encountered the following issue.
Actually I’m trying to configure the page size for 64KB for the AARCH
64 platform.

Build error:
LTO vmlinux.o
MODPOST vmlinux.symvers
MODINFO modules.builtin.modinfo
GEN modules.builtin
LD  .tmp_vmlinux.kallsymsl
ld.lld: error: k/arch/arm64/kernel/vmlinux.lds:72: symbol not found: PMD_SIZE

I started seeing this build issue after changing the default page size
from ARM64_4K_PAGES to ARM64_64K_PAGES.

patch:
choice
            prompt “Page size”
-          default ARM64_4K_PAGES
+         default ARM64_64K_PAGES
            help
                 Page size ( translation granule) configuration.

Thanks in Advance,
Murali



More information about the linux-arm-kernel mailing list