提交 58ef86c5 编写于 作者: H Huacai Chen 提交者: Hongchen Zhang

LoongArch: Fix the _stext symbol address

mainline inclusion
from mainline-v5.19-rc4
commit 92264f2d
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I5OHOB
CVE: NA

--------------------------------

_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: NHuacai Chen <chenhuacai@loongson.cn>
上级 f4b3655e
...@@ -14,8 +14,6 @@ ...@@ -14,8 +14,6 @@
__REF __REF
SYM_ENTRY(_stext, SYM_L_GLOBAL, SYM_A_NONE)
SYM_CODE_START(kernel_entry) # kernel entry point SYM_CODE_START(kernel_entry) # kernel entry point
/* Config direct window and set PG */ /* Config direct window and set PG */
......
...@@ -37,6 +37,7 @@ SECTIONS ...@@ -37,6 +37,7 @@ SECTIONS
HEAD_TEXT_SECTION HEAD_TEXT_SECTION
. = ALIGN(PECOFF_SEGMENT_ALIGN); . = ALIGN(PECOFF_SEGMENT_ALIGN);
_stext = .;
.text : { .text : {
TEXT_TEXT TEXT_TEXT
SCHED_TEXT SCHED_TEXT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册