CRIS: Add _sdata to vmlinux.lds.S
authorJesper Nilsson <jesper.nilsson@axis.com>
Mon, 24 Oct 2011 09:19:25 +0000 (11:19 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Tue, 10 Sep 2013 00:57:31 +0000 (01:57 +0100)
commit 473e162eea465e60578edb93341752e7f1c1dacc upstream.

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>
Cc: Guenter Roeck <linux@roeck-us.net>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/cris/kernel/vmlinux.lds.S

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