Sfoglia il codice sorgente

m68k: use .text.head

i.e. tell modpost that entry point code (that has to be outside
of .init.text for external reasons) is OK to refer to .init.*

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Al Viro 18 anni fa
parent
commit
7e5de05169

+ 1 - 1
arch/m68k/kernel/head.S

@@ -577,7 +577,7 @@ func_define	putn,1
 #endif
 #endif
 .endm
 .endm
 
 
-.text
+.section ".text.head","ax"
 ENTRY(_stext)
 ENTRY(_stext)
 /*
 /*
  * Version numbers of the bootinfo interface
  * Version numbers of the bootinfo interface

+ 1 - 1
arch/m68k/kernel/sun3-head.S

@@ -29,7 +29,7 @@ kernel_pmd_table:              .skip 0x2000
 .globl kernel_pg_dir
 .globl kernel_pg_dir
 .equ    kernel_pg_dir,kernel_pmd_table
 .equ    kernel_pg_dir,kernel_pmd_table
 
 
-	.section .head
+	.section .text.head
 ENTRY(_stext)
 ENTRY(_stext)
 ENTRY(_start)
 ENTRY(_start)
 
 

+ 1 - 0
arch/m68k/kernel/vmlinux-std.lds

@@ -11,6 +11,7 @@ SECTIONS
   . = 0x1000;
   . = 0x1000;
   _text = .;			/* Text and read-only data */
   _text = .;			/* Text and read-only data */
   .text : {
   .text : {
+	*(.text.head)
 	TEXT_TEXT
 	TEXT_TEXT
 	SCHED_TEXT
 	SCHED_TEXT
 	LOCK_TEXT
 	LOCK_TEXT

+ 1 - 1
arch/m68k/kernel/vmlinux-sun3.lds

@@ -11,7 +11,7 @@ SECTIONS
   . = 0xE002000;
   . = 0xE002000;
   _text = .;			/* Text and read-only data */
   _text = .;			/* Text and read-only data */
   .text : {
   .text : {
-	*(.head)
+	*(.text.head)
 	TEXT_TEXT
 	TEXT_TEXT
 	SCHED_TEXT
 	SCHED_TEXT
 	LOCK_TEXT
 	LOCK_TEXT