aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/arch/loongarch/kernel/vmlinux.lds.S
diff options
context:
space:
mode:
authorHuacai Chen <chenhuacai@loongson.cn>2022-06-25 16:55:41 +0800
committerHuacai Chen <chenhuacai@loongson.cn>2022-06-25 18:05:58 +0800
commit92264f2dae7324f3189d22c0a0f0cb4e5d30d617 (patch)
treeae8db550210edc6e0ce822f44c0ce0af59c8f101 /arch/loongarch/kernel/vmlinux.lds.S
parentLoongArch: Fix the !THP build (diff)
downloadwireguard-linux-92264f2dae7324f3189d22c0a0f0cb4e5d30d617.tar.xz
wireguard-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.S1
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