Commit cc847530 authored by Maxime Coquelin's avatar Maxime Coquelin Committed by Michal Marek

scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel

When Kernel is executed in place from ROM, the symbol addresses can be
lower than the page offset.
Tested-by: default avatarChanwoo Choi <>
Signed-off-by: default avatarMaxime Coquelin <>
Tested-by: default avatarAndreas Färber <>
Signed-off-by: default avatarMichal Marek <>
parent ab160dbb
......@@ -82,7 +82,7 @@ kallsyms()
kallsymopt="${kallsymopt} --all-symbols"
if [ -n "${CONFIG_ARM}" ] && [ -n "${CONFIG_PAGE_OFFSET}" ]; then
if [ -n "${CONFIG_ARM}" ] && [ -z "${CONFIG_XIP_KERNEL}" ] && [ -n "${CONFIG_PAGE_OFFSET}" ]; then
kallsymopt="${kallsymopt} --page-offset=$CONFIG_PAGE_OFFSET"
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