mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Jinyang He <hejinyang@loongson.cn>
To: Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>
Cc: Xi Ruoyao <xry111@xry111.site>,
	Youling Tang <tangyouling@loongson.cn>,
	loongarch@lists.linux.dev, linux-kernel@vger.kernel.org
Subject: [PATCH v2 2/6] LoongArch: Move the content defined by SYM_DATA to data or rodata section
Date: Tue, 28 Feb 2023 16:02:53 +0800	[thread overview]
Message-ID: <20230228080257.28807-3-hejinyang@loongson.cn> (raw)
In-Reply-To: <20230228080257.28807-1-hejinyang@loongson.cn>

Due to the SYM_DATA do not give the section notes, manually set it.

Reported-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Jinyang He <hejinyang@loongson.cn>
---
 arch/loongarch/kernel/genex.S | 2 ++
 arch/loongarch/kernel/head.S  | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/arch/loongarch/kernel/genex.S b/arch/loongarch/kernel/genex.S
index 1af169ca3734..de591a9270bd 100644
--- a/arch/loongarch/kernel/genex.S
+++ b/arch/loongarch/kernel/genex.S
@@ -77,7 +77,9 @@ SYM_FUNC_END(except_vec_cex)
 	668:
 	RESTORE_ALL_AND_RET
 	SYM_FUNC_END(handle_\exception)
+	.pushsection .rodata
 	SYM_DATA(unwind_hint_\exception, .word 668b - 666b)
+	.popsection
 	.endm
 
 	BUILD_HANDLER ade ade badv
diff --git a/arch/loongarch/kernel/head.S b/arch/loongarch/kernel/head.S
index aa64b179744f..7cfa1f850e54 100644
--- a/arch/loongarch/kernel/head.S
+++ b/arch/loongarch/kernel/head.S
@@ -32,9 +32,11 @@ _head:
 pe_header:
 	__EFI_PE_HEADER
 
+.pushsection .rodata
 SYM_DATA(kernel_asize, .long _end - _text);
 SYM_DATA(kernel_fsize, .long _edata - _text);
 SYM_DATA(kernel_offset, .long kernel_offset - _text);
+.popsection
 
 #endif
 
-- 
2.34.3


  parent reply	other threads:[~2023-02-28  8:04 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-28  8:02 [PATCH v2 0/6] Drop the per-node-mode exception handlers Jinyang He
2023-02-28  8:02 ` [PATCH v2 1/6] LoongArch: Rename handle_syscall to handle_sys Jinyang He
2023-02-28  8:02 ` Jinyang He [this message]
2023-02-28  8:02 ` [PATCH v2 3/6] LoongArch: Create a exception handlers section Jinyang He
2023-02-28 12:42   ` Youling Tang
2023-02-28  8:02 ` [PATCH v2 4/6] LoongArch: Drop pernode exception handlers Jinyang He
2023-02-28 12:42   ` Youling Tang
2023-02-28  8:02 ` [PATCH v2 5/6] LoongArch: Fix up the prologue unwinder unwind exception frame Jinyang He
2023-02-28  8:02 ` [PATCH v2 6/6] LoongArch: Clean up la_abs macro Jinyang He

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230228080257.28807-3-hejinyang@loongson.cn \
    --to=hejinyang@loongson.cn \
    --cc=chenhuacai@kernel.org \
    --cc=kernel@xen0n.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=loongarch@lists.linux.dev \
    --cc=tangyouling@loongson.cn \
    --cc=xry111@xry111.site \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®