Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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 <xur@google.com>
Reported-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Closes: https://lore.kernel.org/lkml/c6719149-8531-4174-824e-a3caf4bc6d0e@alliedtelesis.co.nz/T/
Tested-by: Chris Packham <chris.packham@alliedtelesis.co.nz>
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

authored by

Rong Xu and committed by
Masahiro Yamada
52892ed6 18e88509

+2 -1
+1
arch/mips/kernel/head.S
··· 59 59 #endif 60 60 .endm 61 61 62 + __HEAD 62 63 #ifndef CONFIG_NO_EXCEPT_FILL 63 64 /* 64 65 * Reserved space for exception handlers.
+1
arch/mips/kernel/vmlinux.lds.S
··· 61 61 /* read-only */ 62 62 _text = .; /* Text and read-only data */ 63 63 .text : { 64 + HEAD_TEXT 64 65 TEXT_TEXT 65 66 SCHED_TEXT 66 67 LOCK_TEXT
-1
scripts/head-object-list.txt
··· 23 23 arch/m68k/kernel/head.o 24 24 arch/m68k/kernel/sun3-head.o 25 25 arch/microblaze/kernel/head.o 26 - arch/mips/kernel/head.o 27 26 arch/nios2/kernel/head.o 28 27 arch/openrisc/kernel/head.o 29 28 arch/parisc/kernel/head.o