Skip to contentSkip to conversation

microblaze: Quiet section mismatch warnings

PATCH In review Steven J. Magnani 2 participants 2 messages Apr 10, 2010 – Apr 13, 2010 Microblaze architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 microblaze: Quiet section mismatch warnings

_start is located in .text, which causes mismatch warnings with machine_early_init() and start_kernel() in .init.text.

---

arch/microblaze/kernel/head.S +2 -1
diff -uprN a/arch/microblaze/kernel/head.S b/arch/microblaze/kernel/head.S
@@ -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)
arch/microblaze/kernel/vmlinux.lds.S +2 -1
diff -uprN a/arch/microblaze/kernel/vmlinux.lds.S b/arch/microblaze/kernel/vmlinux.lds.S
@@ -24,7 +24,8 @@ SECTIONS {
 	.text : AT(ADDR(.text) - LOAD_OFFSET) {
 		_text = . ;
 		_stext = . ;
-		*(.text .text.*)
+		HEAD_TEXT
+		TEXT_TEXT
 		*(.fixup)
 		EXIT_TEXT
 		EXIT_CALL
maintainer
#1 lore raw
Quoted 4 lines · Steven J. Magnani

_start is located in .text, which causes mismatch warnings with machine_early_init() and start_kernel() in .init.text.

---

Added to next branch. I also fix mismatch for MMU kernel

Thanks.
Michal

Signature · 4 lines
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian