x86: Provide _sdata in the vmlinux.lds.S file
authorCatalin Marinas <catalin.marinas@arm.com>
Mon, 11 May 2009 12:22:00 +0000 (13:22 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 12 Jun 2009 07:21:33 +0000 (09:21 +0200)
_sdata is a common symbol defined by many architectures and made
available to the kernel via asm-generic/sections.h. Kmemleak uses this
symbol when scanning the data sections.

[ Impact: add new global symbol ]

Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
LKML-Reference: <20090511122105.26556.96593.stgit@pc1117.cambridge.arm.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/vmlinux.lds.S

index 4c85b2e2bb652873da1ee5367549e070b363bf8a..367e878820418789055a6a2da48aa27350ada443 100644 (file)
@@ -108,6 +108,8 @@ SECTIONS
        /* Data */
        . = ALIGN(PAGE_SIZE);
        .data : AT(ADDR(.data) - LOAD_OFFSET) {
+               /* Start of data section */
+               _sdata = .;
                DATA_DATA
                CONSTRUCTORS