提交 cc847530 编写于 作者: M Maxime Coquelin 提交者: 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: NChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: NMaxime Coquelin <mcoquelin.stm32@gmail.com>
Tested-by: NAndreas Färber <afaerber@suse.de>
Signed-off-by: NMichal Marek <mmarek@suse.cz>
上级 ab160dbb
......@@ -82,7 +82,7 @@ kallsyms()
kallsymopt="${kallsymopt} --all-symbols"
fi
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"
fi
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册