lkml.org 
[lkml]   [2022]   [Jun]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH v6 29/33] arm64: compat: Move VDSO code to .rodata section
Date
VDSO code should be inside .rodata.

Now code in kuser32.S and sigreturn32.S are inside .text section and never
executed.
Move them to .rodata.

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

diff --git a/arch/arm64/kernel/kuser32.S b/arch/arm64/kernel/kuser32.S
index 42bd8c0c60e0..692e9d2e31e5 100644
--- a/arch/arm64/kernel/kuser32.S
+++ b/arch/arm64/kernel/kuser32.S
@@ -15,6 +15,7 @@

#include <asm/unistd.h>

+ .section .rodata
.align 5
.globl __kuser_helper_start
__kuser_helper_start:
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:

--
2.17.1
\
 
 \ /
  Last update: 2022-06-23 03:55    [W:0.545 / U:0.096 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site