alpha: use .data.init_task instead of .data.init_thread.
authorTim Abbott <tabbott@ksplice.com>
Thu, 24 Sep 2009 14:36:25 +0000 (10:36 -0400)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 25 Sep 2009 00:16:22 +0000 (17:16 -0700)
alpha is the only architecture that uses the section name
.data.init_thread instead of .data.init_task.  So convert alpha to use
.data.init_task like everything else.

.data.init_task does not need a separate output section; this change
also moves it into the .data output section.

Signed-off-by: Tim Abbott <tabbott@mit.edu>
Cc: Richard Henderson <rth@twiddle.net>
Cc: linux-alpha@vger.kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/alpha/kernel/init_task.c
arch/alpha/kernel/vmlinux.lds.S

index 19b86328ffd7907d437eca4ab61055dfadda1a09..6f80ca4f97660140e033e31433180a681675c664 100644 (file)
@@ -13,6 +13,5 @@ static struct sighand_struct init_sighand = INIT_SIGHAND(init_sighand);
 struct task_struct init_task = INIT_TASK(init_task);
 EXPORT_SYMBOL(init_task);
 
-union thread_union init_thread_union
-       __attribute__((section(".data.init_thread")))
-       = { INIT_THREAD_INFO(init_task) };
+union thread_union init_thread_union __init_task_data =
+       { INIT_THREAD_INFO(init_task) };
index 6dc03c35caa0246bb87dc69c0add025e1f46ab94..82803df17977d3656e067b0879f33444830e9f33 100644 (file)
@@ -1,5 +1,6 @@
 #include <asm-generic/vmlinux.lds.h>
 #include <asm/page.h>
+#include <asm/thread_info.h>
 
 OUTPUT_FORMAT("elf64-alpha")
 OUTPUT_ARCH(alpha)
@@ -92,11 +93,6 @@ SECTIONS
        __init_end = .;
        /* Freed after init ends here */
 
-       /* Note 2 page alignment above.  */
-       .data.init_thread : {
-               *(.data.init_thread)
-       }
-
        . = ALIGN(PAGE_SIZE);
        .data.page_aligned : {
                *(.data.page_aligned)
@@ -110,6 +106,7 @@ SECTIONS
        _data = .;
        /* Data */
        .data : {
+               INIT_TASK_DATA(THREAD_SIZE)
                DATA_DATA
                CONSTRUCTORS
        }