[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1594283025-4166-1-git-send-email-sanggil2.kim@samsung.com>
Date: Thu, 9 Jul 2020 17:23:45 +0900
From: sanggil2.kim@...sung.com
To: linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org,
Sanggil Kim <sanggil2.kim@...sung.com>
Subject: [PATCH] arm64: kernel: Add module symbols _text, _etext.
From: Sanggil Kim <sanggil2.kim@...sung.com>
We have a solution to protect kernel code section(autually from _text to
_etext) by not MMU. In order to do this, we have to know the addresses
of _text and _etext at runtime.
Signed-off-by: Sanggil Kim <sanggil2.kim@...sung.com>
---
arch/arm64/kernel/head.S | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S
index 037421c..09b405e 100644
--- a/arch/arm64/kernel/head.S
+++ b/arch/arm64/kernel/head.S
@@ -1003,3 +1003,6 @@ SYM_FUNC_START_LOCAL(__primary_switch)
adrp x0, __PHYS_OFFSET
br x8
SYM_FUNC_END(__primary_switch)
+
+EXPORT_SYMBOL(_text)
+EXPORT_SYMBOL(_etext)
--
2.7.4
Powered by blists - more mailing lists