sparc64: Support kmemleak.
authorDavid S. Miller <davem@davemloft.net>
Fri, 9 Apr 2010 07:14:35 +0000 (00:14 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Apr 2010 06:46:17 +0000 (23:46 -0700)
Only missing thing was an _sdata marker in vmlinux.lds.S

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/vmlinux.lds.S
lib/Kconfig.debug

index c4f5758c9dc7753b5f4aa9ab75f9adbc4def7631..0c1e6783657f26172291186637ea5d20a6966677 100644 (file)
@@ -52,6 +52,10 @@ SECTIONS
        _etext = .;
 
        RO_DATA(PAGE_SIZE)
+
+       /* Start of data section */
+       _sdata = .;
+
        .data1 : {
                *(.data1)
        }
index 1fafb4b99c9bb30c37e151a2db441e3cc9c5fb5f..6c2be60895590fe1b6596aa49362ee8a711af0e7 100644 (file)
@@ -356,7 +356,7 @@ config SLUB_STATS
 config DEBUG_KMEMLEAK
        bool "Kernel memory leak detector"
        depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
-               (X86 || ARM || PPC || S390 || SUPERH)
+               (X86 || ARM || PPC || S390 || SPARC64 || SUPERH)
 
        select DEBUG_FS if SYSFS
        select STACKTRACE if STACKTRACE_SUPPORT