arm64: compat: Move kuser32.S to .rodata section
authorChen Zhongjin <chenzhongjin@huawei.com>
Tue, 31 May 2022 01:53:50 +0000 (09:53 +0800)
committerWill Deacon <will@kernel.org>
Thu, 23 Jun 2022 15:01:42 +0000 (16:01 +0100)
Kuser code should be inside .rodata.

Now code in kuser32.S is inside .text section and never executed.
Move it to .rodata.

Signed-off-by: Chen Zhongjin <chenzhongjin@huawei.com>
Link: https://lore.kernel.org/r/20220531015350.233827-1-chenzhongjin@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/kuser32.S

index 42bd8c0..692e9d2 100644 (file)
@@ -15,6 +15,7 @@
 
 #include <asm/unistd.h>
 
+       .section .rodata
        .align  5
        .globl  __kuser_helper_start
 __kuser_helper_start: