sh: Define _ebss for uClinux MTD map driver.
authorPaul Mundt <lethal@linux-sh.org>
Mon, 24 Sep 2007 09:11:27 +0000 (18:11 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Mon, 24 Sep 2007 09:11:27 +0000 (18:11 +0900)
The uClinux MTD device uses _ebss, add the symbol and corresponding
export.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/kernel/sh_ksyms.c
arch/sh/kernel/vmlinux.lds.S
include/asm-sh/sections.h

index cac7380ed0bb1a53445d0c8864f7ed8557f623b1..548e4285b37569e82e731dd5ba1f8e79dff45739 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/vmalloc.h>
 #include <linux/pci.h>
 #include <linux/irq.h>
-
+#include <asm/sections.h>
 #include <asm/semaphore.h>
 #include <asm/processor.h>
 #include <asm/uaccess.h>
@@ -149,3 +149,4 @@ EXPORT_SYMBOL(csum_ipv6_magic);
 #endif
 EXPORT_SYMBOL(clear_page);
 EXPORT_SYMBOL(__clear_user);
+EXPORT_SYMBOL(_ebss);
index 9cb95af7b09013dd25fdfb0da3b1cf6e031bc84a..84a203b8573dab7db33ab817229d34b5998697a4 100644 (file)
@@ -107,6 +107,7 @@ SECTIONS
        *(.bss.page_aligned)
        *(.bss)
        . = ALIGN(4);
+       _ebss = .;                      /* uClinux MTD sucks */
        _end = . ;
   }
 
index 2a696b8ee4f55d690d1370abd840d865a24d4c68..bd9cbc967c2ab0548b64d080825fd27d4708b3df 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm-generic/sections.h>
 
 extern long __machvec_start, __machvec_end;
+extern char _ebss[];
 
 #endif /* __ASM_SH_SECTIONS_H */
 
This page took 0.026684 seconds and 5 git commands to generate.