Skip to content

Commit

Permalink
m68k: use .text.head
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jul 20, 2007
1 parent f9569e1 commit 7e5de05
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/m68k/kernel/head.S
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ func_define putn,1
#endif
.endm

.text
.section ".text.head","ax"
ENTRY(_stext)
/*
* Version numbers of the bootinfo interface
Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/kernel/sun3-head.S
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions arch/m68k/kernel/vmlinux-std.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SECTIONS
. = 0x1000;
_text = .; /* Text and read-only data */
.text : {
*(.text.head)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
Expand Down
2 changes: 1 addition & 1 deletion arch/m68k/kernel/vmlinux-sun3.lds
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SECTIONS
. = 0xE002000;
_text = .; /* Text and read-only data */
.text : {
*(.head)
*(.text.head)
TEXT_TEXT
SCHED_TEXT
LOCK_TEXT
Expand Down

0 comments on commit 7e5de05

Please sign in to comment.