[ARM] Shut up warning about init_thread_union
authorRussell King <rmk@dyn-67.arm.linux.org.uk>
Tue, 8 May 2007 11:39:37 +0000 (12:39 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 8 May 2007 11:39:37 +0000 (12:39 +0100)
Fix false warning:

WARNING: arch/arm/kernel/init_task.o - Section mismatch:
 reference to .init.task:init_thread_union from .data between
 'init_task' (at offset 0x4) and 'init_sighand'

caused by the section name starting with ".init".

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/init_task.c
arch/arm/kernel/vmlinux.lds.S

index a00cca0000bd2782bcfe50eee16e6c7b412f4aef..bd4ef53bc6b95ee03f8eac412e03563146a27a4f 100644 (file)
@@ -31,7 +31,7 @@ EXPORT_SYMBOL(init_mm);
  * The things we do for performance..
  */
 union thread_union init_thread_union
-       __attribute__((__section__(".init.task"))) =
+       __attribute__((__section__(".data.init_task"))) =
                { INIT_THREAD_INFO(init_task) };
 
 /*
index 6be67296f33326eea42bc44045cbc16e8f02efd1..faf32de5c5ad4dffb63d8d43cda1f66a74f70805 100644 (file)
@@ -119,7 +119,7 @@ SECTIONS
                 * first, the init task union, aligned
                 * to an 8192 byte boundary.
                 */
-               *(.init.task)
+               *(.data.init_task)
 
 #ifdef CONFIG_XIP_KERNEL
                . = ALIGN(4096);