From: Maxime Coquelin Date: Thu, 21 May 2015 11:17:44 +0000 (+0800) Subject: scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=cc8475305203ddfd117b81e2e732194b67d8f310;p=linux-beck.git 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: Chanwoo Choi Signed-off-by: Maxime Coquelin Tested-by: Andreas Färber Signed-off-by: Michal Marek --- diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index c9a11d15d228..1a10d8ac8162 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -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