--- linux-2.6.17.14/arch/sh/kernel/vmlinux.lds.S	2008-07-25 16:00:29.000000000 +0200
+++ linux-2.6.17.14kmemleak/arch/sh/kernel/vmlinux.lds.S	2008-07-25 16:07:22.000000000 +0200
@@ -43,6 +43,7 @@
  	 /* Align the initial ramdisk image (INITRD) on page boundaries. */
  	 . = ALIGN(4096);
  	 __rd_start = .;
+	   _sdata = .; /* #~rzr */
  	 *(.initrd)
  	 . = ALIGN(4096);
  	 __rd_end = .;
@@ -57,6 +58,13 @@
   __per_cpu_start = .;
   .data.percpu : { *(.data.percpu) }
   __per_cpu_end = .;
+
+#ifdef CONFIG_DEBUG_MEMLEAK
+               __memleak_offsets_start = .;
+/*	              *(.init.memleak_offsets) # will crash */
+ 	       __memleak_offsets_end = .;
+#endif /* #~rzr */
+
   .data.cacheline_aligned : { *(.data.cacheline_aligned) }
 
   _edata = .;			/* End of data section */
@@ -103,6 +111,7 @@
   .bss : { *(.bss) }
 
   . = ALIGN(4);
+__bss_stop = .;
   _end = . ;
 
   /* When something in the kernel is NOT compiled as a module, the
