lkml.org 
[lkml]   [2015]   [Mar]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 01/15] scripts: link-vmlinux: Don't pass page offset to kallsyms if XIP Kernel
    Date
    From: Maxime Coquelin <mcoquelin.stm32@gmail.com>

    When Kernel is executed in place from ROM, the symbol addresses can be
    lower than the page offset.

    Signed-off-by: Maxime Coquelin <mcoquelin.stm32@gmail.com>
    ---
    scripts/link-vmlinux.sh | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh
    index 86a4fe7..b055d9d 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

    --
    1.9.1


    \
     
     \ /
      Last update: 2015-03-12 23:01    [W:2.318 / U:0.092 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site