mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-10-29 13:23:23 +01:00
MIPS: Place __kernel_entry at the beginning of text section
Mark __kernel_entry as ".head.text" and place HEAD_TEXT before TEXT_TEXT in the linker script. This ensures that __kernel_entry will be placed at the beginning of text section. Drop mips from scripts/head-object-list.txt. Signed-off-by: Rong Xu <[email protected]> Reported-by: Chris Packham <[email protected]> Closes: https://lore.kernel.org/lkml/[email protected]/T/ Tested-by: Chris Packham <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
This commit is contained in:
1 parent
18e885099f
commit
52892ed6b0
3 files changed
+2
-1
No files matched your search
@@ -59,6 +59,7 @@
|
||||
#endif
|
||||
.endm
|
||||
|
||||
__HEAD
|
||||
#ifndef CONFIG_NO_EXCEPT_FILL
|
||||
/*
|
||||
* Reserved space for exception handlers.
|
||||
|
||||
@@ -61,6 +61,7 @@ SECTIONS
|
||||
/* read-only */
|
||||
_text = .; /* Text and read-only data */
|
||||
.text : {
|
||||
HEAD_TEXT
|
||||
TEXT_TEXT
|
||||
SCHED_TEXT
|
||||
LOCK_TEXT
|
||||
|
||||
@@ -23,7 +23,6 @@ arch/m68k/coldfire/head.o
|
||||
arch/m68k/kernel/head.o
|
||||
arch/m68k/kernel/sun3-head.o
|
||||
arch/microblaze/kernel/head.o
|
||||
arch/mips/kernel/head.o
|
||||
arch/nios2/kernel/head.o
|
||||
arch/openrisc/kernel/head.o
|
||||
arch/parisc/kernel/head.o
|
||||
|
||||
Reference in new issue
Block a user