diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2019-06-25 11:40:28 +0200 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2019-06-26 19:27:59 +0200 |
commit | 93651f80dcb616b8c9115cdafc8e57a781af22d0 (patch) | |
tree | c2612618459c3b0569a3b3668687dfaec5e7d7cf /kernel/Kconfig.preempt | |
parent | ARM: module: recognize unwind exit sections (diff) | |
download | linux-93651f80dcb616b8c9115cdafc8e57a781af22d0.tar.xz linux-93651f80dcb616b8c9115cdafc8e57a781af22d0.zip |
modules: fix compile error if don't have strict module rwx
If CONFIG_ARCH_HAS_STRICT_MODULE_RWX is not defined,
we need stub for module_enable_nx() and module_enable_x().
If CONFIG_ARCH_HAS_STRICT_MODULE_RWX is defined, but
CONFIG_STRICT_MODULE_RWX is disabled, we need stub for
module_enable_nx.
Move frob_text() outside of the CONFIG_STRICT_MODULE_RWX,
because it is needed anyway.
Fixes: 2eef1399a866 ("modules: fix BUG when load module with rodata=n")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'kernel/Kconfig.preempt')
0 files changed, 0 insertions, 0 deletions