aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coquelin <[email protected]>2015-05-21 19:17:44 +0800
committerMichal Marek <[email protected]>2015-05-21 19:17:44 +0800
commitcc8475305203ddfd117b81e2e732194b67d8f310 (patch)
tree1cdac1d6bd447b553a7f0af286a3dc34f0d37da0
parentab160dbbc4ba71a4e339382d37b31ea44fd43e86 (diff)
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 <[email protected]> Signed-off-by: Maxime Coquelin <[email protected]> Tested-by: Andreas Färber <[email protected]> Signed-off-by: Michal Marek <[email protected]>
-rwxr-xr-xscripts/link-vmlinux.sh2
1 files changed, 1 insertions, 1 deletions
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