m32r: Move the spi_stack_top and spu_stack_top into .init.data section.

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

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>
Tim Abbott 2009-09-18 16:32:48 -04:00 committed by Hirokazu Takata
parent 2a67d26284
commit 743486dff1
2 changed files with 2 additions and 4 deletions

View File

@ -268,13 +268,13 @@ ENTRY(empty_zero_page)
* Stack area
.section .spi
.section .init.data, "aw"
.global spi_stack_top
.zero 1024
.section .spu
.section .init.data, "aw"
.global spu_stack_top
.zero 1024

View File

@ -49,8 +49,6 @@ SECTIONS
/* writeable */
.data : { /* Data */