scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel
authorMaxime Coquelin <mcoquelin.stm32@gmail.com>
Thu, 21 May 2015 11:17:44 +0000 (19:17 +0800)
committerMichal Marek <mmarek@suse.cz>
Thu, 21 May 2015 11:17:44 +0000 (19:17 +0800)
When Kernel is executed in place from ROM, the symbol addresses can be
lower than the page offset.

Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
Tested-by: Andreas Färber <afaerber@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
scripts/link-vmlinux.sh

index c9a11d15d228479158d5fe429d52ef7e0decb457..1a10d8ac81620faad519d4f95ca8552ac4a958c1 100755 (executable)
@@ -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