diff options
author | Huacai Chen <chenhuacai@loongson.cn> | 2022-06-25 10:55:41 +0200 |
---|---|---|
committer | Huacai Chen <chenhuacai@loongson.cn> | 2022-06-25 12:05:58 +0200 |
commit | 92264f2dae7324f3189d22c0a0f0cb4e5d30d617 (patch) | |
tree | ae8db550210edc6e0ce822f44c0ce0af59c8f101 /arch/loongarch/kernel/vmlinux.lds.S | |
parent | LoongArch: Fix the !THP build (diff) | |
download | linux-92264f2dae7324f3189d22c0a0f0cb4e5d30d617.tar.xz linux-92264f2dae7324f3189d22c0a0f0cb4e5d30d617.zip |
LoongArch: Fix the _stext symbol address
_stext means the start of .text section (see __is_kernel_text()), but we
put its definition in .ref.text by mistake. Fix it by defining it in the
vmlinux.lds.S.
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
Diffstat (limited to '')
-rw-r--r-- | arch/loongarch/kernel/vmlinux.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/loongarch/kernel/vmlinux.lds.S b/arch/loongarch/kernel/vmlinux.lds.S index 78311a6101a3..69c76f26c1c5 100644 --- a/arch/loongarch/kernel/vmlinux.lds.S +++ b/arch/loongarch/kernel/vmlinux.lds.S @@ -37,6 +37,7 @@ SECTIONS HEAD_TEXT_SECTION . = ALIGN(PECOFF_SEGMENT_ALIGN); + _stext = .; .text : { TEXT_TEXT SCHED_TEXT |