lkml.org 
[lkml]   [2008]   [Nov]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 10/15] arm: Provide _sdata and __bss_stop in the vmlinux.lds.S file
    From
    Date
    _sdata and __bss_stop are common symbols defined by many architectures
    and made available to the kernel via asm-generic/sections.h. Kmemleak
    uses these symbols when scanning the data sections.

    Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
    Cc: Ingo Molnar <mingo@elte.hu>
    Cc: Russell King <rmk+lkml@arm.linux.org.uk>
    ---
    arch/arm/kernel/vmlinux.lds.S | 2 ++
    1 files changed, 2 insertions(+), 0 deletions(-)

    diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S
    index 4898bdc..3cf1d44 100644
    --- a/arch/arm/kernel/vmlinux.lds.S
    +++ b/arch/arm/kernel/vmlinux.lds.S
    @@ -120,6 +120,7 @@ SECTIONS

    .data : AT(__data_loc) {
    __data_start = .; /* address in memory */
    + _sdata = .;

    /*
    * first, the init task union, aligned
    @@ -171,6 +172,7 @@ SECTIONS
    __bss_start = .; /* BSS */
    *(.bss)
    *(COMMON)
    + __bss_stop = .;
    _end = .;
    }
    /* Stabs debugging sections. */


    \
     
     \ /
      Last update: 2008-11-29 11:49    [W:0.022 / U:92.724 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site