m68k: use .text.head
Subsystems (2)
PATCH 3/8 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.*
--- arch/m68k/kernel/head.S | 2 +- arch/m68k/kernel/sun3-head.S | 2 +- arch/m68k/kernel/vmlinux-std.lds | 1 + arch/m68k/kernel/vmlinux-sun3.lds | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-)
arch/m68k/kernel/head.S +1 -1
@@ -577,7 +577,7 @@ func_define putn,1 #endif .endm -.text +.section ".text.head","ax" ENTRY(_stext) /* * Version numbers of the bootinfo interface
arch/m68k/kernel/sun3-head.S +1 -1
@@ -29,7 +29,7 @@ kernel_pmd_table: .skip 0x2000 .globl kernel_pg_dir .equ kernel_pg_dir,kernel_pmd_table - .section .head + .section .text.head ENTRY(_stext) ENTRY(_start)
arch/m68k/kernel/vmlinux-std.lds +1 -0
@@ -11,6 +11,7 @@ SECTIONS . = 0x1000; _text = .; /* Text and read-only data */ .text : { + *(.text.head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
arch/m68k/kernel/vmlinux-sun3.lds +1 -1
@@ -11,7 +11,7 @@ SECTIONS . = 0xE002000; _text = .; /* Text and read-only data */ .text : { - *(.head) + *(.text.head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
Signature · 1 line
1.5.3.GIT
Quoted 24 lines · Al Viro
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 <[email protected]>---
arch/m68k/kernel/sun3-head.S +1
-1@@ -29,7 +29,7 @@ kernel_pmd_table: .skip 0x2000 .globl kernel_pg_dir .equ kernel_pg_dir,kernel_pmd_table - .section .head + .section .text.head ENTRY(_stext) ENTRY(_start)arch/m68k/kernel/vmlinux-sun3.lds +0
-0
arch/m68k/kernel/vmlinux-sun3.lds SECTIONS · line 17
Quoted 8 lines
arch/m68k/kernel/vmlinux-sun3.lds +1
-1@@ -11,7 +11,7 @@ SECTIONS . = 0xE002000; _text = .; /* Text and read-only data */ .text : { - *(.head) + *(.text.head) TEXT_TEXT SCHED_TEXT LOCK_TEXT
I was wondering how to "fix" this on s390 since we have the same issue. So I'll do it the same way here. Thanks.
Quoted 7 lines · Heiko Carstens
Quoted 4 lines · Al Viro
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.*
I was wondering how to "fix" this on s390 since we have the same issue. So I'll do it the same way here. Thanks.
Likewise for sh/sh64. Perhaps this should be reposted to linux-arch ;-)