CRIS: Add _sdata to vmlinux.lds.S
authorJesper Nilsson <jesper.nilsson@axis.com>
Mon, 24 Oct 2011 09:19:25 +0000 (11:19 +0200)
committerJesper Nilsson <jespern@axis.com>
Tue, 3 Apr 2012 11:26:33 +0000 (13:26 +0200)
Fixes link error:
  LD      vmlinux
kernel/built-in.o: In function `core_kernel_data':
(.text+0x13e44): undefined reference to `_sdata'

Signed-off-by: Jesper Nilsson <jesper.nilsson@axis.com>
arch/cris/kernel/vmlinux.lds.S

index a6990cb..a68b983 100644 (file)
@@ -52,6 +52,7 @@ SECTIONS
 
        EXCEPTION_TABLE(4)
 
+       _sdata = .;
        RODATA
 
        . = ALIGN (4);