m32r: Move the spi_stack_top and spu_stack_top into .init.data section.
authorTim Abbott <tabbott@ksplice.com>
Fri, 18 Sep 2009 20:32:48 +0000 (16:32 -0400)
committerHirokazu Takata <takata@linux-m32r.org>
Tue, 22 Sep 2009 15:29:40 +0000 (00:29 +0900)
Since these get squashed into the .data output section by the m32r
linker script, it seems likely that they don't need their own input
sections.

At Hirokazu Takata's suggestion, we place these structures in
.init.data rather than just placing them in .data (since they are only
used at init time).

This patch is preparation for cleaning up the m32r architecture to use
the new macros in vmlinux.lds.h; if these sections are indeed not
needed, then we can use the RW_DATA_SECTION macro for m32r and save a
bunch of redundant code.

Signed-off-by: Tim Abbott <tabbott@ksplice.com>
Signed-off-by: Hirokazu Takata <takata@linux-m32r.org>
arch/m32r/kernel/head.S
arch/m32r/kernel/vmlinux.lds.S

index 0a7194439eb14aa69fbb0863309ced9b60041e54..a46652dd83e625c24bd3362a9437af4ff45332d8 100644 (file)
@@ -268,13 +268,13 @@ ENTRY(empty_zero_page)
 /*------------------------------------------------------------------------
  * Stack area
  */
-       .section .spi
+       .section .init.data, "aw"
        ALIGN
        .global spi_stack_top
        .zero   1024
 spi_stack_top:
 
-       .section .spu
+       .section .init.data, "aw"
        ALIGN
        .global spu_stack_top
        .zero   1024
index a8aa4a858ddd3859fc7a235cf4470c1b4fc41cd0..aadb24eacf089c2eeb2df002f433fd5858380505 100644 (file)
@@ -49,8 +49,6 @@ SECTIONS
 
   /* writeable */
   .data : {                    /* Data */
-       *(.spu)
-       *(.spi)
        DATA_DATA
        CONSTRUCTORS
        }
This page took 0.025843 seconds and 5 git commands to generate.