score: normalize global variables exported by vmlinux.lds
authorJiang Liu <liuj97@gmail.com>
Wed, 3 Jul 2013 22:03:37 +0000 (15:03 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 6 Aug 2014 17:07:41 +0000 (18:07 +0100)
commit ae49b83dcacfb69e22092cab688c415c2f2d870c upstream.

Generate mandatory global variables _sdata in file vmlinux.lds.

Signed-off-by: Jiang Liu <jiang.liu@huawei.com>
Cc: Chen Liqin <liqin.chen@sunplusct.com>
Cc: Lennox Wu <lennox.wu@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/score/kernel/vmlinux.lds.S

index eebcbaa..7274b5c 100644 (file)
@@ -49,6 +49,7 @@ SECTIONS
        }
 
        . = ALIGN(16);
        }
 
        . = ALIGN(16);
+       _sdata =  .;                    /* Start of data section */
        RODATA
 
        EXCEPTION_TABLE(16)
        RODATA
 
        EXCEPTION_TABLE(16)