score: normalize global variables exported by vmlinux.lds
authorJiang Liu <liuj97@gmail.com>
Wed, 3 Jul 2013 22:03:37 +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 _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>
arch/score/kernel/vmlinux.lds.S

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