h8300: normalize global variables exported by vmlinux.lds
authorJiang Liu <liuj97@gmail.com>
Wed, 3 Jul 2013 22:03:36 +0000 (15:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:34 +0000 (16:07 -0700)
Generate mandatory global variables __bss_start/__bss_stop in
file vmlinux.lds.

Also remove one unused declaration of _text.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Jiang Liu <jiang.liu@huawei.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/h8300/boot/compressed/misc.c
arch/h8300/kernel/vmlinux.lds.S

index 51ab6cbd030f58a9c439e9bc65849fd460d7b749..4a1e3dd43948df3d1a30fdf8db703a6abd825618 100644 (file)
@@ -79,7 +79,6 @@ static void error(char *m);
 
 int puts(const char *);
 
-extern int _text;              /* Defined in vmlinux.lds.S */
 extern int _end;
 static unsigned long free_mem_ptr;
 static unsigned long free_mem_end_ptr;
index 03d356d96e5d30b066480ad8db2358f21dbccee5..3253fed42ac1b433fcd35f8073fed8dd080f1d39 100644 (file)
@@ -132,10 +132,12 @@ SECTIONS
         {
        . = ALIGN(0x4) ;
        __sbss = . ;
+       ___bss_start = . ;
                *(.bss*)
        . = ALIGN(0x4) ;
                *(COMMON)
        . = ALIGN(0x4) ;
+       ___bss_stop = . ;
        __ebss = . ;
        __end = . ;
        __ramstart = .;