lkml.org 
[lkml]   [2010]   [Apr]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] microblaze: Quiet section mismatch warnings
Date
_start is located in .text, which causes mismatch warnings with 
machine_early_init() and start_kernel() in .init.text.

Signed-off-by: Steven J. Magnani <steve@digidescorp.com>
---
diff -uprN a/arch/microblaze/kernel/head.S b/arch/microblaze/kernel/head.S
--- a/arch/microblaze/kernel/head.S 2010-04-09 21:52:36.000000000 -0500
+++ b/arch/microblaze/kernel/head.S 2010-04-09 21:56:26.000000000 -0500
@@ -28,6 +28,7 @@
* for more details.
*/

+#include <linux/init.h>
#include <linux/linkage.h>
#include <asm/thread_info.h>
#include <asm/page.h>
@@ -49,7 +50,7 @@ swapper_pg_dir:

#endif /* CONFIG_MMU */

- .text
+ __HEAD
ENTRY(_start)
#if CONFIG_KERNEL_BASE_ADDR == 0
brai TOPHYS(real_start)
diff -uprN a/arch/microblaze/kernel/vmlinux.lds.S b/arch/microblaze/kernel/vmlinux.lds.S
--- a/arch/microblaze/kernel/vmlinux.lds.S 2010-04-09 21:52:36.000000000 -0500
+++ b/arch/microblaze/kernel/vmlinux.lds.S 2010-04-09 21:54:58.000000000 -0500
@@ -24,7 +24,8 @@ SECTIONS {
.text : AT(ADDR(.text) - LOAD_OFFSET) {
_text = . ;
_stext = . ;
- *(.text .text.*)
+ HEAD_TEXT
+ TEXT_TEXT
*(.fixup)
EXIT_TEXT
EXIT_CALL


\
 
 \ /
  Last update: 2010-04-10 05:07    [W:0.036 / U:0.996 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site