MIPS: Place __kernel_entry at the beginning of text section
authorRong Xu <xur@google.com>
Tue, 26 Nov 2024 17:34:09 +0000 (09:34 -0800)
committerMasahiro Yamada <masahiroy@kernel.org>
Wed, 27 Nov 2024 00:36:01 +0000 (09:36 +0900)
commit52892ed6b03a14b961c1df783ed05763758abc73
treef1e991c64bf3586954062960963be39e09e26d73
parent18e885099f1c52755f054202525cb60d3edcda44
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>
arch/mips/kernel/head.S
arch/mips/kernel/vmlinux.lds.S
scripts/head-object-list.txt