diff mbox series

arm64: compat: Move sigreturn32.S to .rodata section

Message ID 20220701035456.250877-1-chenzhongjin@huawei.com (mailing list archive)
State New, archived
Headers show
Series arm64: compat: Move sigreturn32.S to .rodata section | expand

Commit Message

Chen Zhongjin July 1, 2022, 3:54 a.m. UTC
Kuser code should be inside .rodata. sigreturn32.S is splited
from kuser32.S, the code in .text section is never executed.

Move it to .rodata.

Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
---
 arch/arm64/kernel/sigreturn32.S | 1 +
 1 file changed, 1 insertion(+)

Comments

Will Deacon July 1, 2022, 3:41 p.m. UTC | #1
On Fri, 1 Jul 2022 11:54:56 +0800, Chen Zhongjin wrote:
> Kuser code should be inside .rodata. sigreturn32.S is splited
> from kuser32.S, the code in .text section is never executed.
> 
> Move it to .rodata.
> 
> 

Applied to arm64 (for-next/vdso), thanks!

[1/1] arm64: compat: Move sigreturn32.S to .rodata section
      https://git.kernel.org/arm64/c/d9b728f8600b

Cheers,
diff mbox series

Patch

diff --git a/arch/arm64/kernel/sigreturn32.S b/arch/arm64/kernel/sigreturn32.S
index 475d30d471ac..ccbd4aab4ba4 100644
--- a/arch/arm64/kernel/sigreturn32.S
+++ b/arch/arm64/kernel/sigreturn32.S
@@ -15,6 +15,7 @@ 
 
 #include <asm/unistd.h>
 
+	.section .rodata
 	.globl __aarch32_sigret_code_start
 __aarch32_sigret_code_start: