]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
sh: kmemleak support.
authorChris Smith <chris.smith@st.com>
Wed, 27 Jan 2010 13:03:11 +0000 (22:03 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Wed, 27 Jan 2010 13:03:11 +0000 (22:03 +0900)
Enables support for kmemleak on sh.

Signed-off-by: Chris Smith <chris.smith@st.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/vmlinux.lds.S
lib/Kconfig.debug

index 93e9b25a18116c3f8b03bce7c5bbf4e5fef1299e..f0bc6b886eed0e3fe9c72a54f5880876deb31a81 100644 (file)
@@ -50,12 +50,12 @@ SECTIONS
        } = 0x0009
 
        EXCEPTION_TABLE(16)
-
        NOTES
+
+       _sdata = .;
        RO_DATA(PAGE_SIZE)
        RW_DATA_SECTION(L1_CACHE_BYTES, PAGE_SIZE, THREAD_SIZE)
-
-       _edata = .;                     /* End of data section */
+       _edata = .;
 
        DWARF_EH_FRAME
 
index 25c3ed594c547966c1c291750d8adeb3b9e5674b..d62e3cdab3579c5be6b46a8a3dfc988059829ece 100644 (file)
@@ -355,7 +355,7 @@ config SLUB_STATS
 config DEBUG_KMEMLEAK
        bool "Kernel memory leak detector"
        depends on DEBUG_KERNEL && EXPERIMENTAL && !MEMORY_HOTPLUG && \
-               (X86 || ARM || PPC || S390)
+               (X86 || ARM || PPC || S390 || SUPERH)
 
        select DEBUG_FS if SYSFS
        select STACKTRACE if STACKTRACE_SUPPORT