]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
h8300: normalize global variables exported by vmlinux.lds
authorJiang Liu <liuj97@gmail.com>
Thu, 27 Jun 2013 23:51:51 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:44 +0000 (16:37 +1000)
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>
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 = .;