diff options
-rw-r--r-- | arch/sh/kernel/sh_ksyms.c | 3 | ||||
-rw-r--r-- | arch/sh/kernel/vmlinux.lds.S | 1 | ||||
-rw-r--r-- | include/asm-sh/sections.h | 1 |
3 files changed, 4 insertions, 1 deletions
diff --git a/arch/sh/kernel/sh_ksyms.c b/arch/sh/kernel/sh_ksyms.c index cac7380ed0bb..548e4285b375 100644 --- a/arch/sh/kernel/sh_ksyms.c +++ b/arch/sh/kernel/sh_ksyms.c | |||
@@ -8,7 +8,7 @@ | |||
8 | #include <linux/vmalloc.h> | 8 | #include <linux/vmalloc.h> |
9 | #include <linux/pci.h> | 9 | #include <linux/pci.h> |
10 | #include <linux/irq.h> | 10 | #include <linux/irq.h> |
11 | 11 | #include <asm/sections.h> | |
12 | #include <asm/semaphore.h> | 12 | #include <asm/semaphore.h> |
13 | #include <asm/processor.h> | 13 | #include <asm/processor.h> |
14 | #include <asm/uaccess.h> | 14 | #include <asm/uaccess.h> |
@@ -149,3 +149,4 @@ EXPORT_SYMBOL(csum_ipv6_magic); | |||
149 | #endif | 149 | #endif |
150 | EXPORT_SYMBOL(clear_page); | 150 | EXPORT_SYMBOL(clear_page); |
151 | EXPORT_SYMBOL(__clear_user); | 151 | EXPORT_SYMBOL(__clear_user); |
152 | EXPORT_SYMBOL(_ebss); | ||
diff --git a/arch/sh/kernel/vmlinux.lds.S b/arch/sh/kernel/vmlinux.lds.S index 9cb95af7b090..84a203b8573d 100644 --- a/arch/sh/kernel/vmlinux.lds.S +++ b/arch/sh/kernel/vmlinux.lds.S | |||
@@ -107,6 +107,7 @@ SECTIONS | |||
107 | *(.bss.page_aligned) | 107 | *(.bss.page_aligned) |
108 | *(.bss) | 108 | *(.bss) |
109 | . = ALIGN(4); | 109 | . = ALIGN(4); |
110 | _ebss = .; /* uClinux MTD sucks */ | ||
110 | _end = . ; | 111 | _end = . ; |
111 | } | 112 | } |
112 | 113 | ||
diff --git a/include/asm-sh/sections.h b/include/asm-sh/sections.h index 2a696b8ee4f5..bd9cbc967c2a 100644 --- a/include/asm-sh/sections.h +++ b/include/asm-sh/sections.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #include <asm-generic/sections.h> | 4 | #include <asm-generic/sections.h> |
5 | 5 | ||
6 | extern long __machvec_start, __machvec_end; | 6 | extern long __machvec_start, __machvec_end; |
7 | extern char _ebss[]; | ||
7 | 8 | ||
8 | #endif /* __ASM_SH_SECTIONS_H */ | 9 | #endif /* __ASM_SH_SECTIONS_H */ |
9 | 10 | ||